|
| | DoubleMatrix () |
| |
| virtual int | isKindOf (int matrixType)=0 |
| |
| virtual void | fromGetDense (int row, int col, double *A, int lda, int rowExtent, int colExtent)=0 |
| |
| virtual void | fromAddDense (int row, int col, double *A, int lda, int rowExtent, int colExtent) |
| |
| virtual void | fromGetSpRow (int row, int col, double A[], int lenA, int jcolA[], int &nnz, int colExtent, int &info)=0 |
| |
| virtual void | putSparseTriple (int irow[], int len, int jcol[], double A[], int &info)=0 |
| |
| virtual void | mult (double beta, OoqpVector &y, double alpha, OoqpVector &x)=0 |
| |
| virtual void | transMult (double beta, OoqpVector &y, double alpha, OoqpVector &x)=0 |
| |
| virtual double | abmaxnorm ()=0 |
| |
| virtual void | writeToStream (std::ostream &out) const =0 |
| |
| virtual void | getDiagonal (OoqpVector &vec)=0 |
| |
| virtual void | setToDiagonal (OoqpVector &vec)=0 |
| |
| virtual void | atPutDiagonal (int idiag, OoqpVector &x)=0 |
| |
| virtual void | fromGetDiagonal (int idiag, OoqpVector &x)=0 |
| |
| virtual void | SymmetricScale (OoqpVector &vec)=0 |
| |
| virtual void | ColumnScale (OoqpVector &vec)=0 |
| |
| virtual void | RowScale (OoqpVector &vec)=0 |
| |
| virtual void | scalarMult (double num)=0 |
| |
| virtual void | getSize (long long &m, long long &n)=0 |
| |
| virtual void | getSize (int &m, int &n)=0 |
| |
| virtual | ~DoubleMatrix () |
| |
| virtual void | copyMtxFromDouble (int copyLength, double *values) |
| |
| virtual void | setAdditiveDiagonal (OoqpVector &additiveDiag_) |
| |
| virtual void | copyDiagonalVal_From (int idiag, OoqpVector &x, bool firstCall, std::map< int, int > &ValIdxMap) |
| |
| virtual void | fromGetSpRow_WithRowStart (int row, int col, double A[], int lenA, int jcolA[], int &nnz, int colExtent, int &info, int &rowStart) |
| |
| virtual void | fromGetDense_withMap (int row, int col, double *A, int lda, int rowExtent, int colExtent, int const FirstCall, std::map< int, int > &ValIdxMap) |
| |
| virtual double * | getMatVal () |
| |
| virtual int * | krowM () |
| |
| virtual int * | jcolM () |
| |
| virtual double * | M () |
| |
| int | refs () |
| |
| | IotrRefCount () |
| |
Parent of all matrix classes
| virtual void DoubleMatrix::atPutDiagonal |
( |
int |
idiag, |
|
|
OoqpVector & |
x |
|
) |
| |
|
pure virtual |
Set some of the diagonal elements of this matrix.
- Parameters
-
| idiag | the index of the first diagonal element to be modified. |
| x | the new values for the diagonal elements. |
The length of x is the number of diagonal elements to be modified. Typically x will have length less than the length of the diagonal.
Implemented in StochGenDummyMatrix, StochSymDummyMatrix, SeqSparseGenMatrix, StochGenMatrix, SparseGenMatrix, DenseSymMatrix, StochSymMatrix, DenseGenMatrix, SparseSymMatrix, PetscSpSymMatrix, and PetscSpGenMatrix.
| virtual void DoubleMatrix::fromGetDense |
( |
int |
row, |
|
|
int |
col, |
|
|
double * |
A, |
|
|
int |
lda, |
|
|
int |
rowExtent, |
|
|
int |
colExtent |
|
) |
| |
|
pure virtual |
Get the value of some of the elements of this matrix.
- Parameters
-
| row | start reading the elements of this matrix from row number "row". |
| col | start reading the elements of this matrix from column number "col". |
| A | Any array to hold the values from this matrix. |
| ldA | the leading dimension of A. |
| rowExtent | get rowExtent rows from this matrix. |
| colExtent | get colExtent columns from this matrix. |
Implemented in StochGenDummyMatrix, StochSymDummyMatrix, StochGenMatrix, SeqSparseGenMatrix, DenseGenMatrix, StochSymMatrix, SparseGenMatrix, DenseSymMatrix, SparseSymMatrix, PetscSpGenMatrix, and PetscSpSymMatrix.
| virtual void DoubleMatrix::fromGetDiagonal |
( |
int |
idiag, |
|
|
OoqpVector & |
x |
|
) |
| |
|
pure virtual |
Get some of the diagonal elements of this matrix.
- Parameters
-
| idiag | the index of the first diagonal element to be read. |
| x | a vector to hold the diagonal elements |
The length of x is the number of diagonal elements to be gotten. Typically x will have length less than the length of the diagonal.
Implemented in StochGenDummyMatrix, StochSymDummyMatrix, SeqSparseGenMatrix, StochGenMatrix, SparseGenMatrix, DenseSymMatrix, StochSymMatrix, DenseGenMatrix, SparseSymMatrix, PetscSpSymMatrix, and PetscSpGenMatrix.
| virtual void DoubleMatrix::fromGetSpRow |
( |
int |
row, |
|
|
int |
col, |
|
|
double |
A[], |
|
|
int |
lenA, |
|
|
int |
jcolA[], |
|
|
int & |
nnz, |
|
|
int |
colExtent, |
|
|
int & |
info |
|
) |
| |
|
pure virtual |
Get one sparse row from this matrix.
- Parameters
-
| row | get row number "row" |
| col | ignore all elements of the row before column "col" |
| A | store the values of the sparse row in A |
| lenA | the length of A |
| jcolA | an array of length lenA containing the column index of each element in the sparse row |
| colExtent | ignore all elements of the row that have column indices greater than or equal to col + colExtent |
| info | info is 0 if and only if the sparse row can fit into A. |
Implemented in StochGenDummyMatrix, StochSymDummyMatrix, StochGenMatrix, SeqSparseGenMatrix, DenseGenMatrix, StochSymMatrix, SparseGenMatrix, DenseSymMatrix, PetscSpSymMatrix, SparseSymMatrix, and PetscSpGenMatrix.