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