24 #include "imstkNonLinearSystem.h" 33 template<
typename SystemMatrixType>
42 LinearSystem(
const SystemMatrixType& matrix,
const Vectord& b) : m_A(matrix), m_b(b)
142 const SystemMatrixType& m_A;
const SystemMatrixType & getMatrix() const
Returns reference to local matrix.
Eigen::TriangularView< SystemMatrixType, Eigen::Lower > getLowerTriangular() const
Returns template expression for the lower triangular part of A.
Base class for a multi-variable nonlinear system.
LinearSystem()=delete
Constructor/destructor(s). This class can't be constructed without a matrix and rhs.
Vectord & getFunctionValue()
Get the value of the function F.
Eigen::TriangularView< SystemMatrixType, Eigen::StrictlyUpper > getStrictUpperTriangular() const
Returns template expression for the strict upper triangular part of A.
const Vectord & getRHSVector() const
Returns a reference to local right hand side vector.
void setRHSVector(const Vectord &newRhs)
Set the system rhs corresponding to this system.
Represents the linear system of the form .
void setMatrix(const SystemMatrixType &newMatrix)
Set the system matrix corresponding to this ODE system.
void computeResidual(const Vectord &x, Vectord &r) const
Compute the residual as .
Eigen::TriangularView< SystemMatrixType, Eigen::Upper > getUpperTrianglular() const
Returns template expression for the upper triangular part of A.
Eigen::TriangularView< SystemMatrixType, Eigen::StrictlyLower > getStrictLowerTriangular() const
Returns template expression for the strict lower triangular part of A.
size_t getSize()
Returns the size of the system.