mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
initialize Eigen::Complex arrays
This commit is contained in:
parent
92749eed11
commit
103f741619
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user