Home
last modified time | relevance | path

Searched refs:dshift (Results 1 – 6 of 6) sorted by relevance

/petsc/src/mat/impls/shell/
H A Dshell.c109 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()
[all …]
H A Dshell.h36 Vec dshift; member
/petsc/src/mat/impls/normal/
H A Dnormmh.c208 Vec left, right, dshift; in MatConvert_NormalHermitian_AIJ() local
214 …PetscCall(MatShellGetScalingShifts(A, &shift, &scale, &dshift, &left, &right, (Mat *)MAT_SHELL_NOT… in MatConvert_NormalHermitian_AIJ()
240 if (dshift) PetscCall(MatDiagonalSet(*newmat, dshift, ADD_VALUES)); in MatConvert_NormalHermitian_AIJ()
H A Dnormm.c224 Vec left, right, dshift; in MatConvert_Normal_AIJ() local
230 …PetscCall(MatShellGetScalingShifts(A, &shift, &scale, &dshift, &left, &right, (Mat *)MAT_SHELL_NOT… in MatConvert_Normal_AIJ()
250 if (dshift) PetscCall(MatDiagonalSet(*newmat, dshift, ADD_VALUES)); in MatConvert_Normal_AIJ()
/petsc/src/mat/impls/composite/
H A Dmcomposite.c657 Vec left, right, dshift; in MatCompositeMerge_Composite() local
666 …PetscCall(MatShellGetScalingShifts(mat, &shift, &scale, &dshift, &left, &right, (Mat *)MAT_SHELL_N… in MatCompositeMerge_Composite()
702 if (dshift) PetscCall(PetscObjectReference((PetscObject)dshift)); in MatCompositeMerge_Composite()
711 if (dshift) { in MatCompositeMerge_Composite()
712 PetscCall(MatDiagonalSet(mat, dshift, ADD_VALUES)); in MatCompositeMerge_Composite()
713 PetscCall(VecDestroy(&dshift)); in MatCompositeMerge_Composite()
/petsc/src/mat/impls/nest/
H A Dmatnest.c2055 …((Mat_Shell *)B->data)->left && !((Mat_Shell *)B->data)->right && !((Mat_Shell *)B->data)->dshift); in MatConvert_Nest_AIJ()