Changeset 7550 for trunk/psLib/src/math/psSparse.h
- Timestamp:
- Jun 13, 2006, 2:02:47 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psSparse.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psSparse.h
r7380 r7550 25 25 psVector *Si; // Si contains the i-index values of Aij 26 26 psVector *Sj; // Sj contains the j-index values of Aij 27 longNelem; // Number of elements28 longNrows; // Number of rows27 int Nelem; // Number of elements 28 int Nrows; // Number of rows 29 29 } 30 30 psSparse; 31 31 32 32 // allocate a sparse matrix structure 33 psSparse *psSparseAlloc( long Nrows, longNelem);33 psSparse *psSparseAlloc(int Nrows, int Nelem); 34 34 35 35 // add a new matrix element 36 36 // user should only add elements above the diagonal 37 37 bool psSparseMatrixElement(psSparse *sparse, // Matrix to which to add 38 long i, longj, // Matrix indices at which to add38 int i, int j, // Matrix indices at which to add 39 39 float value // Value to add 40 40 ); … … 42 42 // define a new sparse matrix equation vector element 43 43 void inline psSparseVectorElement(psSparse *sparse, // Matrix to which to add 44 longi, // Index to add44 int i, // Index to add 45 45 float value // Value to add 46 46 );
Note:
See TracChangeset
for help on using the changeset viewer.
