| ||||||
| ||||||
| Prototype | ||||||
|
template <class LinalgObj> linalg_traits<LinalgObj>::magnitude_type one_norm(const LinalgObj& A) ; | ||||||
| Description | ||||||
| For vectors, the sum of the absolute values of the elements. For matrices, the maximum of the column sums. Note: not implemented yet for unit triangle matrices. is the type of the absolute value of its value_type. | ||||||
| Definition | ||||||
| mtl.h | ||||||
| Requirements on types | ||||||
| Preconditions | ||||||
|
| ||||||
| Complexity | ||||||
| O(n) | ||||||
| Example | ||||||
In vec_one_norm.cc:
typedef complex<double> cplx_d; dense1D< cplx_d > x(10, cplx_d(2.0, 1.0)); double s = one_norm(x); cout << s << endl; | ||||||
| Notes | ||||||
| See also | ||||||

Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.