Skip to main content
Math module, providing matrix operations.

Classes

Functions

Variables

Detailed Description

Math module, providing matrix operations.

Function Documentation

CBDraw()

Write the contents of the matrix to a CBDraw file. CBDraw files must have the extension ‘.cb’. Parameters

CBDraw2D()

Write the contents of the matrix as color plot to a CBDraw file. Write the contents of the matrix to a CBDraw file. CBDraw files must have the extension ‘.cb’. The abscissa is generated from the indices Parameters

CBDrawLines()

Write the contents of the matrix as lines to a CBDraw file. CBDraw files must have the extension ‘.cb’. Parameters

Colorize()

encapsulates I/O functions for Matrix Computes the color values in RGB space for assuming blue for minimum and red for maximum.

ComplexProduct()

encapsulates complex functions for Matrix Computes the real and imaginary parts of the product of two complex matrices defined by real and imaginary parts.

Det()

encapsulates external functions for linalg objects Computes the determinant using LU Parameters Returns the determinant of mat

Diagonal()

encapsulates external functions for linalg objects

Exp()

Returns a Matrix x with coefficientwise x=exp(a*f) Parameters

gamma()

Compute Gamma function. Parameters Returns Gamma(z)

Gamma()

Compute Gamma function. Parameters Returns Gamma(x)

gauss1_pdf()

Compute 1D standard normal density. Parameters Returns PDF

gauss2_pdf()

Compute 2D standard normal density. Parameters Returns PDF

gaussn_pdf()

Compute n-D standard normal density. Parameters Returns PDF

Identity() [1/2]

creates an identity matrix of dim i*i Parameters Returns a matrix object

Identity() [2/2]

creates an identity matrix of dim i*j Parameters Returns a matrix object

Image() [1/2]

Write the contents of the matrix to a PNG file. Parameters

Image() [2/2]

Write the contents of the matrix to a PNG file. Parameters

Log()

Returns a Matrix x with coefficientwise x=log(a*f) (natural log) Parameters

Log10()

Returns a Matrix x with coefficientwise x=log10(a*f) (log base 10) Parameters

MatrixInput()

Reads a matrix from a text file or binary file. Binary files must have the extension ‘.bin’. Parameters Returns Matrix containing data on file Parameters

operator-()

encapsulates external functions for linalg objects

Output() [1/2]

Write the contents of the matrix to a text file ore binary file. Binary files must have the extension ‘.bin’. Parameters

Output() [2/2]

Write the contents of the matrix to a file containing tng code. Parameters

Pow()

Returns a Matrix x with coefficientwise x=pow(a,f) Parameters

Sin()

Returns a Matrix x with coefficientwise x=sin(a*f) Parameters

SortByCol()

Sort a matrix by multiple columns. Parameters Returns Sorted matrix Example: to_sort: 0 1 2 0 1 1 1 1 2 2 9 9 3 5 8 4 4 4 7 2 5 3 4 3 cols: 1 2 3 0 -> first sort for column #1, then for columns #2, columns #3 and #0 and less important here in this example sorted matrix: 1 1 1 1 0 1 2 0 2 2 9 9 5 3 4 3 4 4 7 2 3 5 8 4

SortByRow()

Sort a matrix by row. Parameters Returns Sorted matrix

Trace() [1/3]

returns the trace of the matrix encapsulates external functions for linalg objects Parameters Returns the trace (a scalar)

Trace() [2/3]

returns the trace of the matrix Parameters Returns the trace (a scalar)

Trace() [3/3]

returns the trace of the matrix Parameters Returns the trace (a scalar)

ZeroMatrix()

creates a zero matrix Parameters Returns a matrix object

ZeroVector()

creates a zero column vector Parameters Returns a matrix object

Variable Documentation

a

Compare depth of two objects for writing to CBDraw file Parameters Returns integer containing result of comparison