Skip to main content
Ctrl+K
PETSc 3.23.2 documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • MatAssembled

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#

Matrices, Mat, MatAssemblyEnd(), MatSetValues(), MatAssemblyBegin()

Level#

advanced

Location#

src/mat/interface/matrix.c

Examples#

src/tao/unconstrained/tutorials/rosenbrock2.c
src/tao/unconstrained/tutorials/rosenbrock1.c
src/snes/tutorials/ex58.c
src/tao/unconstrained/tutorials/rosenbrock3.c
src/tao/complementarity/tutorials/blackscholes.c
src/tao/unconstrained/tutorials/minsurf2.c
src/tao/unconstrained/tutorials/rosenbrock1f.F90
src/tao/unconstrained/tutorials/eptorsion3.c
src/tao/unconstrained/tutorials/eptorsion1.c
src/tao/complementarity/tutorials/minsurf1.c


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-05-21T08:38:54-0500 (v3.23.2-41-gb677dd453eaf).