Go to the documentation of this file.
9 #ifndef __IPDENSEGENMATRIX_HPP__
10 #define __IPDENSEGENMATRIX_HPP__
21 class DenseGenMatrixSpace;
157 const std::string& name,
159 const std::string& prefix)
const;
~DenseGenMatrix()
Destructor.
MatrixSpace base class, corresponding to the Matrix base class.
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
const DenseGenMatrixSpace * owner_space_
Class for Matrices with few columns that consists of Vectors.
This is the matrix space for DenseGenMatrix.
bool ComputeLUFactorInPlace()
Method for computing the LU factorization of an unsymmetric matrix.
void Copy(const DenseGenMatrix &M)
Method for copying the content of another matrix into this matrix.
Class for dense general matrices.
double Number
Type of all numbers.
void operator=(const DenseGenMatrix &)
Overloaded Equals Operator.
DenseGenMatrix * MakeNewDenseGenMatrix() const
Method for creating a new matrix of this specific type.
void ObjectChanged()
Objects derived from TaggedObject MUST call this method every time their internal state changes to up...
bool initialized_
Flag indicating whether the values_ array has been initialized.
virtual void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
EJournalLevel
Print Level Enum.
DenseGenMatrixSpace(Index nRows, Index nCols)
Constructor for matrix space for DenseGenMatrices.
Number * x
Input: Starting point Output: Optimal solution.
void FillIdentity(Number factor=1.)
Set this matrix to be a multiple of the identity matrix .
Factorization
Enum for factorization type.
void AddMatrixProduct(Number alpha, const DenseGenMatrix &A, bool transA, const DenseGenMatrix &B, bool transB, Number beta)
Method for adding the product of two matrices to this matrix.
int Index
Type of all indices of vectors, matrices etc.
int * pivot_
Array for storing the pivot sequences if the matrix has been LU-factorized.
virtual void TransMultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix(transpose) vector multiply.
void LUSolveMatrix(DenseGenMatrix &B) const
Method for using a previously computed LU factorization for a backsolve with a matrix on the rhs.
void CholeskySolveVector(DenseVector &b) const
Method for performing a solve of a linear system for one vector, assuming that this matrix contains t...
Template class for Smart Pointers.
DenseGenMatrix(const DenseGenMatrix &)
Copy Constructor.
DenseGenMatrix()
Default Constructor.
EJournalCategory
Category Selection Enum.
virtual void ComputeColAMaxImpl(Vector &cols_norms, bool init) const
Compute the max-norm of the columns in the matrix.
Factorization factorization_
Flag indicating if and which factorization has been applied.
bool ComputeEigenVectors(const DenseSymMatrix &M, DenseVector &Evalues)
Method for computing an eigenvalue decomposition of the given symmetrix matrix M.
Class responsible for all message output.
virtual Matrix * MakeNew() const
Overloaded MakeNew method for the MatrixSpace base class.
Number * Values()
Retrieve the array for storing the matrix elements.
Number * values_
Array for storing the matrix elements (one columns after each other)
Class for dense symetrix matrices.
void HighRankUpdateTranspose(Number alpha, const MultiVectorMatrix &V1, const MultiVectorMatrix &V2, Number beta)
Method for adding a high-rank update to this matrix.
Dense Vector Implementation.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
void CholeskyBackSolveMatrix(bool trans, Number alpha, DenseGenMatrix &B) const
Method for performing one backsolve with an entire matrix on the right hand side, assuming that the t...
void LUSolveVector(DenseVector &b) const
Method for using a previously computed LU fatorization for a backsolve with a single vector.
virtual void PrintImpl(const Journalist &jnlst, EJournalLevel level, EJournalCategory category, const std::string &name, Index indent, const std::string &prefix) const
Print detailed information about the matrix.
const Number * Values() const
Retrieve the array that stores the matrix elements.
~DenseGenMatrixSpace()
Destructor.
void CholeskySolveMatrix(DenseGenMatrix &B) const
Method for performing a solve of a linear system for one right-hand-side matrix, assuming that this m...
SmartPtr< DenseGenMatrix > MakeNewDenseGenMatrix() const
Create a new DenseGenMatrix from same MatrixSpace.
bool ComputeCholeskyFactor(const DenseSymMatrix &M)
Method for computing the Cholesky factorization of a positive definite matrix.
void ScaleColumns(const DenseVector &scal_vec)
Method for scaling the columns of the matrix.
DenseGenMatrix(const DenseGenMatrixSpace *owner_space)
Constructor, taking the owner_space.