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: - R (GOffice.QuadMatrixl) –
- x (GOffice.Quadl) –
- b (GOffice.Quadl) –
- allow_degenerate (bool) –
 - Return type: 
- R (
 - 
classmethod copyl(A, B)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- B (GOffice.QuadMatrixl) –
 
- A (
 - 
classmethod determinantl(A, res)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- res (GOffice.Quadl) –
 
- A (
 - 
classmethod dumpl(A, fmt)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- fmt (str) –
 
- A (
 - 
classmethod freel(A)¶
- Parameters: - A ( - GOffice.QuadMatrixl) –
 - 
classmethod fwd_solvel(R, x, b, allow_degenerate)¶
- Parameters: - R (GOffice.QuadMatrixl) –
- x (GOffice.Quadl) –
- b (GOffice.Quadl) –
- allow_degenerate (bool) –
 - Return type: 
- R (
 - 
classmethod multiplyl(C, A, B)¶
- Parameters: - C (GOffice.QuadMatrixl) –
- A (GOffice.QuadMatrixl) –
- B (GOffice.QuadMatrixl) –
 
- C (
 - 
classmethod transposel(A, B)¶
- Parameters: - A (GOffice.QuadMatrixl) –
- B (GOffice.QuadMatrixl) –
 
- A (
 - 
back_solve(b, allow_degenerate)¶
- Parameters: - b (GOffice.Quad) – Input vector.
- allow_degenerate (bool) – IfTrue, then degenerate dimensions are ignored other than being given a zero result. A degenerate dimension is one whose diagonal entry is zero.
 - Returns: - Trueon error.- This function solves the triangular system R*x=b. - x: - Result vector. - Return type: - ( - bool, x:- GOffice.Quad)
- b (
 - 
copy(B)¶
- Parameters: - B ( - GOffice.QuadMatrix) – Source matrix.- Copies B to A. 
 - 
determinant(res)¶
- Parameters: - res ( - GOffice.Quad) –
 - 
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) – IfTrue, then degenerate dimensions are ignored other than being given a zero result. A degenerate dimension is one whose diagonal entry is zero.
 - Returns: - Trueon error.- This function solves the triangular system RT*x=b. - x: - Result vector. - Return type: - ( - bool, x:- GOffice.Quad)
- b (
 - 
multiply(A, B)¶
- Parameters: - A (GOffice.QuadMatrix) – Source matrix.
- B (GOffice.QuadMatrix) – Source matrix.
 - Multiplies A*B and stores the result in C. 
- A (
 - 
transpose(B)¶
- Parameters: - B ( - GOffice.QuadMatrix) – Source matrix.- Transposes B into A. 
 
- 
classmethod