|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80936 - sandbox/numeric_bindings/boost/numeric/bindings
From: rutger_at_[hidden]
Date: 2012-10-10 10:15:58
Author: rutger
Date: 2012-10-10 10:15:58 EDT (Wed, 10 Oct 2012)
New Revision: 80936
URL: http://svn.boost.org/trac/boost/changeset/80936
Log:
More fixes for transposing banded matrices
Text files modified:
sandbox/numeric_bindings/boost/numeric/bindings/trans.hpp | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
Modified: sandbox/numeric_bindings/boost/numeric/bindings/trans.hpp
==============================================================================
--- sandbox/numeric_bindings/boost/numeric/bindings/trans.hpp (original)
+++ sandbox/numeric_bindings/boost/numeric/bindings/trans.hpp 2012-10-10 10:15:58 EDT (Wed, 10 Oct 2012)
@@ -66,19 +66,19 @@
// Conjugate transform (if passed by template argument)
Conj,
- // If T has a linear array:
- // stride1 <-> stride2
- typename mpl::if_< has_linear_array< T >,
+ // If T has a linear array, or has a band array
+ // flip strides, stride1 <-> stride2
+ typename mpl::if_< mpl::or_< has_linear_array< T >, has_band_array< T > >,
mpl::pair< tag::stride_type<1>, typename result_of::stride2< T >::type >,
mpl::void_
>::type,
- typename mpl::if_< has_linear_array< T >,
+ typename mpl::if_< mpl::or_< has_linear_array< T >, has_band_array< T > >,
mpl::pair< tag::stride_type<2>, typename result_of::stride1< T >::type >,
mpl::void_
>::type,
// If T has a band array
- // bandwidth1 <-> bandwidth2
+ // flip bandwidths, bandwidth1 <-> bandwidth2
typename mpl::if_< has_band_array< T >,
mpl::pair< tag::bandwidth_type<1>, typename result_of::bandwidth2< T >::type >,
mpl::void_
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk