NTPoly
|
Helper routines for converting an NTPoly matrix to other program types. More...
#include <MatrixConversion.h>
Static Public Member Functions | |
static void | SnapMatrixToSparsityPattern (Matrix_ps &mata, const Matrix_ps &matb) |
Helper routines for converting an NTPoly matrix to other program types.
|
static |
Some codes use a fixed sparsity pattern for a matrix instead of filtering small values. Using this routine, the matrix is filled to have the same pattern as the second matrix argument. Zeros of the sparsity pattern are left in, whereas values outside the sparsity are removed. This can faciliate conversion between formats.
mata | the matrix to modify. |
matb | the matrix which defines the sparsity pattern. |