Matrix and Vector Functions

The Matrix and Vector functions are shown below.

This page discusses:

*

Signature

*(a1 : Real, a2 : Matrix) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesReal-
a2InYesMatrix-

ReturnType

Matrix

*

Signature

*(a1 : Matrix, a2 : Real) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesReal-

ReturnType

Matrix

*

Signature

*(a1 : Matrix, a2 : Matrix) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesMatrix-

ReturnType

Matrix

+

Signature

+(a1 : Real, a2 : Matrix) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesReal-
a2InYesMatrix-

ReturnType

Matrix

+

Signature

+(a1 : Matrix, a2 : Matrix) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesMatrix-

ReturnType

Matrix

+

Signature

+(a1 : Matrix, a2 : Real) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesReal-

ReturnType

Matrix

-

Signature

-(a1 : Matrix, a2 : Matrix) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesMatrix-

ReturnType

Matrix

-

Signature

-(a1 : Matrix, a2 : Real) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesReal-

ReturnType

Matrix

<>

Signature

<>(a1 : Matrix, a2 : Matrix) : Boolean

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesMatrix-

ReturnType

Boolean

==

Signature

==(a1 : Matrix, a2 : Matrix) : Boolean

Arguments

NameInput / OutputRequired?TypeComment
a1InYesMatrix-
a2InYesMatrix-

ReturnType

Boolean

CrossProduct

This function lets you compute a vectorial product between two vectors of the same dimension.

Signature

CrossProduct(iVector1 : Vector, iVector2 : Vector) : Vector

Arguments

NameInput / OutputRequired?TypeComment
iVector1InYesVectorFirst vector.
iVector2InYesVectorSecond vector.

ReturnType

Vector

Matrix

Function used to create a matrix.

Signature

Matrix(x : Integer, y : Integer, initVal : Real) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
xInYesIntegerNumber of rows
yInYesIntegerNumber of columns
initValInYesRealValue of the entry

  • Matrix entries are separated by spaces
  • ";" is the equivalent of a carriage return
  • "," is used to move from one column to the next.

ReturnType

Matrix

MatrixIdent

Function used to create a n × n square matrix with ones on the main diagonal and zeros elsewhere.

Signature

MatrixIdent(x : Integer) : Matrix

Arguments

NameInput / OutputRequired?TypeComment
xInYesIntegerNumber of rows and columns

ReturnType

Matrix