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

use (0) to represent zero rather then default constructor.

(1) is require anyway so this does not add further requirements

svn path=/trunk/boost/boost/numeric/ublas/; revision=24763
This commit is contained in:
Michael Stevens
2004-08-26 15:51:57 +00:00
parent 1eb31cc7d4
commit b91b49fa32
9 changed files with 19 additions and 19 deletions

View File

@@ -1005,7 +1005,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class F, class A>
typename banded_matrix<T, F, A>::value_type banded_matrix<T, F, A>::zero_ =
BOOST_UBLAS_TYPENAME banded_matrix<T, F, A>::value_type ();
BOOST_UBLAS_TYPENAME banded_matrix<T, F, A>::value_type (0);
// Diagonal matrix class
template<class T, class F, class A>
@@ -2032,7 +2032,7 @@ namespace boost { namespace numeric { namespace ublas {
typename banded_adaptor<M>::matrix_type banded_adaptor<M>::nil_;
template<class M>
typename banded_adaptor<M>::value_type banded_adaptor<M>::zero_ =
BOOST_UBLAS_TYPENAME banded_adaptor<M>::value_type ();
BOOST_UBLAS_TYPENAME banded_adaptor<M>::value_type (0);
// Diagonal matrix adaptor class
template<class M>

View File

@@ -229,10 +229,10 @@ namespace std {
// Enable compile time typedefs for proxies
#define BOOST_UBLAS_CT_REFERENCE_BASE_TYPEDEFS
// #define BOOST_UBLAS_REFERENCE_CONST_MEMBER
#define BOOST_UBLAS_CT_PROXY_BASE_TYPEDEFS
// #define BOOST_UBLAS_PROXY_CONST_MEMBER
#define BOOST_UBLAS_CT_PROXY_CLOSURE_TYPEDEFS
// #define BOOST_UBLAS_REFERENCE_CONST_MEMBER
// #define BOOST_UBLAS_PROXY_CONST_MEMBER

View File

@@ -2389,7 +2389,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T>
typename identity_matrix<T>::value_type identity_matrix<T>::zero_ =
BOOST_UBLAS_TYPENAME identity_matrix<T>::value_type ();
BOOST_UBLAS_TYPENAME identity_matrix<T>::value_type (0);
template<class T>
typename identity_matrix<T>::value_type identity_matrix<T>::one_ =
BOOST_UBLAS_TYPENAME identity_matrix<T>::value_type (1);
@@ -2840,7 +2840,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T>
typename zero_matrix<T>::value_type zero_matrix<T>::zero_ =
BOOST_UBLAS_TYPENAME zero_matrix<T>::value_type ();
BOOST_UBLAS_TYPENAME zero_matrix<T>::value_type (0);
// Scalar matrix class
template<class T>

View File

@@ -1308,7 +1308,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class F, class A>
typename sparse_matrix<T, F, A>::value_type sparse_matrix<T, F, A>::zero_ =
BOOST_UBLAS_TYPENAME sparse_matrix<T, F, A>::value_type ();
BOOST_UBLAS_TYPENAME sparse_matrix<T, F, A>::value_type (0);
// Array based sparse matrix class
template<class T, class F, class A>
@@ -2491,7 +2491,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class F, class A>
typename sparse_vector_of_sparse_vector<T, F, A>::value_type sparse_vector_of_sparse_vector<T, F, A>::zero_ =
BOOST_UBLAS_TYPENAME sparse_vector_of_sparse_vector<T, F, A>::value_type ();
BOOST_UBLAS_TYPENAME sparse_vector_of_sparse_vector<T, F, A>::value_type (0);
// Array based sparse matrix class
// Thanks to Kresimir Fresl for extending this to cover different index bases.
@@ -3822,7 +3822,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class F, std::size_t IB, class IA, class TA>
typename compressed_matrix<T, F, IB, IA, TA>::value_type compressed_matrix<T, F, IB, IA, TA>::zero_ =
BOOST_UBLAS_TYPENAME compressed_matrix<T, F, IB, IA, TA>::value_type ();
BOOST_UBLAS_TYPENAME compressed_matrix<T, F, IB, IA, TA>::value_type (0);
// Array based sparse matrix class
// Thanks to Kresimir Fresl for extending this to cover different index bases.
@@ -5128,7 +5128,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class F, std::size_t IB, class IA, class TA>
typename coordinate_matrix<T, F, IB, IA, TA>::value_type coordinate_matrix<T, F, IB, IA, TA>::zero_ =
BOOST_UBLAS_TYPENAME coordinate_matrix<T, F, IB, IA, TA>::value_type ();
BOOST_UBLAS_TYPENAME coordinate_matrix<T, F, IB, IA, TA>::value_type (0);
}}}

View File

@@ -1465,7 +1465,7 @@ namespace boost { namespace numeric { namespace ublas {
#if BOOST_UBLAS_TYPE_CHECK
I cit (it);
while (cit != it_end) {
BOOST_UBLAS_CHECK (*cit == BOOST_UBLAS_TYPENAME I::value_type (), internal_logic ());
BOOST_UBLAS_CHECK (*cit == BOOST_UBLAS_TYPENAME I::value_type (0), internal_logic ());
++ cit;
}
#endif

View File

@@ -935,7 +935,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class F1, class F2, class A>
typename triangular_matrix<T, F1, F2, A>::value_type triangular_matrix<T, F1, F2, A>::zero_ =
BOOST_UBLAS_TYPENAME triangular_matrix<T, F1, F2, A>::value_type ();
BOOST_UBLAS_TYPENAME triangular_matrix<T, F1, F2, A>::value_type (0);
template<class T, class F1, class F2, class A>
typename triangular_matrix<T, F1, F2, A>::value_type triangular_matrix<T, F1, F2, A>::one_ =
BOOST_UBLAS_TYPENAME triangular_matrix<T, F1, F2, A>::value_type (1);
@@ -1847,7 +1847,7 @@ namespace boost { namespace numeric { namespace ublas {
typename triangular_adaptor<M, F>::matrix_type triangular_adaptor<M, F>::nil_;
template<class M, class F>
typename triangular_adaptor<M, F>::value_type triangular_adaptor<M, F>::zero_ =
BOOST_UBLAS_TYPENAME triangular_adaptor<M, F>::value_type ();
BOOST_UBLAS_TYPENAME triangular_adaptor<M, F>::value_type (0);
template<class M, class F>
typename triangular_adaptor<M, F>::value_type triangular_adaptor<M, F>::one_ =
BOOST_UBLAS_TYPENAME triangular_adaptor<M, F>::value_type (1);

View File

@@ -834,7 +834,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T>
typename unit_vector<T>::value_type unit_vector<T>::zero_ =
BOOST_UBLAS_TYPENAME unit_vector<T>::value_type ();
BOOST_UBLAS_TYPENAME unit_vector<T>::value_type (0);
template<class T>
typename unit_vector<T>::value_type unit_vector<T>::one_ =
BOOST_UBLAS_TYPENAME unit_vector<T>::value_type (1);
@@ -1041,7 +1041,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T>
typename zero_vector<T>::value_type zero_vector<T>::zero_ =
BOOST_UBLAS_TYPENAME zero_vector<T>::value_type ();
BOOST_UBLAS_TYPENAME zero_vector<T>::value_type (0);
// Scalar vector class
template<class T>

View File

@@ -1216,7 +1216,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class F, class A>
typename generalized_vector_of_vector<T, F, A>::value_type generalized_vector_of_vector<T, F, A>::zero_ =
BOOST_UBLAS_TYPENAME generalized_vector_of_vector<T, F, A>::value_type ();
BOOST_UBLAS_TYPENAME generalized_vector_of_vector<T, F, A>::value_type (0);
}}}

View File

@@ -716,7 +716,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, class A>
typename sparse_vector<T, A>::value_type sparse_vector<T, A>::zero_ =
BOOST_UBLAS_TYPENAME sparse_vector<T, A>::value_type ();
BOOST_UBLAS_TYPENAME sparse_vector<T, A>::value_type (0);
// Array based sparse vector class
// Thanks to Kresimir Fresl for extending this to cover different index bases.
@@ -1274,7 +1274,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, std::size_t IB, class IA, class TA>
typename compressed_vector<T, IB, IA, TA>::value_type compressed_vector<T, IB, IA, TA>::zero_ =
BOOST_UBLAS_TYPENAME compressed_vector<T, IB, IA, TA>::value_type ();
BOOST_UBLAS_TYPENAME compressed_vector<T, IB, IA, TA>::value_type (0);
// Array based sparse vector class
// Thanks to Kresimir Fresl for extending this to cover different index bases.
@@ -1863,7 +1863,7 @@ namespace boost { namespace numeric { namespace ublas {
template<class T, std::size_t IB, class IA, class TA>
typename coordinate_vector<T, IB, IA, TA>::value_type coordinate_vector<T, IB, IA, TA>::zero_ =
BOOST_UBLAS_TYPENAME coordinate_vector<T, IB, IA, TA>::value_type ();
BOOST_UBLAS_TYPENAME coordinate_vector<T, IB, IA, TA>::value_type (0);
}}}