Lines Matching refs:starts
1792 …PetscInt *starts = mat->stencil.starts, *dxm = (PetscInt *)idxm, *dxn = (PetscInt *)idxn, sdim = d… in MatSetValuesStencil() local
1811 tmp = *dxm++ - starts[0]; in MatSetValuesStencil()
1813 if ((*dxm++ - starts[j + 1]) < 0 || tmp < 0) tmp = -1; in MatSetValuesStencil()
1814 else tmp = tmp * dims[j] + *(dxm - 1) - starts[j + 1]; in MatSetValuesStencil()
1821 tmp = *dxn++ - starts[0]; in MatSetValuesStencil()
1823 if ((*dxn++ - starts[j + 1]) < 0 || tmp < 0) tmp = -1; in MatSetValuesStencil()
1824 else tmp = tmp * dims[j] + *(dxn - 1) - starts[j + 1]; in MatSetValuesStencil()
1907 …PetscInt *starts = mat->stencil.starts, *dxm = (PetscInt *)idxm, *dxn = (PetscInt *)idxn, sdim = d… in MatSetValuesBlockedStencil() local
1927 tmp = *dxm++ - starts[0]; in MatSetValuesBlockedStencil()
1929 if ((*dxm++ - starts[j + 1]) < 0 || tmp < 0) tmp = -1; in MatSetValuesBlockedStencil()
1930 else tmp = tmp * dims[j] + *(dxm - 1) - starts[j + 1]; in MatSetValuesBlockedStencil()
1937 tmp = *dxn++ - starts[0]; in MatSetValuesBlockedStencil()
1939 if ((*dxn++ - starts[j + 1]) < 0 || tmp < 0) tmp = -1; in MatSetValuesBlockedStencil()
1940 else tmp = tmp * dims[j] + *(dxn - 1) - starts[j + 1]; in MatSetValuesBlockedStencil()
1975 PetscErrorCode MatSetStencil(Mat mat, PetscInt dim, const PetscInt dims[], const PetscInt starts[],… in MatSetStencil() argument
1980 PetscAssertPointer(starts, 4); in MatSetStencil()
1985 mat->stencil.starts[i] = starts[dim - i - 1]; in MatSetStencil()
1988 mat->stencil.starts[dim] = 0; in MatSetStencil()
4310 B->stencil.starts[i] = A->stencil.starts[i]; in MatCopy()
4487 (*M)->stencil.starts[i] = mat->stencil.starts[i]; in MatConvert()
4959 B->stencil.starts[i] = mat->stencil.starts[i]; in MatDuplicate()
6511 PetscInt *starts = mat->stencil.starts; in MatZeroRowsStencil() local
6525 tmp = *dxm++ - starts[0]; in MatZeroRowsStencil()
6529 if ((*dxm++ - starts[j + 1]) < 0 || tmp < 0) tmp = PETSC_INT_MIN; in MatZeroRowsStencil()
6531 else tmp = tmp * dims[j] + *(dxm - 1) - starts[j + 1]; in MatZeroRowsStencil()
6594 PetscInt *starts = mat->stencil.starts; in MatZeroRowsColumnsStencil() local
6608 tmp = *dxm++ - starts[0]; in MatZeroRowsColumnsStencil()
6612 if ((*dxm++ - starts[j + 1]) < 0 || tmp < 0) tmp = PETSC_INT_MIN; in MatZeroRowsColumnsStencil()
6614 else tmp = tmp * dims[j] + *(dxm - 1) - starts[j + 1]; in MatZeroRowsColumnsStencil()
7702 …PetscInt n, *sizes, *starts, i = 0, env = 0, tbs = 0, lblocks = 0, rstart, II, ln = 0, c… in MatComputeVariableBlockEnvelope() local
7736 PetscCall(PetscMalloc2(n, &sizes, n, &starts)); in MatComputeVariableBlockEnvelope()
7747 starts[lblocks] = tbs; in MatComputeVariableBlockEnvelope()
7766 …for (PetscInt i = 0; i < lblocks; i++) PetscCall(ISCreateStride(PETSC_COMM_SELF, sizes[i], starts[… in MatComputeVariableBlockEnvelope()
7781 seqv[cnt] = starts[i]; in MatComputeVariableBlockEnvelope()
7782 seqv[cnt + 1] = starts[i] + sizes[i]; in MatComputeVariableBlockEnvelope()
7831 PetscCall(PetscFree2(sizes, starts)); in MatComputeVariableBlockEnvelope()