Gnm.Matrix

Fields

Name

Type

Access

Description

cols

int

r/w

data

float

r/w

ref_count

int

r/w

rows

int

r/w

Methods

class

from_value (v, ep)

class

new (rows, cols)

eigen (EIG)

is_empty ()

modified_cholesky (L, D, E, P)

multiply (A, B)

ref ()

to_value ()

unref ()

Details

class Gnm.Matrix
classmethod from_value(v, ep)
Parameters:
Returns:

A new Gnm.Matrix, None on error.

perr:

Gnm.Value with error GOffice.value

Return type:

(Gnm.Matrix or None, perr: Gnm.Value)

classmethod new(rows, cols)
Parameters:
  • rows (int) – Number of rows.

  • cols (int) – Number of columns.

Returns:

A new Gnm.Matrix.

Return type:

Gnm.Matrix

eigen(EIG)
Parameters:

EIG (Gnm.Matrix) – Output Gnm.Matrix

Returns:

eigenvalues:

Output location for eigen values.

Return type:

(bool, eigenvalues: float)

Calculates the eigenvalues and eigenvectors of a real symmetric matrix.

This is the Jacobi iterative process in which we use a sequence of Jacobi rotations (two-sided Givens rotations) in order to reduce the magnitude of off-diagonal elements while preserving eigenvalues.

is_empty()
Returns:

True if self is empty.

Return type:

bool

modified_cholesky(L, D, E, P)
Parameters:
Return type:

bool

multiply(A, B)
Parameters:

Computes A * B and stores the result in C. The matrices must have suitable sizes.

ref()
Returns:

a new reference to self.

Return type:

Gnm.Matrix or None

to_value()
Returns:

A Gnm.Value array

Return type:

Gnm.Value

unref()