GOffice.QuadMatrix

Fields

Name

Type

Access

Description

data

GOffice.Quad

r/w

m

int

r/w

n

int

r/w

Methods

class

back_solvel (R, b, allow_degenerate)

class

copy (B)

class

copyl (B)

class

determinantl (A, res)

class

dumpl (A, fmt)

class

freel (A)

class

fwd_solvel (R, b, allow_degenerate)

class

multiply (A, B)

class

multiplyl (A, B)

class

transpose (B)

class

transposel (B)

back_solve (b, allow_degenerate)

determinant (res)

dump (fmt)

eigen_range ()

free ()

fwd_solve (b, allow_degenerate)

Details

class GOffice.QuadMatrix
classmethod back_solvel(R, b, allow_degenerate)
Parameters:
  • R (GOffice.QuadMatrixl) – An upper triangular matrix.

  • b (GOffice.Quadl) – Input vector.

  • allow_degenerate (bool) – If True, then degenerate dimensions are ignored other than being given a zero result. A degenerate dimension is one whose diagonal entry is zero.

Returns:

True on error.

This function solves the triangular system R*x=b.

x:

Result vector.

Return type:

(bool, x: GOffice.Quadl)

classmethod copy(B)
Parameters:

B (GOffice.QuadMatrix) – Source matrix.

Returns:

Destination matrix.

Return type:

A: GOffice.QuadMatrix

Copies B to A.

classmethod copyl(B)
Parameters:

B (GOffice.QuadMatrixl) – Source matrix.

Returns:

Destination matrix.

Return type:

A: GOffice.QuadMatrixl

Copies B to A.

classmethod determinantl(A, res)
Parameters:
classmethod dumpl(A, fmt)
Parameters:
classmethod freel(A)
Parameters:

A (GOffice.QuadMatrixl) –

classmethod fwd_solvel(R, b, allow_degenerate)
Parameters:
  • R (GOffice.QuadMatrixl) – An upper triangular matrix.

  • b (GOffice.Quadl) – Input vector.

  • allow_degenerate (bool) – If True, then degenerate dimensions are ignored other than being given a zero result. A degenerate dimension is one whose diagonal entry is zero.

Returns:

True on error.

This function solves the triangular system RT*x=b.

x:

Result vector.

Return type:

(bool, x: GOffice.Quadl)

classmethod multiply(A, B)
Parameters:
Returns:

Destination matrix.

Return type:

C: GOffice.QuadMatrix

Multiplies A*B and stores the result in C.

classmethod multiplyl(A, B)
Parameters:
Returns:

Destination matrix.

Return type:

C: GOffice.QuadMatrixl

Multiplies A*B and stores the result in C.

classmethod transpose(B)
Parameters:

B (GOffice.QuadMatrix) – Source matrix.

Returns:

Destination matrix.

Return type:

A: GOffice.QuadMatrix

Transposes B into A.

classmethod transposel(B)
Parameters:

B (GOffice.QuadMatrixl) – Source matrix.

Returns:

Destination matrix.

Return type:

A: GOffice.QuadMatrixl

Transposes B into A.

back_solve(b, allow_degenerate)
Parameters:
  • b (GOffice.Quad) – Input vector.

  • allow_degenerate (bool) – If True, then degenerate dimensions are ignored other than being given a zero result. A degenerate dimension is one whose diagonal entry is zero.

Returns:

True on error.

This function solves the triangular system R*x=b.

x:

Result vector.

Return type:

(bool, x: GOffice.Quad)

determinant(res)
Parameters:

res (GOffice.Quad) –

dump(fmt)
Parameters:

fmt (str) –

eigen_range()
Returns:

emin:

Smallest absolute eigen GOffice.value.

emax:

Largest absolute eigen GOffice.value.

Return type:

(emin: float, emax: float)

free()
fwd_solve(b, allow_degenerate)
Parameters:
  • b (GOffice.Quad) – Input vector.

  • allow_degenerate (bool) – If True, then degenerate dimensions are ignored other than being given a zero result. A degenerate dimension is one whose diagonal entry is zero.

Returns:

True on error.

This function solves the triangular system RT*x=b.

x:

Result vector.

Return type:

(bool, x: GOffice.Quad)