Class Matrix#

Inheritance Relationships#

Base Type#

Class Documentation#

class Matrix : public OrbitUtils::CppPyWrapper#

A class for plain NxM matrices with double values.

Public Functions

Matrix(int n, int m)#

Constructor.

Matrix(Matrix *mtrx)#

Copy constructor.

~Matrix()#

Destructor

double **getArray()#

Returns the pointer to the two dimensional array.

int rows()#

Returns the number of rows.

int columns()#

Returns the number of columns.

double &value(int i, int j)#
int copyTo(Matrix *m_child)#

Copies the matrix to another.

void transpose()#

Transposes the matrix in place.

int unit()#

Makes the unit matrix in place.

void zero()#

Sets to zero matrix elements

int add(double val)#

Adds the value to each element of the matrix.

int add(Matrix *mtrx)#

Adds a matrix.

int mult(double val)#

Multiplies each element of the matrix by the value.

int mult(Matrix *mtrx)#

Multiplies two matrices.