Lines Matching refs:dshift
109 PetscCall(VecRestoreArrayRead(shell->dshift, &d)); in MatShellPreScaleLeft()
166 PetscCall(VecRestoreArrayRead(shell->dshift, &d)); in MatShellPostScaleRight()
187 if (shell->dshift) { /* get arrays because there is no VecPointwiseMultAdd() */ in MatShellShiftAndScale()
192 PetscCall(VecGetArrayRead(shell->dshift, &d)); in MatShellShiftAndScale()
199 PetscCall(VecRestoreArrayRead(shell->dshift, &d)); in MatShellShiftAndScale()
445 PetscCall(VecDestroy(&shell->dshift)); in MatDestroy_Shell()
591 if (shell->dshift || shell->vshift != 0.0) { in MatProductNumeric_Shell_X()
593 if (shell->dshift) { in MatProductNumeric_Shell_X()
594 PetscCall(VecCopy(shell->dshift, shell->left_work)); in MatProductNumeric_Shell_X()
619 if (shell->dshift || shell->vshift != 0.0) { in MatProductNumeric_Shell_X()
623 if (shell->dshift) { in MatProductNumeric_Shell_X()
624 PetscCall(VecCopy(shell->dshift, shell->right_work)); in MatProductNumeric_Shell_X()
637 …PetscCheck(!shell->dshift && shell->vshift == 0.0, PetscObjectComm((PetscObject)D), PETSC_ERR_SUP,… in MatProductNumeric_Shell_X()
924 if (shellA->dshift) { in MatCopy_Shell()
925 if (!shellB->dshift) PetscCall(VecDuplicate(shellA->dshift, &shellB->dshift)); in MatCopy_Shell()
926 PetscCall(VecCopy(shellA->dshift, shellB->dshift)); in MatCopy_Shell()
928 PetscCall(VecDestroy(&shellB->dshift)); in MatCopy_Shell()
1150 if (shell->dshift) PetscCall(VecAXPY(v, 1.0, shell->dshift)); in MatGetDiagonal_Shell()
1180 …PetscCheck(!shell->dshift, PetscObjectComm((PetscObject)A), PETSC_ERR_SUP, "Cannot call MatGetDiag… in MatGetDiagonalBlock_Shell()
1214 if (!shell->dshift) { in MatShift_Shell()
1215 PetscCall(VecDuplicate(shell->left ? shell->left : shell->right, &shell->dshift)); in MatShift_Shell()
1216 PetscCall(VecSet(shell->dshift, a)); in MatShift_Shell()
1218 if (shell->left) PetscCall(VecPointwiseMult(shell->dshift, shell->dshift, shell->left)); in MatShift_Shell()
1219 if (shell->right) PetscCall(VecPointwiseMult(shell->dshift, shell->dshift, shell->right)); in MatShift_Shell()
1220 PetscCall(VecShift(shell->dshift, a)); in MatShift_Shell()
1222 if (shell->left) PetscCall(VecPointwiseDivide(shell->dshift, shell->dshift, shell->left)); in MatShift_Shell()
1223 if (shell->right) PetscCall(VecPointwiseDivide(shell->dshift, shell->dshift, shell->right)); in MatShift_Shell()
1234 if (!shell->dshift) PetscCall(VecDuplicate(D, &shell->dshift)); in MatDiagonalSet_Shell_Private()
1245 PetscCall(VecAXPY(shell->dshift, s, shell->right_work)); in MatDiagonalSet_Shell_Private()
1247 PetscCall(VecAXPY(shell->dshift, s, D)); in MatDiagonalSet_Shell_Private()
1282 if (shell->dshift) PetscCall(VecScale(shell->dshift, a)); in MatScale_Shell()
1331 PetscCall(VecDestroy(&shell->dshift)); in MatAssemblyEnd_Shell()
1580 …calingShifts_Shell(Mat A, PetscScalar *vshift, PetscScalar *vscale, Vec *dshift, Vec *left, Vec *r… in MatShellGetScalingShifts_Shell() argument
1590 …if (dshift == MAT_SHELL_NOT_ALLOWED) PetscCheck(!shell->dshift, PetscObjectComm((PetscObject)A), P… in MatShellGetScalingShifts_Shell()
1591 else if (dshift) *dshift = shell->dshift; in MatShellGetScalingShifts_Shell()
2011 …llGetScalingShifts(Mat A, PetscScalar *vshift, PetscScalar *vscale, Vec *dshift, Vec *left, Vec *r… in MatShellGetScalingShifts() argument
2015 …scScalar *, Vec *, Vec *, Vec *, Mat *, IS *, IS *), (A, vshift, vscale, dshift, left, right, axpy… in MatShellGetScalingShifts()