Lines Matching refs:Ai
499 PetscCall(MatDestroy(&ipmP->Ai)); in TaoDestroy_IPM()
582 PetscCall(MatMultTranspose(ipmP->Ai, ipmP->lambdai, ipmP->work)); in IPMComputeKKT()
690 if (!ipmP->Ai) { in IPMUpdateAi()
702 PetscCall(MatCreate(comm, &ipmP->Ai)); in IPMUpdateAi()
703 PetscCall(MatSetType(ipmP->Ai, MATAIJ)); in IPMUpdateAi()
707 PetscCall(MatSetSizes(ipmP->Ai, PETSC_DECIDE, nloc, ipmP->nb, PETSC_DECIDE)); in IPMUpdateAi()
708 PetscCall(MatSetFromOptions(ipmP->Ai)); in IPMUpdateAi()
709 PetscCall(MatMPIAIJSetPreallocation(ipmP->Ai, ipmP->nb, NULL, ipmP->nb, NULL)); in IPMUpdateAi()
710 PetscCall(MatSeqAIJSetPreallocation(ipmP->Ai, PETSC_DEFAULT, nonzeros)); in IPMUpdateAi()
715 PetscCall(MatGetOwnershipRange(ipmP->Ai, &astart, &aend)); in IPMUpdateAi()
719 PetscCall(MatZeroEntries(ipmP->Ai)); in IPMUpdateAi()
724 PetscCall(MatSetValues(ipmP->Ai, 1, &newrow, ncols, cols, vals, INSERT_VALUES)); in IPMUpdateAi()
736 PetscCall(MatSetValues(ipmP->Ai, 1, &newrow, 1, &newcol, &newval, INSERT_VALUES)); in IPMUpdateAi()
747 PetscCall(MatSetValues(ipmP->Ai, 1, &newrow, 1, &newcol, &newval, INSERT_VALUES)); in IPMUpdateAi()
752 PetscCall(MatAssemblyBegin(ipmP->Ai, MAT_FINAL_ASSEMBLY)); in IPMUpdateAi()
753 PetscCall(MatAssemblyEnd(ipmP->Ai, MAT_FINAL_ASSEMBLY)); in IPMUpdateAi()
917 PetscCall(MatGetOwnershipRange(ipmP->Ai, &aistart, &aiend)); in IPMUpdateK()
921 PetscCall(MatGetRow(ipmP->Ai, i, &ncols, &cols, &vals)); in IPMUpdateK()
933 PetscCall(MatRestoreRow(ipmP->Ai, i, &ncols, &cols, &vals)); in IPMUpdateK()