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, x, b, allow_degenerate)
class copyl (A, B)
class determinantl (A, res)
class dumpl (A, fmt)
class freel (A)
class fwd_solvel (R, x, b, allow_degenerate)
class multiplyl (C, A, B)
class transposel (A, B)
  back_solve (b, allow_degenerate)
  copy (B)
  determinant (res)
  dump (fmt)
  eigen_range ()
  free ()
  fwd_solve (b, allow_degenerate)
  multiply (A, B)
  transpose (B)

Details

class GOffice.QuadMatrix
classmethod back_solvel(R, x, b, allow_degenerate)
Parameters:
Return type:

bool

classmethod copyl(A, B)
Parameters:
classmethod determinantl(A, res)
Parameters:
classmethod dumpl(A, fmt)
Parameters:
classmethod freel(A)
Parameters:A (GOffice.QuadMatrixl) –
classmethod fwd_solvel(R, x, b, allow_degenerate)
Parameters:
Return type:

bool

classmethod multiplyl(C, A, B)
Parameters:
classmethod transposel(A, B)
Parameters:
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)

copy(B)
Parameters:B (GOffice.QuadMatrix) – Source matrix.

Copies B to A.

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)

multiply(A, B)
Parameters:

Multiplies A*B and stores the result in C.

transpose(B)
Parameters:B (GOffice.QuadMatrix) – Source matrix.

Transposes B into A.