NTPoly
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
NTPoly::MatrixConversion Class Reference

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)
 

Detailed Description

Helper routines for converting an NTPoly matrix to other program types.

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: