#include "petscmat.h" PetscErrorCode MatAXPY(Mat Y,PetscScalar a,Mat X,MatStructure str)Logically Collective on Mat
a | - the scalar multiplier | |
X | - the first matrix | |
Y | - the second matrix | |
str | - either SAME_NONZERO_PATTERN, DIFFERENT_NONZERO_PATTERN, UNKNOWN_NONZERO_PATTERN, or SUBSET_NONZERO_PATTERN (nonzeros of X is a subset of Y's) |
Notes: No operation is performed when a is zero.