Axpy

Performs \(Y := \alpha X + Y\) (hence the name axpy).

C++ API

void Axpy(S alpha, const Matrix<T> &X, Matrix<T> &Y)
void Axpy(S alpha, const AbstractDistMatrix<T> &X, AbstractDistMatrix<T> &Y)
void Axpy(S alpha, const SparseMatrix<T> &X, SparseMatrix<T> &Y)
void Axpy(S alpha, const DistSparseMatrix<T> &X, DistSparseMatrix<T> &Y)
void Axpy(T alpha, const MultiVec<T> &X, MultiVec<T> &Y)
void Axpy(T alpha, const DistMultiVec<T> &X, DistMultiVec<T> &Y)

C API

ElError ElAxpy_i(ElInt alpha, ElConstMatrix_i X, ElMatrix_i Y)
ElError ElAxpy_s(float alpha, ElConstMatrix_s X, ElMatrix_s Y)
ElError ElAxpy_d(double alpha, ElConstMatrix_d X, ElMatrix_d Y)
ElError ElAxpy_c(complex_float alpha, ElConstMatrix_c X, ElMatrix_c Y)
ElError ElAxpy_z(complex_double alpha, ElConstMatrix_z X, ElMatrix_z Y)
ElError ElAxpyDist_i(ElInt alpha, ElConstMatrix_i X, ElMatrix_i Y)
ElError ElAxpyDist_s(float alpha, ElConstMatrix_s X, ElMatrix_s Y)
ElError ElAxpyDist_d(double alpha, ElConstMatrix_d X, ElMatrix_d Y)
ElError ElAxpyDist_c(complex_float alpha, ElConstMatrix_c X, ElMatrix_c Y)
ElError ElAxpyDist_z(complex_double alpha, ElConstMatrix_z X, ElMatrix_z Y)
ElError ElAxpySparse_i(ElInt alpha, ElConstMatrix_i X, ElMatrix_i Y)
ElError ElAxpySparse_s(float alpha, ElConstMatrix_s X, ElMatrix_s Y)
ElError ElAxpySparse_d(double alpha, ElConstMatrix_d X, ElMatrix_d Y)
ElError ElAxpySparse_c(complex_float alpha, ElConstMatrix_c X, ElMatrix_c Y)
ElError ElAxpySparse_z(complex_double alpha, ElConstMatrix_z X, ElMatrix_z Y)
ElError ElAxpyDistSparse_i(ElInt alpha, ElConstMatrix_i X, ElMatrix_i Y)
ElError ElAxpyDistSparse_s(float alpha, ElConstMatrix_s X, ElMatrix_s Y)
ElError ElAxpyDistSparse_d(double alpha, ElConstMatrix_d X, ElMatrix_d Y)
ElError ElAxpyDistSparse_c(complex_float alpha, ElConstMatrix_c X, ElMatrix_c Y)
ElError ElAxpyDistSparse_z(complex_double alpha, ElConstMatrix_z X, ElMatrix_z Y)
ElError ElAxpyDistMultiVec_i(ElInt alpha, ElConstMatrix_i X, ElMatrix_i Y)
ElError ElAxpyDistMultiVec_s(float alpha, ElConstMatrix_s X, ElMatrix_s Y)
ElError ElAxpyDistMultiVec_d(double alpha, ElConstMatrix_d X, ElMatrix_d Y)
ElError ElAxpyDistMultiVec_c(complex_float alpha, ElConstMatrix_c X, ElMatrix_c Y)
ElError ElAxpyDistMultiVec_z(complex_double alpha, ElConstMatrix_z X, ElMatrix_z Y)

Python API

Axpy(alpha, X, Y)