# MatSeqSBAIJSetColumnIndices
Set the column indices for all the rows in a `MATSEQSBAIJ` matrix. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatSeqSBAIJSetColumnIndices(Mat mat, PetscInt *indices)
```

## Input Parameters
+  mat     - the `MATSEQSBAIJ` matrix
-  indices - the column indices




## Notes
This can be called if you have precomputed the nonzero structure of the
matrix and want to provide it to the matrix object to improve the performance
of the `MatSetValues()` operation.

You MUST have set the correct numbers of nonzeros per row in the call to
`MatCreateSeqSBAIJ()`, and the columns indices MUST be sorted.

MUST be called before any calls to MatSetValues()

.seealso: `MATSEQSBAIJ`, `MatCreateSeqSBAIJ`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/sbaij/seq/sbaij.c.html#MatSeqSBAIJSetColumnIndices">src/mat/impls/sbaij/seq/sbaij.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/sbaij/seq/sbaij.c.html#MatSeqSBAIJSetColumnIndices_SeqSBAIJ">MatSeqSBAIJSetColumnIndices_SeqSBAIJ in src/mat/impls/sbaij/seq/sbaij.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/sbaij/seq/sbaij.c)


[Index of all Mat routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
