:orphan: # MatDenseSetLDA Sets the leading dimension of the array used by the `MATDENSE` matrix ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatDenseSetLDA(Mat A, PetscInt lda) ``` Not Collective ## Input Parameters - ***mat -*** a `MATDENSE` or `MATDENSECUDA` matrix - ***lda -*** the leading dimension ## See Also [](ch_matrices), `Mat`, `MATDENSE`, `MATDENSECUDA`, `MatDenseGetArray()`, `MatDenseRestoreArray()`, `MatDenseGetArrayRead()`, `MatDenseRestoreArrayRead()`, `MatDenseGetLDA()` ## Level intermediate ## Location src/mat/impls/dense/seq/dense.c ## Examples src/mat/tutorials/ex2.c
## Implementations MatDenseSetLDA_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatDenseSetLDA_SeqDense in src/mat/impls/dense/seq/dense.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/dense/seq/dense.c) [Index of all Mat routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)