MatMatMultEqual#
Test ABx = C*x for n random vector x
Synopsis#
#include "petscmat.h"
PetscErrorCode MatMatMultEqual(Mat A, Mat B, Mat C, PetscInt n, PetscBool *flg)
Collective
Input Parameters#
A - the first matrix
B - the second matrix
C - the third matrix
n - number of random vectors to be tested
Output Parameter#
flg -
PETSC_TRUEif the products are equal;PETSC_FALSEotherwise.
See Also#
Mat, MatMultEqual(), MatMultAddEqual(), MatMultTransposeEqual()
Level#
intermediate
Location#
Examples#
src/mat/tests/ex104.c
src/mat/tests/ex109.c
src/mat/tests/ex115.c
src/mat/tests/ex122.c
src/mat/tests/ex195.c
src/mat/tests/ex202.c
src/mat/tests/ex237.c
src/mat/tests/ex241.c
src/mat/tests/ex309.c
src/mat/tests/ex33.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages