|
(Note that these are not member functions.)
|
NLAPI void NLAPIENTRY | nlCRSMatrixAdd (NLCRSMatrix *M, NLuint i, NLuint j, NLdouble value) |
| Adds a coefficient to an NLSparseMatrix. More...
|
|
#define | NL_MATRIX_STORE_ROWS 1 |
|
#define | NL_MATRIX_STORE_COLUMNS 2 |
|
#define | NL_MATRIX_STORE_SYMMETRIC 4 |
|
NLAPI NLMatrix NLAPIENTRY | nlSparseMatrixNew (NLuint m, NLuint n, NLenum storage) |
| Constructs a new NLSparseMatrix. More...
|
|
NLAPI void NLAPIENTRY | nlSparseMatrixConstruct (NLSparseMatrix *M, NLuint m, NLuint n, NLenum storage) |
| Constructs a new NLSparseMatrix. More...
|
|
NLAPI void NLAPIENTRY | nlSparseMatrixDestroy (NLSparseMatrix *M) |
| Destroys an NLSparseMatrix. More...
|
|
NLAPI void NLAPIENTRY | nlSparseMatrixMult (NLSparseMatrix *A, const NLdouble *x, NLdouble *y) |
| Computes a matrix-vector product. More...
|
|
NLAPI void NLAPIENTRY | nlSparseMatrixAdd (NLSparseMatrix *M, NLuint i, NLuint j, NLdouble value) |
| Adds a coefficient to an NLSparseMatrix. More...
|
|
NLAPI void NLAPIENTRY | nlSparseMatrixZero (NLSparseMatrix *M) |
| Zeroes an NLSparseMatrix. More...
|
|
NLAPI void NLAPIENTRY | nlSparseMatrixClear (NLSparseMatrix *M) |
| Clears an NLSparseMatrix. More...
|
|
NLAPI NLuint_big NLAPIENTRY | nlSparseMatrixNNZ (NLSparseMatrix *M) |
| Gets the number of non-zero coefficient in an NLSparseMatrix. More...
|
|
NLAPI void NLAPIENTRY | nlSparseMatrixSort (NLSparseMatrix *M) |
| Sorts the coefficients in an NLSParseMatrix. More...
|
|
Definition at line 479 of file nl_matrix.h.
◆ NL_MATRIX_STORE_COLUMNS
#define NL_MATRIX_STORE_COLUMNS 2 |
|
related |
◆ NL_MATRIX_STORE_ROWS
#define NL_MATRIX_STORE_ROWS 1 |
|
related |
◆ NL_MATRIX_STORE_SYMMETRIC
#define NL_MATRIX_STORE_SYMMETRIC 4 |
|
related |
for NLSparseMatrix storage: indicates that symmetric storage is used (only the lower triangular part is stored).
Definition at line 477 of file nl_matrix.h.
◆ nlCRSMatrixAdd()
Adds a coefficient to an NLSparseMatrix.
Performs the following operation: $ a_{i,j} \leftarrow a_{i,j} + \mbox{value} $
- Parameters
-
[in,out] | M | a pointer to an NLSparseMatrix |
[in] | i | index of the row |
[in] | j | index of the column |
[in] | value | the coefficient to be added |
◆ nlSparseMatrixAdd()
Adds a coefficient to an NLSparseMatrix.
Performs the following operation: $ a_{i,j} \leftarrow a_{i,j} + \mbox{value} $
- Parameters
-
[in,out] | M | a pointer to an NLSparseMatrix |
[in] | i | index of the row |
[in] | j | index of the column |
[in] | value | the coefficient to be added |
◆ nlSparseMatrixClear()
◆ nlSparseMatrixConstruct()
Constructs a new NLSparseMatrix.
- Parameters
-
[in,out] | M | a pointer to an uninitialized NLSparseMatrix |
[in] | m | number of rows |
[in] | n | number of columns |
[in] | storage | a bitwise or combination of flags that indicate what needs to be stored in the matrix. |
◆ nlSparseMatrixDestroy()
◆ nlSparseMatrixMult()
Computes a matrix-vector product.
- Parameters
-
[in] | A | a pointer to the matrix |
[in] | x | the vector to be multiplied, size = A->n |
[in] | y | where to store the result, size = A->m |
◆ nlSparseMatrixNew()
Constructs a new NLSparseMatrix.
- Parameters
-
[in] | m | number of rows |
[in] | n | number of columns |
[in] | storage | a bitwise or combination of flags that indicate what needs to be stored in the matrix. |
- Returns
- a pointer to a dynamically allocated NLSparseMatrix. It can be later deallocated by nlDeleteMatrix().
◆ nlSparseMatrixNNZ()
Gets the number of non-zero coefficient in an NLSparseMatrix.
- Parameters
-
- Returns
- the number of non-zero coefficients in
M
◆ nlSparseMatrixSort()
Sorts the coefficients in an NLSParseMatrix.
- Parameters
-
◆ nlSparseMatrixZero()
◆ type
Matrix type.
One of NL_MATRIX_DYNAMIC, NL_MATRIX_CRS, NL_MATRIX_SUPERLU_EXT, NL_CHOLDMOD_MATRIX_EXT
Definition at line 495 of file nl_matrix.h.
The documentation for this struct was generated from the following file: