Lines Matching refs:tmat
656 Mat tmat, newmat; in MatCompositeMerge_Composite() local
670 PetscCall(MatDuplicate(next->mat, MAT_COPY_VALUES, &tmat)); in MatCompositeMerge_Composite()
671 if (shell->scalings) PetscCall(MatScale(tmat, shell->scalings[i++])); in MatCompositeMerge_Composite()
672 …while ((next = next->next)) PetscCall(MatAXPY(tmat, shell->scalings ? shell->scalings[i++] : 1.0, … in MatCompositeMerge_Composite()
675 PetscCall(MatDuplicate(prev->mat, MAT_COPY_VALUES, &tmat)); in MatCompositeMerge_Composite()
676 if (shell->scalings) PetscCall(MatScale(tmat, shell->scalings[i--])); in MatCompositeMerge_Composite()
677 …while ((prev = prev->prev)) PetscCall(MatAXPY(tmat, shell->scalings ? shell->scalings[i--] : 1.0, … in MatCompositeMerge_Composite()
681 PetscCall(MatDuplicate(next->mat, MAT_COPY_VALUES, &tmat)); in MatCompositeMerge_Composite()
683 PetscCall(MatMatMult(next->mat, tmat, MAT_INITIAL_MATRIX, PETSC_DETERMINE, &newmat)); in MatCompositeMerge_Composite()
684 PetscCall(MatDestroy(&tmat)); in MatCompositeMerge_Composite()
685 tmat = newmat; in MatCompositeMerge_Composite()
688 PetscCall(MatDuplicate(prev->mat, MAT_COPY_VALUES, &tmat)); in MatCompositeMerge_Composite()
690 PetscCall(MatMatMult(tmat, prev->mat, MAT_INITIAL_MATRIX, PETSC_DETERMINE, &newmat)); in MatCompositeMerge_Composite()
691 PetscCall(MatDestroy(&tmat)); in MatCompositeMerge_Composite()
692 tmat = newmat; in MatCompositeMerge_Composite()
704 PetscCall(MatHeaderReplace(mat, &tmat)); in MatCompositeMerge_Composite()