aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-11 16:12:34 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-11 16:12:34 -0400
commitce033ebdfe817a21e648cad3f2bb6db76cb8fa6a (patch)
treebc463ec86b00bc1eb4876f3ac6a53b4b668e4dca
parentafbd73b5cdc1ce9b8ae54e9dd08332c870cf54d2 (diff)
add EIGEN_DEBUG_VAR
-rw-r--r--Eigen/src/Core/Assign.h30
-rw-r--r--Eigen/src/Core/util/Macros.h2
2 files changed, 17 insertions, 15 deletions
diff --git a/Eigen/src/Core/Assign.h b/Eigen/src/Core/Assign.h
index 1d023286f..4bd1046a7 100644
--- a/Eigen/src/Core/Assign.h
+++ b/Eigen/src/Core/Assign.h
@@ -96,21 +96,21 @@ public:
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);
+ 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)
}
};
diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h
index 956b609a0..f3f2b9066 100644
--- a/Eigen/src/Core/util/Macros.h
+++ b/Eigen/src/Core/util/Macros.h
@@ -111,6 +111,8 @@
#define EIGEN_FAST_MATH 1
#endif
+#define EIGEN_DEBUG_VAR(x) std::cerr << #x << " = " << x << std::endl;
+
#define USING_PART_OF_NAMESPACE_EIGEN \
EIGEN_USING_MATRIX_TYPEDEFS \
using Eigen::Matrix; \