add [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:algorithms Component type:function
Prototype
template <class LinalgA, class LinalgB>
void add(const LinalgA& A, LinalgB B) ;
Description
The function adds the element of A to B, or the elements of x to y.
Definition
mtl.h
Preconditions
Complexity
O(m*n) for a dense A, O(nnz) for a sparse A. O(n) for a vector.
Example
Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.