Interface and implementation of BLAS level 1 This includes functions which perform vector-vector operations.
More...
|
template<class V > |
type_traits< typename
V::value_type >::real_type | asum (const V &v) |
| 1-Norm: (also called or Manhattan norm) More...
|
|
template<class V > |
type_traits< typename
V::value_type >::real_type | nrm2 (const V &v) |
| 2-Norm: (also called or Euclidean norm) More...
|
|
template<class V > |
type_traits< typename
V::value_type >::real_type | amax (const V &v) |
| Infinite-norm: (also called norm) More...
|
|
template<class V1 , class V2 > |
promote_traits< typename
V1::value_type, typename
V2::value_type >::promote_type | dot (const V1 &v1, const V2 &v2) |
| Inner product of vectors and . More...
|
|
template<class V1 , class V2 > |
V1 & | copy (V1 &v1, const V2 &v2) |
| Copy vector to . More...
|
|
template<class V1 , class V2 > |
void | swap (V1 &v1, V2 &v2) |
| Swap vectors and . More...
|
|
template<class V , class T > |
V & | scal (V &v, const T &t) |
| scale vector with scalar More...
|
|
template<class V1 , class T , class V2 > |
V1 & | axpy (V1 &v1, const T &t, const V2 &v2) |
| Compute . More...
|
|
template<class T1 , class V1 , class T2 , class V2 > |
void | rot (const T1 &t1, V1 &v1, const T2 &t2, V2 &v2) |
| Performs rotation of points in the plane and assign the result to the first vector. More...
|
|
Interface and implementation of BLAS level 1 This includes functions which perform vector-vector operations.
More information about BLAS can be found at http://en.wikipedia.org/wiki/BLAS
template<class V >
type_traits<typename V::value_type>::real_type boost::numeric::ublas::blas_1::amax |
( |
const V & |
v | ) |
|
Infinite-norm: (also called norm)
- Parameters
-
v | a vector or vector expression |
- Returns
- the Infinite-Norm with type of the vector's type
- Template Parameters
-
V | type of the vector (not needed by default) |
References boost::numeric::ublas::norm_inf().
template<class V >
type_traits<typename V::value_type>::real_type boost::numeric::ublas::blas_1::asum |
( |
const V & |
v | ) |
|
1-Norm: (also called or Manhattan norm)
- Parameters
-
v | a vector or vector expression |
- Returns
- the 1-Norm with type of the vector's type
- Template Parameters
-
V | type of the vector (not needed by default) |
References boost::numeric::ublas::norm_1().
template<class V1 , class T , class V2 >
V1& boost::numeric::ublas::blas_1::axpy |
( |
V1 & |
v1, |
|
|
const T & |
t, |
|
|
const V2 & |
v2 |
|
) |
| |
Compute .
- Parameters
-
v1 | target and first vector |
t | the scalar |
v2 | second vector |
- Returns
- a reference to the first and target vector
- Template Parameters
-
V1 | type of the first vector (not needed by default) |
T | type of the scalar (not needed by default) |
V2 | type of the second vector (not needed by default) |
template<class V1 , class V2 >
V1& boost::numeric::ublas::blas_1::copy |
( |
V1 & |
v1, |
|
|
const V2 & |
v2 |
|
) |
| |
Copy vector to .
- Parameters
-
v1 | target vector |
v2 | source vector |
- Returns
- a reference to the target vector
- Template Parameters
-
V1 | type of first vector (not needed by default) |
V2 | type of second vector (not needed by default) |
template<class V1 , class V2 >
promote_traits<typename V1::value_type, typename V2::value_type>::promote_type boost::numeric::ublas::blas_1::dot |
( |
const V1 & |
v1, |
|
|
const V2 & |
v2 |
|
) |
| |
Inner product of vectors and .
- Parameters
-
v1 | first vector of the inner product |
v2 | second vector of the inner product |
- Returns
- the inner product of the type of the most generic type of the 2 vectors
- Template Parameters
-
V1 | type of first vector (not needed by default) |
V2 | type of second vector (not needed by default) |
References boost::numeric::ublas::inner_prod().
Referenced by boost::numeric::ublas::vector_inner_prod< V1, V2, TV >::apply(), boost::numeric::ublas::matrix_vector_prod1< M1, M2, TV >::apply(), boost::numeric::ublas::matrix_vector_prod2< M1, M2, TV >::apply(), and boost::numeric::ublas::matrix_matrix_prod< M1, M2, TV >::apply().
template<class V >
type_traits<typename V::value_type>::real_type boost::numeric::ublas::blas_1::nrm2 |
( |
const V & |
v | ) |
|
2-Norm: (also called or Euclidean norm)
- Parameters
-
v | a vector or vector expression |
- Returns
- the 2-Norm with type of the vector's type
- Template Parameters
-
V | type of the vector (not needed by default) |
References boost::numeric::ublas::norm_2().
template<class T1 , class V1 , class T2 , class V2 >
void boost::numeric::ublas::blas_1::rot |
( |
const T1 & |
t1, |
|
|
V1 & |
v1, |
|
|
const T2 & |
t2, |
|
|
V2 & |
v2 |
|
) |
| |
template<class V , class T >
V& boost::numeric::ublas::blas_1::scal |
( |
V & |
v, |
|
|
const T & |
t |
|
) |
| |
scale vector with scalar
- Parameters
-
v | vector to be scaled |
t | the scalar |
- Returns
t*v
- Template Parameters
-
V | type of the vector (not needed by default) |
T | type of the scalar (not needed by default) |
References boost::flyweights::t.
template<class V1 , class V2 >
void boost::numeric::ublas::blas_1::swap |
( |
V1 & |
v1, |
|
|
V2 & |
v2 |
|
) |
| |
Swap vectors and .
- Parameters
-
v1 | first vector |
v2 | second vector \tparam V1 type of first vector (not needed by default)
|
- Template Parameters
-
V2 | type of second vector (not needed by default) |