SOFA API  ca665544
Open source framework for multi-physics simuation
sofa::linearalgebra::CRSConstraintPolicy Class Reference

#include <CompressedRowSparseMatrixConstraint.h>

Inheritance diagram for sofa::linearalgebra::CRSConstraintPolicy:

Detailed Description

Constraint policy type, showing the types and flags to give to CompressedRowSparseMatrix for its second template type. The default values correspond to the original implementation.

Static Public Attributes

static constexpr bool AutoSize = true
 
static constexpr bool AutoCompress = true
 
static constexpr bool CompressZeros = false
 
static constexpr bool ClearByZeros = false
 
static constexpr bool OrderedInsertion = false
 
static constexpr int matrixType = 2
 
- Static Public Attributes inherited from sofa::linearalgebra::CRSDefaultPolicy
static constexpr bool IsAlwaysSquare = false
 Set to true if this matrix is always square (must be true for symmetric) More...
 
static constexpr bool IsAlwaysSymmetric = false
 Set to true if this matrix is always symmetric (IsAlwaysSquare should be true) More...
 
static constexpr bool AutoSize = false
 Set to true if the size of the matrix should be automatically increased when new blocks are added. More...
 
static constexpr bool AutoCompress = true
 Set to true if the matrix should be automatically compressed (easier to use, but might cause issues in multithreading) More...
 
static constexpr bool CompressZeros = true
 Set to true if the blocks that are all zeros should be removed from the matrix when compressing (expensive) More...
 
static constexpr bool ClearByZeros = true
 Set to true if clear methods will put all concerned value to zero instead of clearing vectors (CompressZeros should be true) More...
 
static constexpr bool OrderedInsertion = false
 Set to true if insertion in matrix are in most case at last line index or last col index. More...
 
static constexpr bool StoreLowerTriangularBlock = true
 Set to false to disable storage of blocks on the lower triangular part (IsAlwaysSymmetric must be true) More...
 
static constexpr int matrixType = 0
 Do not change this value, has to be overrided for all derivated class. More...
 

Attribute details

◆ AutoCompress

constexpr bool sofa::linearalgebra::CRSConstraintPolicy::AutoCompress = true
staticconstexpr

◆ AutoSize

constexpr bool sofa::linearalgebra::CRSConstraintPolicy::AutoSize = true
staticconstexpr

◆ ClearByZeros

constexpr bool sofa::linearalgebra::CRSConstraintPolicy::ClearByZeros = false
staticconstexpr

◆ CompressZeros

constexpr bool sofa::linearalgebra::CRSConstraintPolicy::CompressZeros = false
staticconstexpr

◆ matrixType

constexpr int sofa::linearalgebra::CRSConstraintPolicy::matrixType = 2
staticconstexpr

◆ OrderedInsertion

constexpr bool sofa::linearalgebra::CRSConstraintPolicy::OrderedInsertion = false
staticconstexpr