|
PetscInt | SPE::set_Mat (const PetscScalar *const *Ain, const PetscInt &n, Mat &A, const InsertMode &addv=ADD_VALUES) |
| set a matrix from PetscScalar 2D matrix to PETSc Mat type in parallel More...
|
|
PetscInt | SPE::set_Mat (const PetscScalar &diag, const PetscInt &n, Mat &A, const PetscInt &k=0, const PetscBool ¶llel=PETSC_TRUE, const InsertMode &addv=ADD_VALUES) |
| set a diagonal of a matrix from scalar More...
|
|
PetscInt | SPE::set_Mat (Mat &A) |
| Assemble matrix. More...
|
|
PetscInt | SPE::set_Mat (const PetscScalar &value, const PetscInt &row, const PetscInt &col, Mat &A, const PetscBool ¶llel=PETSC_TRUE, const InsertMode &addv=ADD_VALUES) |
| set a single value in matrix at row,col More...
|
|
PetscInt | SPE::set_Mat (const PetscScalar &a, const Mat &Asub, const PetscInt &nsub, Mat &A, const PetscInt &n, const PetscInt &rowoffset=0, const PetscInt &coloffset=0, const InsertMode &addv=ADD_VALUES) |
| set a submatrix Asub in a matrix A More...
|
|
PetscInt | SPE::set_Mat (const PetscScalar *Ain, const PetscInt &row, const PetscInt &ncols, const PetscInt cols[], Mat &A, const InsertMode &addv=ADD_VALUES) |
| set a row of PetscScalar to a matrix to PETSc Mat More...
|
|
PetscInt | SPE::set_Mat (const PetscScalar &a, const Mat &Dz, const PetscInt &nz, const PetscInt &ny, const PetscInt &zi, Mat &A, const PetscInt &n, const PetscInt &nvars=4, const PetscInt &rowoffset=0, const PetscInt &coloffset=0, const InsertMode &addv=ADD_VALUES) |
| set a Dz submatrix into A More...
|
|
PetscInt | SPE::set_MatDiagonalScale (const Mat &diag_to_scale, const Mat &Asub, const PetscInt &nsub, Mat &A, const PetscInt &n, const PetscInt &rowoffset=0, const PetscInt &coloffset=0, const InsertMode &addv=ADD_VALUES) |
| set a scaled matrix, (rows are scaled by matrix, using A=LA and MatDiagonalScale) More...
|
|
PetscInt | SPE::set_Mat_broadcast_from_colVec (Vec &x, PetscInt &n, Mat &A) |
| set a matrix from a column vector (broadcast the column vector to all columns of a matrix Be sure that A is already initialized More...
|
|
PetscInt | SPE::set_Mat_from_Vec (Vec &x, PetscInt &ny, PetscInt &nz, PetscInt &rowoffset, Mat &A, const InsertMode &addv=ADD_VALUES) |
| set a matrix A (large ny*nz*4) from a vector (ny*nz) (used in the diagonals) at a certain rowoffset (between 0-ny*3). Be sure that A is already initialized More...
|
|
PetscInt | SPE::set_Mat_kron (const Mat &A, const Mat &B, Mat &C) |
| Kronecker tensor product of two matrices A and B to make C If A is m by n, and B is p by q, then C will be m*p by n*q matrix formed by taking all possible products between the elements of A and the matrix B. See wikipedia for more information here. More...
|
|
PetscInt | SPE::set_Mat_aPDdim_to_A (PetscScalar a, Mat &P, Mat &D, Mat &A) |
|