aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-09 21:35:13 +0200
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-09 21:35:13 +0200
commit1f1705868b85ff9153beabb444c1061d3ad0b2d0 (patch)
tree8a77c62d44cc6555f38ccd9272810895e8cd2eb0 /Eigen
parent527557672ab11a99ceecc2a3bfd9fea9dbe216dd (diff)
now you can #define EIGEN_DEBUG_ASSIGN, and all the values in ei_assign_traits are printed
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/Assign.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/Eigen/src/Core/Assign.h b/Eigen/src/Core/Assign.h
index f3521d3dd..c47280dff 100644
--- a/Eigen/src/Core/Assign.h
+++ b/Eigen/src/Core/Assign.h
@@ -90,6 +90,25 @@ public:
? ( int(MayUnrollCompletely) && int(DstIsAligned) ? int(CompleteUnrolling) : int(NoUnrolling) )
: int(NoUnrolling)
};
+
+ static void debug()
+ {
+ EIGEN_DEBUG_VAR(DstIsAligned)
+ EIGEN_DEBUG_VAR(SrcIsAligned)
+ EIGEN_DEBUG_VAR(SrcAlignment)
+ EIGEN_DEBUG_VAR(InnerSize)
+ EIGEN_DEBUG_VAR(InnerMaxSize)
+ EIGEN_DEBUG_VAR(PacketSize)
+ EIGEN_DEBUG_VAR(MightVectorize)
+ EIGEN_DEBUG_VAR(MayInnerVectorize)
+ EIGEN_DEBUG_VAR(MayLinearVectorize)
+ EIGEN_DEBUG_VAR(MaySliceVectorize)
+ EIGEN_DEBUG_VAR(Vectorization)
+ EIGEN_DEBUG_VAR(UnrollingLimit)
+ EIGEN_DEBUG_VAR(MayUnrollCompletely)
+ EIGEN_DEBUG_VAR(MayUnrollInner)
+ EIGEN_DEBUG_VAR(Unrolling)
+ }
};
/***************************************************************************
@@ -405,6 +424,9 @@ EIGEN_STRONG_INLINE Derived& MatrixBase<Derived>
YOU_MIXED_DIFFERENT_NUMERIC_TYPES__YOU_NEED_TO_USE_THE_CAST_METHOD_OF_MATRIXBASE_TO_CAST_NUMERIC_TYPES_EXPLICITLY)
ei_assert(rows() == other.rows() && cols() == other.cols());
ei_assign_impl<Derived, OtherDerived>::run(derived(),other.derived());
+#ifdef EIGEN_DEBUG_ASSIGN
+ ei_assign_traits<Derived, OtherDerived>::debug();
+#endif
return derived();
}