Lines Matching refs:tns
57 PetscInt *tns, *tvc, *ns_row = a->inode.size_csr, *ns_col, nsz, i1, i2; in MatGetRowIJ_SeqAIJ_Inode_Symmetric() local
72 PetscCall(PetscMalloc2(nslim_col + 1, &tns, n + 1, &tvc)); in MatGetRowIJ_SeqAIJ_Inode_Symmetric()
73 …for (i1 = 0, tns[0] = 0; i1 < nslim_col; ++i1) tns[i1 + 1] = tns[i1] + (ns_row[i1 + 1] - ns_row[i1… in MatGetRowIJ_SeqAIJ_Inode_Symmetric()
97 while ((j < jmax) && ((col = *j + ishift) < tns[i2])) ++j; in MatGetRowIJ_SeqAIJ_Inode_Symmetric()
127 …while ((j < jmax) && ((col = *j + ishift) < tns[i2])) ++j; /* Skip rest col indices in this node */ in MatGetRowIJ_SeqAIJ_Inode_Symmetric()
133 PetscCall(PetscFree2(tns, tvc)); in MatGetRowIJ_SeqAIJ_Inode_Symmetric()
144 PetscInt *tns, *tvc, nsz, i1, i2; in MatGetRowIJ_SeqAIJ_Inode_Nonsymmetric() local
156 PetscCall(PetscMalloc2(nslim_col + 1, &tns, n + 1, &tvc)); in MatGetRowIJ_SeqAIJ_Inode_Nonsymmetric()
157 …for (i1 = 0, tns[0] = 0; i1 < nslim_col; ++i1) tns[i1 + 1] = tns[i1] + (ns_col[i1 + 1] - ns_col[i1… in MatGetRowIJ_SeqAIJ_Inode_Nonsymmetric()
180 while (nz > 0 && ((col = *j++ + ishift) < tns[i2])) nz--; in MatGetRowIJ_SeqAIJ_Inode_Nonsymmetric()
208 while (nz > 0 && ((col = *j++ + ishift) < tns[i2])) nz--; in MatGetRowIJ_SeqAIJ_Inode_Nonsymmetric()
214 PetscCall(PetscFree2(tns, tvc)); in MatGetRowIJ_SeqAIJ_Inode_Nonsymmetric()
253 PetscInt *tns, *tvc, *ns_row = a->inode.size_csr, nsz, i1, i2, *ai = a->i, *aj = a->j; in MatGetColumnIJ_SeqAIJ_Inode_Nonsymmetric() local
264 PetscCall(PetscMalloc2(nslim_col + 1, &tns, n + 1, &tvc)); in MatGetColumnIJ_SeqAIJ_Inode_Nonsymmetric()
265 …for (i1 = 0, tns[0] = 0; i1 < nslim_col; ++i1) tns[i1 + 1] = tns[i1] + (ns_col[i1 + 1] - ns_col[i1… in MatGetColumnIJ_SeqAIJ_Inode_Nonsymmetric()
288 while (nz > 0 && ((col = *j++ + ishift) < tns[i2])) nz--; in MatGetColumnIJ_SeqAIJ_Inode_Nonsymmetric()
316 while (nz > 0 && ((col = *j++ + ishift) < tns[i2])) nz--; in MatGetColumnIJ_SeqAIJ_Inode_Nonsymmetric()
322 PetscCall(PetscFree2(tns, tvc)); in MatGetColumnIJ_SeqAIJ_Inode_Nonsymmetric()
4130 …PetscInt row, col, *permr, *permc, *ns_row = a->inode.size_csr, *tns, start_val, end_val, i… in MatInodeAdjustForInodes_SeqAIJ_Inode() local
4139 PetscCall(PetscMalloc1(((nslim_row > nslim_col ? nslim_row : nslim_col) + 1), &tns)); in MatInodeAdjustForInodes_SeqAIJ_Inode()
4146 for (i = 0, tns[0] = 0; i < nslim_row; ++i) tns[i + 1] = tns[i] + (ns_row[i + 1] - ns_row[i]); in MatInodeAdjustForInodes_SeqAIJ_Inode()
4151 start_val = tns[indx]; in MatInodeAdjustForInodes_SeqAIJ_Inode()
4152 end_val = tns[indx + 1]; in MatInodeAdjustForInodes_SeqAIJ_Inode()
4157 for (i = 0, tns[0] = 0; i < nslim_col; ++i) tns[i + 1] = tns[i] + (ns_col[i + 1] - ns_col[i]); in MatInodeAdjustForInodes_SeqAIJ_Inode()
4162 start_val = tns[indx]; in MatInodeAdjustForInodes_SeqAIJ_Inode()
4163 end_val = tns[indx + 1]; in MatInodeAdjustForInodes_SeqAIJ_Inode()
4179 PetscCall(PetscFree(tns)); in MatInodeAdjustForInodes_SeqAIJ_Inode()