24 MFEM_ASSERT(s >= 0,
"invalid DenseSymmetricMatrix size: " << s);
35 "invalid DenseSymmetricMatrix size: " << s);
49 for (
int i = 0; i < s; i++)
69 for (
int i = 0; i < s; i++)
78 mfem_error(
"DenseSymmetricMatrix::Mult() not implemented!");
83 mfem_error(
"DenseSymmetricMatrix::Inverse() not implemented!");
void SetSize(int nsize)
Change the logical size of the array, keep existing entries.
void SetSize(int s)
Change the size of the DenseSymmetricMatrix to s x s.
DenseSymmetricMatrix & operator*=(real_t c)
int GetStoredSize() const
Return the number of stored nonzeros in the matrix.
MatrixInverse * Inverse() const override
Returns a pointer to (an approximation) of the matrix inverse.
void Mult(const Vector &x, Vector &y) const override
Matrix vector multiplication.
DenseSymmetricMatrix & operator=(real_t c)
Sets the matrix elements equal to constant c.
real_t & Elem(int i, int j) override
Returns reference to a_{ij}.
Abstract data type for matrix inverse.
Abstract data type matrix.
int width
Dimension of the input / number of columns in the matrix.
int Height() const
Get the height (size of output) of the Operator. Synonym with NumRows().
int height
Dimension of the output / number of rows in the matrix.
void mfem_error(const char *msg)