SOFA API  1a4bb3e7
Open source framework for multi-physics simuation
sofa::linearalgebra::CRSMechanicalPolicy Class Reference

#include <CompressedRowSparseMatrixMechanical.h>

Inheritance diagram for sofa::linearalgebra::CRSMechanicalPolicy:

Detailed Description

Mechanical policy type, showing the types and flags to give to CompressedRowSparseMatrixMechanical for its second template type.

Static Public Attributes

static constexpr bool CompressZeros = false
 
static constexpr bool IsAlwaysSquare = true
 
static constexpr bool IsAlwaysSymmetric = true
 
static constexpr bool OrderedInsertion = false
 
static constexpr bool StoreLowerTriangularBlock = true
 
static constexpr int matrixType = 1
 
- 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

◆ CompressZeros

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

◆ IsAlwaysSquare

constexpr bool sofa::linearalgebra::CRSMechanicalPolicy::IsAlwaysSquare = true
staticconstexpr

◆ IsAlwaysSymmetric

constexpr bool sofa::linearalgebra::CRSMechanicalPolicy::IsAlwaysSymmetric = true
staticconstexpr

◆ matrixType

constexpr int sofa::linearalgebra::CRSMechanicalPolicy::matrixType = 1
staticconstexpr

◆ OrderedInsertion

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

◆ StoreLowerTriangularBlock

constexpr bool sofa::linearalgebra::CRSMechanicalPolicy::StoreLowerTriangularBlock = true
staticconstexpr