DMPrintCellMatrix — PETSc 3.25.4 documentation

Skip to main content
`Ctrl`+`K`

# DMPrintCellMatrix

Print a scalar array representing a per-cell matrix to `PETSC_COMM_SELF`

## Synopsis

    #include "petscdm.h"
    #include "petscdmlabel.h"
    #include "petscds.h"
    PetscErrorCode DMPrintCellMatrix(PetscInt c, const char name[], PetscInt rows, PetscInt cols, const PetscScalar A[])

Not Collective

## Input Parameters

- c - the cell number

- name - the label to print with the cell (typically the element or field name)

- rows - number of rows in the matrix

- cols - number of columns in the matrix

- A - the row-major array of `PetscScalar` matrix entries

## Note

Only the real part of each entry is printed.

## See Also

DM Basics, `DM`, `DMPrintCellIndices()`, `DMPrintCellVector()`, `DMPrintCellVectorReal()`, `DMPrintLocalVec()`

## Level

developer

## Location

src/dm/interface/dm.c

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