17 #ifndef MATRIX_TYPES_H
18 #define MATRIX_TYPES_H
115 (t)? m_storage |=
DENSE
116 : m_storage &= ~
DENSE;
A class to distinguish between various types of matrices, both in terms of storage properties,...
bool isPositiveDefinite() const
bool isSaddlePoint() const
MatrixType & setSparse(bool t=true)
Storage
How the matrix is stored.
@ UPPER_TRIANGLE
Only upper triangle is stored, dense or sparse.
@ DENSE
The entire matrix is stored, or it is sparse.
@ LOWER_TRIANGLE
Only lower triangle is stored, dense or sparse.
bool isUpperTriangle() const
bool isLowerTriangle() const
MatrixType & setUpperTriangle(bool t=true)
MatrixType & setSymmetric(bool t=true)
Type
The kind of matrix we are dealing with.
@ POSITIVE_DEFINITE
Positive definite matrices.
@ SYMMETRIC
Symmetric matrices.
@ GENERIC
No special property.
@ SADDLE_POINT
Saddle point matrices, which may be symmetric or not, and positive definite or not.
MatrixType(int type, int storage)
MatrixType & setSquare(bool t=true)
MatrixType & setPositiveDefinite(bool t=true)
MatrixType & setDense(bool t=true)
MatrixType & setLowerTriangle(bool t=true)
MatrixType & setGeneric(bool t=true)
MatrixType & setSaddlePoint(bool t=true)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.