MatProductSetType#
Sets a particular matrix-matrix product operation to be used to compute the values of the given matrix
Synopsis#
#include "petscmat.h"
PetscErrorCode MatProductSetType(Mat mat, MatProductType productype)
Collective
Input Parameters#
mat - the matrix whose values are computed via a matrix-matrix product operation
productype - matrix product type, e.g.,
MATPRODUCT_AB,MATPRODUCT_AtB,MATPRODUCT_ABt,MATPRODUCT_PtAP,MATPRODUCT_RARt,MATPRODUCT_ABC, seeMatProductType
Note#
The small t represents the transpose operation.
See Also#
Matrices, MatProduct, Mat, MatProductCreate(), MatProductType,
MATPRODUCT_AB, MATPRODUCT_AtB, MATPRODUCT_ABt, MATPRODUCT_PtAP, MATPRODUCT_RARt, MATPRODUCT_ABC
Level#
intermediate
Location#
Examples#
src/mat/tests/ex101.c
src/mat/tests/ex109.c
src/mat/tests/ex111.c
src/mat/tests/ex195.c
src/mat/tests/ex237.c
src/mat/tests/ex258.c
src/mat/tests/ex309.c
src/mat/tests/ex62.c
src/mat/tests/ex69.c
src/mat/tests/ex6k.kokkos.cxx
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages