2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-21 15:32:12 +00:00

- changes static initialization of zero_(0) to zero_ = T()

This should be replaces by value_traits<T>::zero and the
  definition of one_ = 1 should be replaced by value_traits<T>::one


[SVN r37393]
This commit is contained in:
Gunter Winkler
2007-04-07 21:12:26 +00:00
parent 5f08a94e2c
commit 05ccd103e1
2 changed files with 6 additions and 6 deletions

View File

@@ -2328,7 +2328,7 @@ namespace boost { namespace numeric { namespace ublas {
};
template<class T, class ALLOC>
const typename zero_matrix<T, ALLOC>::value_type zero_matrix<T, ALLOC>::zero_ (0);
const typename zero_matrix<T, ALLOC>::value_type zero_matrix<T, ALLOC>::zero_ = T(/*zero*/);
// Identity matrix class
@@ -2710,9 +2710,9 @@ namespace boost { namespace numeric { namespace ublas {
};
template<class T, class ALLOC>
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::zero_ (0);
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::zero_ = T(/*zero*/);
template<class T, class ALLOC>
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::one_ (1);
const typename identity_matrix<T, ALLOC>::value_type identity_matrix<T, ALLOC>::one_ (1); // ISSUE: need 'one'-traits here
// Scalar matrix class

View File

@@ -759,7 +759,7 @@ namespace boost { namespace numeric { namespace ublas {
};
template<class T, class ALLOC>
typename zero_vector<T, ALLOC>::const_value_type zero_vector<T, ALLOC>::zero_ (0);
typename zero_vector<T, ALLOC>::const_value_type zero_vector<T, ALLOC>::zero_ = T(/*zero*/);
// Unit vector class
@@ -971,9 +971,9 @@ namespace boost { namespace numeric { namespace ublas {
};
template<class T, class ALLOC>
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::zero_ (0);
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::zero_ = T(/*zero*/);
template<class T, class ALLOC>
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::one_ (1);
typename unit_vector<T, ALLOC>::const_value_type unit_vector<T, ALLOC>::one_ (1); // ISSUE: need 'one'-traits here
// Scalar vector class