mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-26 17:12:10 +00:00
test/test71.cpp reverted some changes regarding boost::interval
test/test73.cpp reverted addition of special initilizer test/common/init.hpp changed common initilizer to use float instead of (unsigned) int to initialize test vectors/matrices (this solved some boost::interval issues, but revealed other ones) [SVN r52142]
This commit is contained in:
@@ -43,7 +43,7 @@ template<class V>
|
||||
void initialize_vector (V &v) {
|
||||
typename V::size_type size = v.size ();
|
||||
for (typename V::size_type i = 0; i < size; ++ i)
|
||||
v [i] = typename V::value_type (i + 1);
|
||||
v [i] = typename V::value_type ( i + 1.f );
|
||||
}
|
||||
|
||||
template<class M>
|
||||
@@ -52,11 +52,11 @@ void initialize_matrix_impl (M &m, ublas::packed_proxy_tag) {
|
||||
#ifndef BOOST_UBLAS_NO_NESTED_CLASS_RELATION
|
||||
for (typename M::iterator1 i = m.begin1(); i != m.end1(); ++ i)
|
||||
for (typename M::iterator2 j = i.begin(); j != i.end(); ++ j)
|
||||
*j = typename M::value_type (i.index1() * size1 + j.index2() + 1);
|
||||
*j = typename M::value_type ( i.index1() * size1 + j.index2() + 1.f );
|
||||
#else
|
||||
for (typename M::iterator1 i = m.begin1(); i != m.end1(); ++ i)
|
||||
for (typename M::iterator2 j = ublas::begin (i, ublas::iterator1_tag ()); j != ublas::end (i, ublas::iterator1_tag ()); ++ j)
|
||||
*j = typename M::value_type (i.index1() * size1 + j.index2() + 1);
|
||||
*j = typename M::value_type ( i.index1() * size1 + j.index2() + 1.f );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user