mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-18 14:32:14 +00:00
Extended testing to complex, range and slice where possible
MSVC and USE_ET cleanup [SVN r24264]
This commit is contained in:
@@ -14,14 +14,6 @@
|
||||
// GeNeSys mbH & Co. KG in producing this work.
|
||||
//
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
|
||||
#pragma warning (disable: 4355)
|
||||
#pragma warning (disable: 4503)
|
||||
#pragma warning (disable: 4786)
|
||||
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/numeric/ublas/config.hpp>
|
||||
@@ -87,11 +79,13 @@ struct test_my_matrix_vector {
|
||||
ublas::matrix_column<M> mc1 (m1, 0), mc2 (m1, 0);
|
||||
(*this) (mc1, mc2, m1);
|
||||
|
||||
#ifdef USE_RANGE_AND_SLICE
|
||||
#ifdef USE_RANGE
|
||||
ublas::matrix_vector_range<M> mvr1 (m1, ublas::range (0, N), ublas::range (0, N)),
|
||||
mvr2 (m1, ublas::range (0, N), ublas::range (0, N));
|
||||
(*this) (mvr1, mvr2, m1);
|
||||
#endif
|
||||
|
||||
#ifdef USE_SLICE
|
||||
ublas::matrix_vector_slice<M> mvs1 (m1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)),
|
||||
mvs2 (m1, ublas::slice (0, 1, N), ublas::slice (0, 1, N));
|
||||
(*this) (mvs1, mvs2, m1);
|
||||
@@ -118,11 +112,13 @@ struct test_my_matrix_vector {
|
||||
ublas::matrix_column<ublas::symmetric_adaptor<M> > mc1 (tam1, 0), mc2 (tam1, 0);
|
||||
(*this) (mc1, mc2, tam1);
|
||||
|
||||
#ifdef USE_RANGE_AND_SLICE
|
||||
#ifdef USE_RANGE
|
||||
ublas::matrix_vector_range<ublas::symmetric_adaptor<M> > mvr1 (tam1, ublas::range (0, N), ublas::range (0, N)),
|
||||
mvr2 (tam1, ublas::range (0, N), ublas::range (0, N));
|
||||
(*this) (mvr1, mvr2, tam1);
|
||||
#endif
|
||||
|
||||
#ifdef USE_SLICE
|
||||
ublas::matrix_vector_slice<ublas::symmetric_adaptor<M> > mvs1 (tam1, ublas::slice (0, 1, N), ublas::slice (0, 1, N)),
|
||||
mvs2 (tam1, ublas::slice (0, 1, N), ublas::slice (0, 1, N));
|
||||
(*this) (mvs1, mvs2, tam1);
|
||||
|
||||
Reference in New Issue
Block a user