2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-22 03:42:19 +00:00

Scalar ET's do not work for complex

Reverted back to previous logic were they were disabled by default

svn path=/trunk/boost/boost/numeric/ublas/; revision=24251
This commit is contained in:
Michael Stevens
2004-08-02 19:38:20 +00:00
parent a060e77f10
commit 23add84c0e

View File

@@ -1775,7 +1775,9 @@ namespace boost { namespace numeric { namespace ublas {
template<class E, class F>
struct vector_scalar_unary_traits {
typedef vector_scalar_unary<E, F> expression_type;
#ifndef BOOST_UBLAS_SIMPLE_ET_DEBUG
#if !defined (BOOST_UBLAS_SIMPLE_ET_DEBUG) && defined (BOOST_UBLAS_USE_SCALAR_ET)
// FIXME don't define USE_SCALAR_ET other then for testing
// They do not work for complex types
typedef expression_type result_type;
#else
typedef typename F::result_type result_type;
@@ -1907,7 +1909,9 @@ namespace boost { namespace numeric { namespace ublas {
template<class E1, class E2, class F>
struct vector_scalar_binary_traits {
typedef vector_scalar_binary<E1, E2, F> expression_type;
#ifndef BOOST_UBLAS_SIMPLE_ET_DEBUG
#if !defined (BOOST_UBLAS_SIMPLE_ET_DEBUG) && defined (BOOST_UBLAS_USE_SCALAR_ET)
// FIXME don't define USE_SCALAR_ET other then for testing
// They do not work for complex types
typedef expression_type result_type;
#else
typedef typename F::result_type result_type;