Lines Matching refs:mat_other
542 PetscErrorCode MatCeedCopy(Mat mat_ceed, Mat mat_other) { in MatCeedCopy() argument
554 PetscCall(MatGetType(mat_other, &mat_type_other)); in MatCeedCopy()
582 PetscCall(PetscObjectChangeTypeName((PetscObject)mat_other, MATCEED)); in MatCeedCopy()
585 PetscCall(MatShellSetContext(mat_other, ctx)); in MatCeedCopy()
586 PetscCall(MatShellSetContextDestroy(mat_other, (PetscCtxDestroyFn *)MatCeedContextDestroy)); in MatCeedCopy()
587 PetscCall(MatShellSetOperation(mat_other, MATOP_VIEW, (MatSetOpFn)MatView_Ceed)); in MatCeedCopy()
588 PetscCall(MatShellSetOperation(mat_other, MATOP_MULT, (MatSetOpFn)MatMult_Ceed)); in MatCeedCopy()
589 …if (ctx->op_mult_transpose) PetscCall(MatShellSetOperation(mat_other, MATOP_MULT_TRANSPOSE, (MatSe… in MatCeedCopy()
590 PetscCall(MatShellSetOperation(mat_other, MATOP_GET_DIAGONAL, (MatSetOpFn)MatGetDiagonal_Ceed)); in MatCeedCopy()
591 …PetscCall(MatShellSetOperation(mat_other, MATOP_GET_DIAGONAL_BLOCK, (MatSetOpFn)MatGetDiagonalBloc… in MatCeedCopy()
592 …PetscCall(MatShellSetOperation(mat_other, MATOP_GET_BLOCK_DIAGONAL, (MatSetOpFn)MatGetBlockDiagona… in MatCeedCopy()
593 …PetscCall(MatShellSetOperation(mat_other, MATOP_GET_VBLOCK_DIAGONAL, (MatSetOpFn)MatGetVariableBlo… in MatCeedCopy()
598 if (block_size > 1) PetscCall(MatSetBlockSize(mat_other, block_size)); in MatCeedCopy()
605 …if (num_blocks) PetscCall(MatSetVariableBlockSizes(mat_other, num_blocks, (PetscInt *)block_sizes)… in MatCeedCopy()
608 PetscCall(MatShellSetVecType(mat_other, vec_type)); in MatCeedCopy()