MatCompositeSetType#

Indicates if the matrix is defined as the sum of a set of matrices or the product.

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatCompositeSetType(Mat mat, MatCompositeType type)

Logically Collective

Input Parameters#

  • mat - the composite matrix

See Also#

Mat, MatDestroy(), MatMult(), MatCompositeAddMat(), MatCreateComposite(), MatCompositeGetType(), MATCOMPOSITE

Level#

advanced

Location#

src/mat/impls/composite/mcomposite.c

Examples#

src/mat/tutorials/ex9.c.html

Implementations#

MatCompositeSetType_Composite in src/mat/impls/composite/mcomposite.c


Edit on GitLab

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