Skip to main content
Ctrl+K
PETSc 3.22.3 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
  • MatEqual

MatEqual#

Compares two matrices.

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatEqual(Mat A, Mat B, PetscBool *flg)

Collective

Input Parameters#

  • A - the first matrix

  • B - the second matrix

Output Parameter#

  • flg - PETSC_TRUE if the matrices are equal; PETSC_FALSE otherwise.

See Also#

Matrices, Mat

Level#

intermediate

Location#

src/mat/interface/matrix.c

Examples#

src/ksp/ksp/tutorials/ex83f.F90

Implementations#

MatEqual_MPIAdj() in src/mat/impls/adj/mpi/mpiadj.c
MatEqual_MPIAIJ() in src/mat/impls/aij/mpi/mpiaij.c
MatEqual_SeqAIJ() in src/mat/impls/aij/seq/aij.c
MatEqual_MPIBAIJ() in src/mat/impls/baij/mpi/mpibaij.c
MatEqual_SeqBAIJ() in src/mat/impls/baij/seq/baij2.c
MatEqual_ConstantDiagonal() in src/mat/impls/cdiagonal/cdiagonal.c
MatEqual_MPIDense() in src/mat/impls/dense/mpi/mpidense.c
MatEqual_SeqDense() in src/mat/impls/dense/seq/dense.c
MatEqual_MPISBAIJ() in src/mat/impls/sbaij/mpi/mpisbaij.c
MatEqual_SeqSBAIJ() in src/mat/impls/sbaij/seq/sbaij2.c
MatEqual_MPISELL() in src/mat/impls/sell/mpi/mpisell.c
MatEqual_SeqSELL() in src/mat/impls/sell/seq/sell.c


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

On this page
  • Synopsis
  • Input Parameters
  • Output Parameter
  • See Also
  • Level
  • Location
  • Examples
  • Implementations
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-01-29T16:50:21-0600 (v3.22.3).