Changeset 9991 for trunk/psLib/src/math/psSparse.h
- Timestamp:
- Nov 14, 2006, 4:30:22 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psSparse.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psSparse.h
r7551 r9991 65 65 ); 66 66 67 # if (0) 68 // The border elements of a sparse matrix equation: 69 // A = |S B| where Q is a low-rank square matrix (N<20) 70 // |B Q| and B is a rectangular band (technically this is B and B^T) 71 typedef struct 72 { 73 psImage *Bij; // Aij contains the populated elements of the matrix 74 psImage *Qii; // Bfj contains the elements of the vector Bf 75 int Nelem; // Number of elements (long dimension of Bij, 0-j) 76 int Nrows; // Number of rows (size of Qii) 77 } 78 psSparseBorder; 79 80 81 // allocate a sparse matrix structure 82 psSparse *psSparseBorderAlloc(int Nrows, int Nelem); 83 84 // add a new matrix element 85 // user should only add elements above the diagonal 86 bool psSparseBorderMatrixElement(psSparse *sparse, // Matrix to which to add 87 int i, int j, // Matrix indices at which to add 88 float value // Value to add 89 ); 90 91 // define a new sparse matrix equation vector element 92 void psSparseBorderVectorElement(psSparse *sparse, // Matrix to which to add 93 int i, int j, // Index to add 94 float value // Value to add 95 ); 96 # endif /* gene's dev work */ 97 67 98 #endif /* PS_SPARSE_H */
Note:
See TracChangeset
for help on using the changeset viewer.
