Lines Matching refs:mat
369 …e MatCreateCeed(DM dm_x, DM dm_y, CeedOperator op_mult, CeedOperator op_mult_transpose, Mat *mat) { in MatCreateCeed() argument
417 …CreateShell(PetscObjectComm((PetscObject)dm_x), Y_l_size, X_l_size, Y_g_size, X_g_size, ctx, mat)); in MatCreateCeed()
418 PetscCall(PetscObjectChangeTypeName((PetscObject)*mat, MATCEED)); in MatCreateCeed()
447 if (block_size > 1) PetscCall(MatSetBlockSize(*mat, block_size)); in MatCreateCeed()
448 … if (num_blocks) PetscCall(MatSetVariableBlockSizes(*mat, num_blocks, (PetscInt *)vblock_sizes)); in MatCreateCeed()
519 PetscCall(MatShellSetContextDestroy(*mat, (PetscCtxDestroyFn *)MatCeedContextDestroy)); in MatCreateCeed()
520 PetscCall(MatShellSetOperation(*mat, MATOP_VIEW, (MatSetOpFn)MatView_Ceed)); in MatCreateCeed()
521 PetscCall(MatShellSetOperation(*mat, MATOP_MULT, (MatSetOpFn)MatMult_Ceed)); in MatCreateCeed()
522 …if (op_mult_transpose) PetscCall(MatShellSetOperation(*mat, MATOP_MULT_TRANSPOSE, (MatSetOpFn)MatM… in MatCreateCeed()
523 PetscCall(MatShellSetOperation(*mat, MATOP_GET_DIAGONAL, (MatSetOpFn)MatGetDiagonal_Ceed)); in MatCreateCeed()
524 …PetscCall(MatShellSetOperation(*mat, MATOP_GET_DIAGONAL_BLOCK, (MatSetOpFn)MatGetDiagonalBlock_Cee… in MatCreateCeed()
525 …PetscCall(MatShellSetOperation(*mat, MATOP_GET_BLOCK_DIAGONAL, (MatSetOpFn)MatGetBlockDiagonal_Cee… in MatCreateCeed()
526 …PetscCall(MatShellSetOperation(*mat, MATOP_GET_VBLOCK_DIAGONAL, (MatSetOpFn)MatGetVariableBlockDia… in MatCreateCeed()
527 PetscCall(MatShellSetOperation(*mat, MATOP_SET_FROM_OPTIONS, (MatSetOpFn)MatSetFromOptions_Ceed)); in MatCreateCeed()
528 PetscCall(MatShellSetVecType(*mat, vec_type)); in MatCreateCeed()
791 PetscErrorCode MatCeedSetContextDouble(Mat mat, const char *name, double value) { in MatCeedSetContextDouble() argument
796 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedSetContextDouble()
804 PetscCall(MatCeedGetContextDouble(mat, name, &set_value)); in MatCeedSetContextDouble()
816 PetscCall(MatCeedGetContextDouble(mat, name, &set_value)); in MatCeedSetContextDouble()
825 PetscCall(MatAssemblyBegin(mat, MAT_FINAL_ASSEMBLY)); in MatCeedSetContextDouble()
826 PetscCall(MatAssemblyEnd(mat, MAT_FINAL_ASSEMBLY)); in MatCeedSetContextDouble()
842 PetscErrorCode MatCeedGetContextDouble(Mat mat, const char *name, double *value) { in MatCeedGetContextDouble() argument
846 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedGetContextDouble()
879 PetscErrorCode MatCeedSetContextReal(Mat mat, const char *name, PetscReal value) { in MatCeedSetContextReal() argument
883 PetscCall(MatCeedSetContextDouble(mat, name, value_double)); in MatCeedSetContextReal()
898 PetscErrorCode MatCeedGetContextReal(Mat mat, const char *name, PetscReal *value) { in MatCeedGetContextReal() argument
902 PetscCall(MatCeedGetContextDouble(mat, name, &value_double)); in MatCeedGetContextReal()
917 PetscErrorCode MatCeedSetTime(Mat mat, PetscReal time) { in MatCeedSetTime() argument
922 PetscCall(MatCeedSetContextDouble(mat, "time", time_ceed)); in MatCeedSetTime()
937 PetscErrorCode MatCeedGetTime(Mat mat, PetscReal *time) { in MatCeedGetTime() argument
943 PetscCall(MatCeedGetContextDouble(mat, "time", &time_ceed)); in MatCeedGetTime()
959 PetscErrorCode MatCeedSetDt(Mat mat, PetscReal dt) { in MatCeedSetDt() argument
964 PetscCall(MatCeedSetContextDouble(mat, "dt", dt_ceed)); in MatCeedSetDt()
980 PetscErrorCode MatCeedSetShifts(Mat mat, PetscReal shift_v, PetscReal shift_a) { in MatCeedSetShifts() argument
985 PetscCall(MatCeedSetContextDouble(mat, "shift v", shift_v_ceed)); in MatCeedSetShifts()
990 PetscCall(MatCeedSetContextDouble(mat, "shift a", shift_a_ceed)); in MatCeedSetShifts()
1006 PetscErrorCode MatCeedSetContext(Mat mat, PetscCtxDestroyFn f, void *ctx) { in MatCeedSetContext() argument
1011 PetscCall(PetscContainerCreate(PetscObjectComm((PetscObject)mat), &user_ctx)); in MatCeedSetContext()
1015 PetscCall(PetscObjectCompose((PetscObject)mat, "MatCeed user context", (PetscObject)user_ctx)); in MatCeedSetContext()
1030 PetscErrorCode MatCeedGetContext(Mat mat, void *ctx) { in MatCeedGetContext() argument
1034 PetscCall(PetscObjectQuery((PetscObject)mat, "MatCeed user context", (PetscObject *)&user_ctx)); in MatCeedGetContext()
1053 PetscErrorCode MatCeedSetOperation(Mat mat, MatOperation op, void (*g)(void)) { in MatCeedSetOperation() argument
1055 PetscCall(MatShellSetOperation(mat, op, (MatSetOpFn)g)); in MatCeedSetOperation()
1071 PetscErrorCode MatCeedSetReusePreallocationCOO(Mat mat, PetscBool coo_reuse_preallocation) { in MatCeedSetReusePreallocationCOO() argument
1075 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedSetReusePreallocationCOO()
1090 PetscErrorCode MatCeedGetReusePreallocationCOO(Mat mat, PetscBool *coo_reuse_preallocation) { in MatCeedGetReusePreallocationCOO() argument
1094 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedGetReusePreallocationCOO()
1109 PetscErrorCode MatCeedSetCOOMatType(Mat mat, MatType type) { in MatCeedSetCOOMatType() argument
1113 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedSetCOOMatType()
1166 PetscErrorCode MatCeedGetCOOMatType(Mat mat, MatType *type) { in MatCeedGetCOOMatType() argument
1170 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedGetCOOMatType()
1186 PetscErrorCode MatCeedSetLocalVectors(Mat mat, Vec X_loc, Vec Y_loc_transpose) { in MatCeedSetLocalVectors() argument
1190 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedSetLocalVectors()
1223 PetscErrorCode MatCeedGetLocalVectors(Mat mat, Vec *X_loc, Vec *Y_loc_transpose) { in MatCeedGetLocalVectors() argument
1227 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedGetLocalVectors()
1250 PetscErrorCode MatCeedRestoreLocalVectors(Mat mat, Vec *X_loc, Vec *Y_loc_transpose) { in MatCeedRestoreLocalVectors() argument
1268 PetscErrorCode MatCeedGetCeedOperators(Mat mat, CeedOperator *op_mult, CeedOperator *op_mult_transp… in MatCeedGetCeedOperators() argument
1272 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedGetCeedOperators()
1295 PetscErrorCode MatCeedRestoreCeedOperators(Mat mat, CeedOperator *op_mult, CeedOperator *op_mult_tr… in MatCeedRestoreCeedOperators() argument
1299 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedRestoreCeedOperators()
1316 PetscErrorCode MatCeedSetLogEvents(Mat mat, PetscLogEvent log_event_mult, PetscLogEvent log_event_m… in MatCeedSetLogEvents() argument
1320 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedSetLogEvents()
1337 PetscErrorCode MatCeedGetLogEvents(Mat mat, PetscLogEvent *log_event_mult, PetscLogEvent *log_event… in MatCeedGetLogEvents() argument
1341 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedGetLogEvents()
1358 PetscErrorCode MatCeedSetCeedOperatorLogEvents(Mat mat, PetscLogEvent log_event_mult, PetscLogEvent… in MatCeedSetCeedOperatorLogEvents() argument
1362 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedSetCeedOperatorLogEvents()
1379 PetscErrorCode MatCeedGetCeedOperatorLogEvents(Mat mat, PetscLogEvent *log_event_mult, PetscLogEven… in MatCeedGetCeedOperatorLogEvents() argument
1383 PetscCall(MatShellGetContext(mat, &ctx)); in MatCeedGetCeedOperatorLogEvents()