MatProductSymbolic — PETSc 3.21.4 documentation

Skip to main content
`Ctrl`+`K`

# MatProductSymbolic

Perform the symbolic portion of a matrix-matrix product operation, this creates a data structure for use with the numerical product to be done with `MatProductNumeric()`

## Synopsis

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

Collective

## Input/Output Parameter

- mat - the matrix whose values are to be computed via a matrix-matrix product operation

## Note

`MatProductSetFromOptions()` must have been called on `mat` before calling this function

## See Also

Matrices, `MatProduct`, `Mat`, `MatProductCreate()`, `MatProductCreateWithMat()`, `MatProductSetFromOptions()`, `MatProductNumeric()`, `MatProductSetType()`, `MatProductSetAlgorithm()`

## Level

intermediate

## Location

src/mat/interface/matproduct.c

## Examples

src/tao/pde_constrained/tutorials/parabolic.c

## Implementations

MatProductSymbolic_MPIAIJKokkos() in src/mat/impls/aij/mpi/kokkos/mpiaijkok.kokkos.cxx
MatProductSymbolic_MPIAIJBACKEND() in src/mat/impls/aij/mpi/mpiaij.c
MatProductSymbolic_H2OPUS() in src/mat/impls/h2opus/cuda/math2opus.cu
MatProductSymbolic_Htool() in src/mat/impls/htool/htool.cxx

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