9 #ifndef __IPDENSEGENMATRIX_HPP__ 10 #define __IPDENSEGENMATRIX_HPP__ 21 class DenseGenMatrixSpace;
157 const std::string& name,
159 const std::string& prefix)
const;
Number * x
Input: Starting point Output: Optimal solution.
~DenseGenMatrixSpace()
Destructor.
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...
SmartPtr< DenseGenMatrix > MakeNewDenseGenMatrix() const
Create a new DenseGenMatrix from same MatrixSpace.
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.
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 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...
EJournalLevel
Print Level Enum.
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.
DenseGenMatrix * MakeNewDenseGenMatrix() const
Method for creating a new matrix of this specific type.
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 void MultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix-vector multiply.
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 TransMultVectorImpl(Number alpha, const Vector &x, Number beta, Vector &y) const
Matrix(transpose) vector multiply.
void LUSolveVector(DenseVector &b) const
Method for using a previously computed LU fatorization for a backsolve with a single vector...
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 .
const Number * Values() const
Retrieve the array that stores the matrix elements.
void CholeskySolveMatrix(DenseGenMatrix &B) const
Method for performing a solve of a linear system for one right-hand-side matrix, assuming that this m...
bool ComputeCholeskyFactor(const DenseSymMatrix &M)
Method for computing the Cholesky factorization of a positive definite matrix.
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.
Class for dense general matrices.
virtual Matrix * MakeNew() const
Overloaded MakeNew method for the MatrixSpace base class.
Class responsible for all message output.
virtual void ComputeColAMaxImpl(Vector &cols_norms, bool init) const
Compute the max-norm of the columns in the matrix.
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. ...
virtual void ComputeRowAMaxImpl(Vector &rows_norms, bool init) const
Compute the max-norm of the rows in the matrix.
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.
virtual bool HasValidNumbersImpl() const
Method for determining if all stored numbers are valid (i.e., no Inf or Nan).
Number * Values()
Retrieve the array for storing the matrix elements.