IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 14, 2006, 4:30:22 PM (19 years ago)
Author:
magnier
Message:

adding psSparseBorder APIs (ifdef-ed out)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psSparse.h

    r7551 r9991  
    6565                       );
    6666
     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    }
     78psSparseBorder;
     79
     80
     81// allocate a sparse matrix structure
     82psSparse *psSparseBorderAlloc(int Nrows, int Nelem);
     83
     84// add a new matrix element
     85// user should only add elements above the diagonal
     86bool 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
     92void 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
    6798#endif /* PS_SPARSE_H */
Note: See TracChangeset for help on using the changeset viewer.