Searched refs:YmalphaOpX (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/ksp/ksp/utils/lmvm/ |
| H A D | lmvmutils.c | 984 …rCode MatLMVMUpdateOpDiffVecs(Mat B, LMBasis Y, PetscScalar alpha, LMBasis OpX, LMBasis YmalphaOpX) in MatLMVMUpdateOpDiffVecs() argument 998 if (YmalphaOpX->operator_id != J0_id || YmalphaOpX->operator_state != J0_state) { in MatLMVMUpdateOpDiffVecs() 1000 YmalphaOpX->k = oldest; in MatLMVMUpdateOpDiffVecs() 1001 YmalphaOpX->operator_id = J0_id; in MatLMVMUpdateOpDiffVecs() 1002 YmalphaOpX->operator_state = J0_state; in MatLMVMUpdateOpDiffVecs() 1003 PetscCall(LMBasisSetCachedProduct(YmalphaOpX, NULL, NULL)); in MatLMVMUpdateOpDiffVecs() 1005 YmalphaOpX->k = PetscMax(YmalphaOpX->k, oldest); in MatLMVMUpdateOpDiffVecs() 1006 start = YmalphaOpX->k; in MatLMVMUpdateOpDiffVecs() 1008 PetscCall(MatCopy(Y->vecs, YmalphaOpX->vecs, SAME_NONZERO_PATTERN)); in MatLMVMUpdateOpDiffVecs() 1009 PetscCall(MatAXPY(YmalphaOpX->vecs, -alpha, OpX->vecs, SAME_NONZERO_PATTERN)); in MatLMVMUpdateOpDiffVecs() [all …]
|