Lines Matching refs:mat
28 PetscErrorCode MatCreateSubMatrixFree(Mat mat, IS Rows, IS Cols, Mat *J) in MatCreateSubMatrixFree() argument
30 MPI_Comm comm = PetscObjectComm((PetscObject)mat); in MatCreateSubMatrixFree()
36 ctx->A = mat; in MatCreateSubMatrixFree()
37 PetscCall(MatGetSize(mat, &m, &n)); in MatCreateSubMatrixFree()
38 PetscCall(MatGetLocalSize(mat, &mloc, &nloc)); in MatCreateSubMatrixFree()
39 PetscCall(MatCreateVecs(mat, NULL, &ctx->VC)); in MatCreateSubMatrixFree()
41 PetscCall(PetscObjectReference((PetscObject)mat)); in MatCreateSubMatrixFree()
67 PetscErrorCode MatSMFResetRowColumn(Mat mat, IS Rows, IS Cols) in MatSMFResetRowColumn() argument
72 PetscCall(MatShellGetContext(mat, &ctx)); in MatSMFResetRowColumn()
82 PetscErrorCode MatMult_SMF(Mat mat, Vec a, Vec y) in MatMult_SMF() argument
87 PetscCall(MatShellGetContext(mat, &ctx)); in MatMult_SMF()
95 PetscErrorCode MatMultTranspose_SMF(Mat mat, Vec a, Vec y) in MatMultTranspose_SMF() argument
100 PetscCall(MatShellGetContext(mat, &ctx)); in MatMultTranspose_SMF()
118 PetscErrorCode MatDestroy_SMF(Mat mat) in MatDestroy_SMF() argument
123 PetscCall(MatShellGetContext(mat, &ctx)); in MatDestroy_SMF()
132 PetscErrorCode MatView_SMF(Mat mat, PetscViewer viewer) in MatView_SMF() argument
137 PetscCall(MatShellGetContext(mat, &ctx)); in MatView_SMF()
152 PetscErrorCode MatDuplicate_SMF(Mat mat, MatDuplicateOption op, Mat *M) in MatDuplicate_SMF() argument
157 PetscCall(MatShellGetContext(mat, &ctx)); in MatDuplicate_SMF()
185 PetscErrorCode MatScale_SMF(Mat mat, PetscReal a) in MatScale_SMF() argument
190 PetscCall(MatShellGetContext(mat, &ctx)); in MatScale_SMF()
195 PetscErrorCode MatTranspose_SMF(Mat mat, Mat *B) in MatTranspose_SMF() argument
198 …SETERRQ(PetscObjectComm((PetscObject)mat), PETSC_ERR_SUP, "No support for transpose for MatCreateS… in MatTranspose_SMF()
202 PetscErrorCode MatGetDiagonal_SMF(Mat mat, Vec v) in MatGetDiagonal_SMF() argument
207 PetscCall(MatShellGetContext(mat, &ctx)); in MatGetDiagonal_SMF()
233 PetscErrorCode MatCreateSubMatrix_SMF(Mat mat, IS isrow, IS iscol, MatReuse cll, Mat *newmat) in MatCreateSubMatrix_SMF() argument
238 PetscCall(MatShellGetContext(mat, &ctx)); in MatCreateSubMatrix_SMF()
244 PetscErrorCode MatGetRow_SMF(Mat mat, PetscInt row, PetscInt *ncols, const PetscInt **cols, const P… in MatGetRow_SMF() argument
249 PetscCall(MatShellGetContext(mat, &ctx)); in MatGetRow_SMF()
254 PetscErrorCode MatRestoreRow_SMF(Mat mat, PetscInt row, PetscInt *ncols, const PetscInt **cols, con… in MatRestoreRow_SMF() argument
259 PetscCall(MatShellGetContext(mat, &ctx)); in MatRestoreRow_SMF()
264 PetscErrorCode MatGetColumnVector_SMF(Mat mat, Vec Y, PetscInt col) in MatGetColumnVector_SMF() argument
269 PetscCall(MatShellGetContext(mat, &ctx)); in MatGetColumnVector_SMF()
274 PetscErrorCode MatNorm_SMF(Mat mat, NormType type, PetscReal *norm) in MatNorm_SMF() argument
279 PetscCall(MatShellGetContext(mat, &ctx)); in MatNorm_SMF()