MatAXPY

Computes Y = a*X + Y.

Synopsis

#include "mat.h"  
int MatAXPY(Scalar *a,Mat X,Mat Y)
Collective on Mat

Input Parameters

X, Y - the matrices
a - the scalar multiplier

Contributed by: Matthew Knepley

Notes

Since the current implementation of MatAXPY() uses MatGetRow() to access matrix data, efficiency is somewhat limited.

Keywords

matrix, add

See Also

MatAYPX()

Level:intermediate
Location:src/mat/utils/axpy.c
Matrix Index
Table of Contents