11 const PetscScalar*
const* Ain,
14 const InsertMode &addv=ADD_VALUES
23 const PetscScalar &diag,
27 const PetscBool ¶llel=PETSC_TRUE,
28 const InsertMode &addv=ADD_VALUES
45 const PetscScalar &value,
49 const PetscBool ¶llel=PETSC_TRUE,
50 const InsertMode &addv=ADD_VALUES
64 const PetscInt &rowoffset=0,
65 const PetscInt &coloffset=0,
66 const InsertMode &addv=ADD_VALUES
75 const PetscScalar* Ain,
77 const PetscInt &ncols,
78 const PetscInt cols[],
80 const InsertMode &addv=ADD_VALUES
96 const PetscInt &nvars=4,
97 const PetscInt &rowoffset=0,
98 const PetscInt &coloffset=0,
99 const InsertMode &addv=ADD_VALUES
107 const Mat &diag_to_scale,
109 const PetscInt &nsub,
112 const PetscInt &rowoffset=0,
113 const PetscInt &coloffset=0,
114 const InsertMode &addv=ADD_VALUES
138 const InsertMode &addv=ADD_VALUES
Namespace containing all functions and data classes for this solver.
Definition: Ax_b.hpp:5
PetscInt 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 (...
Definition: set_Mat.cpp:273
PetscInt 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 tha...
Definition: set_Mat.cpp:246
PetscInt 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...
Definition: set_Mat.cpp:317
PetscInt 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
Definition: set_Mat.cpp:8
PetscInt set_Mat_aPDdim_to_A(PetscScalar a, Mat &P, Mat &D, Mat &A)
Definition: set_Mat.cpp:392
PetscInt 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) ...
Definition: set_Mat.cpp:217