orthonormalize
orthonormalize(B, M=None)
Orthonormalize a matrix B with respect to the mass matrix M by cutting off redundant columns.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
A |
(n, d) float numpy array
|
Matrix to orthonormalize |
required |
M |
(n, n) scipy sparse matrix
|
Mass matrix |
None
|
Returns:
Type | Description |
---|---|
B : (n, d') float numpy array
|
Orthonormalized matrix satisfying B.T @ M @ B = I |
Source code in src\fast_cody\orthonormalize.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|