aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Mark Borgerding <mark@borgerding.net>2009-11-09 14:08:44 -0500
committerGravatar Mark Borgerding <mark@borgerding.net>2009-11-09 14:08:44 -0500
commit103f74161988299324d301bd9e71f04a1d5142a1 (patch)
treec43f87710d1a174d1c5a4f0fb6b3fdcd62fd0344 /unsupported
parent92749eed11d000300cfa54654f1043cd52399ed8 (diff)
initialize Eigen::Complex arrays
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/test/Complex.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/unsupported/test/Complex.cpp b/unsupported/test/Complex.cpp
index bedeb9f27..d5af0a6c3 100644
--- a/unsupported/test/Complex.cpp
+++ b/unsupported/test/Complex.cpp
@@ -39,10 +39,11 @@ using namespace Eigen;
template <typename T>
void take_std( std::complex<T> * dst, int n )
{
+ for (int i=0;i<n;++i)
+ dst[i] = std::complex<T>(i,i);
cout << dst[n-1] << endl;
}
-
template <typename T>
void syntax()
{