Lines Matching refs:coo
4544 MatCOOStruct_SeqAIJ *coo = *(MatCOOStruct_SeqAIJ **)data; in MatCOOStructDestroy_SeqAIJ() local
4547 PetscCall(PetscFree(coo->perm)); in MatCOOStructDestroy_SeqAIJ()
4548 PetscCall(PetscFree(coo->jmap)); in MatCOOStructDestroy_SeqAIJ()
4549 PetscCall(PetscFree(coo)); in MatCOOStructDestroy_SeqAIJ()
4565 MatCOOStruct_SeqAIJ *coo; in MatSetPreallocationCOO_SeqAIJ() local
4729 PetscCall(PetscMalloc1(1, &coo)); in MatSetPreallocationCOO_SeqAIJ()
4730 PetscCall(PetscIntCast(nnz, &coo->nz)); in MatSetPreallocationCOO_SeqAIJ()
4731 coo->n = coo_n; in MatSetPreallocationCOO_SeqAIJ()
4732 coo->Atot = coo_n - nneg; // Annz is seqaij->nz, so no need to record that again in MatSetPreallocationCOO_SeqAIJ()
4733 coo->jmap = jmap; // of length nnz+1 in MatSetPreallocationCOO_SeqAIJ()
4734 coo->perm = perm; in MatSetPreallocationCOO_SeqAIJ()
4735 …PetscCall(PetscObjectContainerCompose((PetscObject)mat, "__PETSc_MatCOOStruct_Host", coo, MatCOOSt… in MatSetPreallocationCOO_SeqAIJ()
4746 MatCOOStruct_SeqAIJ *coo; in MatSetValuesCOO_SeqAIJ() local
4751 PetscCall(PetscContainerGetPointer(container, &coo)); in MatSetValuesCOO_SeqAIJ()
4752 perm = coo->perm; in MatSetValuesCOO_SeqAIJ()
4753 jmap = coo->jmap; in MatSetValuesCOO_SeqAIJ()