:orphan: # MatAssembled Indicates if a matrix has been assembled and is ready for use; for example, in matrix-vector product. ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatAssembled(Mat mat, PetscBool *assembled) ``` Not Collective ## Input Parameter - ***mat -*** the matrix ## Output Parameter - ***assembled -*** `PETSC_TRUE` or `PETSC_FALSE` ## See Also [](ch_matrices), `Mat`, `MatAssemblyEnd()`, `MatSetValues()`, `MatAssemblyBegin()` ## Level advanced ## Location src/mat/interface/matrix.c ## Examples src/snes/tutorials/ex58.c
src/tao/bound/tutorials/jbearing2.c
src/tao/bound/tutorials/plate2.c
src/tao/bound/tutorials/plate2f.F90
src/tao/complementarity/tutorials/blackscholes.c
src/tao/complementarity/tutorials/minsurf1.c
src/tao/unconstrained/tutorials/eptorsion1.c
src/tao/unconstrained/tutorials/eptorsion3.c
src/tao/unconstrained/tutorials/minsurf2.c
src/tao/unconstrained/tutorials/rosenbrock1.c
src/tao/unconstrained/tutorials/rosenbrock1f.F90
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matrix.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)