NTPoly
Static Public Member Functions | List of all members
NTPoly::MatrixConversion Class Reference

Static Public Member Functions

static void SnapMatrixToSparsityPattern (Matrix_ps &mata, const Matrix_ps &matb)
 

Member Function Documentation

◆ SnapMatrixToSparsityPattern()

void NTPoly::MatrixConversion::SnapMatrixToSparsityPattern ( Matrix_ps mata,
const Matrix_ps matb 
)
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.

Parameters
matathe matrix to modify.
matbthe matrix which defines the sparsity pattern.

The documentation for this class was generated from the following files: