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

MatImaginaryPart#

Moves the imaginary part of the matrix to the real part and zeros the imaginary part

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatImaginaryPart(Mat mat)

Logically Collective

Input Parameter#

  • mat - the matrix

See Also#

Matrices, Mat, MatRealPart()

Level#

advanced

Location#

src/mat/interface/matrix.c

Implementations#

MatImaginaryPart_MPIAIJ() in src/mat/impls/aij/mpi/mpiaij.c
MatImaginaryPart_SeqAIJ() in src/mat/impls/aij/seq/aij.c
MatImaginaryPart_MPIBAIJ() in src/mat/impls/baij/mpi/mpibaij.c
MatImaginaryPart_SeqBAIJ() in src/mat/impls/baij/seq/baij.c
MatImaginaryPart_MPIDense() in src/mat/impls/dense/mpi/mpidense.c
MatImaginaryPart_SeqDense() in src/mat/impls/dense/seq/dense.c
MatImaginaryPart_MPISBAIJ() in src/mat/impls/sbaij/mpi/mpisbaij.c
MatImaginaryPart_SeqSBAIJ() in src/mat/impls/sbaij/seq/sbaij.c
MatImaginaryPart_MPISELL() in src/mat/impls/sell/mpi/mpisell.c


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

On this page
  • Synopsis
  • Input Parameter
  • See Also
  • Level
  • Location
  • 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-07-17T06:10:00-0500 (v3.23.4-39-ge5234daee2c2).