MatProductCreateWithMat#
Setup a given matrix as a matrix product of other matrices
Synopsis#
#include "petscmat.h"
PetscErrorCode MatProductCreateWithMat(Mat A, Mat B, Mat C, Mat D)
Collective on Mat
Input Parameters#
A - the first matrix
B - the second matrix
C - the third matrix (optional, use
NULL
if not needed)D - the matrix which will be used to hold the product
Notes#
Use MatProductCreate()
if the matrix you wish computed (the D matrix) does not already exist
See MatProductCreate()
for details on the usage of the MatProduct routines
Any product data currently attached to D
will be cleared
See Also#
Level#
intermediate
Location#
src/mat/interface/matproduct.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages