Lines Matching refs:mat_other
491 PetscErrorCode MatCeedCopy(Mat mat_ceed, Mat mat_other) { in MatCeedCopy() argument
503 PetscCall(MatGetType(mat_other, &mat_type_other)); in MatCeedCopy()
531 PetscCall(PetscObjectChangeTypeName((PetscObject)mat_other, MATCEED)); in MatCeedCopy()
534 PetscCall(MatShellSetContext(mat_other, ctx)); in MatCeedCopy()
535 PetscCall(MatShellSetContextDestroy(mat_other, (PetscCtxDestroyFn *)MatCeedContextDestroy)); in MatCeedCopy()
536 PetscCall(MatShellSetOperation(mat_other, MATOP_VIEW, (void (*)(void))MatView_Ceed)); in MatCeedCopy()
537 PetscCall(MatShellSetOperation(mat_other, MATOP_MULT, (void (*)(void))MatMult_Ceed)); in MatCeedCopy()
538 …if (ctx->op_mult_transpose) PetscCall(MatShellSetOperation(mat_other, MATOP_MULT_TRANSPOSE, (void … in MatCeedCopy()
539 …PetscCall(MatShellSetOperation(mat_other, MATOP_GET_DIAGONAL, (void (*)(void))MatGetDiagonal_Ceed)… in MatCeedCopy()
540 …PetscCall(MatShellSetOperation(mat_other, MATOP_GET_DIAGONAL_BLOCK, (void (*)(void))MatGetDiagonal… in MatCeedCopy()
541 …PetscCall(MatShellSetOperation(mat_other, MATOP_GET_BLOCK_DIAGONAL, (void (*)(void))MatGetBlockDia… in MatCeedCopy()
542 …PetscCall(MatShellSetOperation(mat_other, MATOP_GET_VBLOCK_DIAGONAL, (void (*)(void))MatGetVariabl… in MatCeedCopy()
547 if (block_size > 1) PetscCall(MatSetBlockSize(mat_other, block_size)); in MatCeedCopy()
554 …if (num_blocks) PetscCall(MatSetVariableBlockSizes(mat_other, num_blocks, (PetscInt *)block_sizes)… in MatCeedCopy()
557 PetscCall(MatShellSetVecType(mat_other, vec_type)); in MatCeedCopy()