sourceforge.net logo

Matrices & Vectors

Adjoint

adj(Matrix)

Returns the adjoint of a matrix.

Arguments. 

  • Matrix: a symmetric matrix

Cofactor

cofactor(Row, Column, Matrix)

Returns the cofactor of the element at specified position.

Arguments. 

  • Row: an integer >= 1

  • Column: an integer >= 1

  • Matrix: a matrix

Columns

columns(Matrix)

Returns the number of columns in a matrix.

Arguments. 

  • Matrix: a matrix

Component

component(Component Index, Vector)

Returns the component at specified position in a vector.

Arguments. 

  • Component Index: an integer >= 1

  • Vector: a vector

Construct Matrix

matrix(Rows, Columns, Elements)

Returns a matrix with specified order and listed elements. Omitted elements are set to zero.

Arguments. 

  • Rows: an integer >= 1

  • Columns: an integer >= 1

  • Elements: a vector

Construct Vector

vector([argument 1], ...)

Returns a vector with listed components.

Arguments. 

  • 1: a free value (optional)

Convert Matrix to Vector

matrix2vector(Matrix)

Puts each element of a matrix in vertical order in a vector.

Arguments. 

  • Matrix: a matrix

Determinant

det(Matrix)

Calculates the determinant of a matrix.

Arguments. 

  • Matrix: a symmetric matrix

Dimension

dimension(Vector)

components

Returns the number of components in a vector.

Arguments. 

  • Vector: a vector

Element

element(Row, Column, Matrix)

Returns the element at specified position in a matrix.

Arguments. 

  • Row: an integer >= 1

  • Column: an integer >= 1

  • Matrix: a matrix

Elements

elements(Matrix)

Returns the number of elements in a matrix.

Arguments. 

  • Matrix: a matrix

Export To CSV File

export(Matrix/Vector, File Name[, Separator])

Imports a CSV data file as a matrix.

Arguments. 

  • Matrix/Vector: a vector

  • File Name: a valid file name

  • Separator: a text string (optional)

Extract Column as Vector

column(Column, Matrix)

Returns a column in a matrix as a vector.

Arguments. 

  • Column: an integer >= 1

  • Matrix: a matrix

Extract row as vector

row(Row, Matrix)

Returns a row in a matrix as a vector.

Arguments. 

  • Row: an integer >= 1

  • Matrix: a matrix

Generate Vector

genvector(Function, Min, Max, Components / Step size[, Variable][, Use step size])

Generates a vector from a function with a variable (default x) running from min to max. The fourth argument is either the requested number of components if the sixth argument is false (default) or the step between each value of the variable.

Arguments. 

  • Function: a free value

  • Min: a free value

  • Max: a free value

  • Components / Step size: a free value

  • Variable: an unknown variable/symbol (optional)

  • Use step size: a boolean (0 or 1) (optional)

Identity

identity(Matrix or Rows/Columns)

Returns the identity matrix of a matrix or with specified number of rows/columns.

Arguments. 

  • Matrix or Rows/Columns: an integer >= 1 or a symmetric matrix

Load CSV File

load(File Name[, First Data Row][, Separator])

Imports a CSV data file as a matrix.

Arguments. 

  • File Name: a valid file name

  • First Data Row: an integer >= 1 (optional)

  • Separator: a text string (optional)

Matrix Area

area(Start Row, Start Column, End Row, End Column, Matrix)

Returns a part of a matrix.

Arguments. 

  • Start Row: an integer >= 1

  • Start Column: an integer >= 1

  • End Row: an integer >= 1

  • End Column: an integer >= 1

  • Matrix: a matrix

Matrix Inverse

inverse(Matrix)

Returns the inverse of a matrix.

Arguments. 

  • Matrix: a symmetric matrix

Merge Vectors

mergevectors(Vector 1[, Vector 2], ...)

Arguments. 

  • Vector 1: a vector

  • Vector 2: a vector (optional)

Norm (length)

norm(Vector)

Calculates the norm/length of a vector.

Arguments. 

  • Vector: a vector

Permanent

permanent(Matrix)

Calculates the permanent of a matrix.

Arguments. 

  • Matrix: a symmetric matrix

Rank

rank(Vector[, Ascending])

Returns a vector with values of components replaced with their mutual ranks.

Arguments. 

  • Vector: a vector

  • Ascending: a boolean (0 or 1) (optional)

Rows

rows(Matrix)

Returns the number of rows in a matrix.

Arguments. 

  • Matrix: a matrix

Sort

sort(Vector[, Ascending])

Returns a sorted vector.

Arguments. 

  • Vector: a vector

  • Ascending: a boolean (0 or 1) (optional)

Transpose

transpose(Matrix)

Returns the transpose of a matrix.

Arguments. 

  • Matrix: a matrix

Vector Limits

limits(Lower Limit, Upper Limit, Vector)

Returns a part of a vector.

Arguments. 

  • Lower Limit: an integer

  • Upper Limit: an integer

  • Vector: a vector