[eigen] cast ArrayXd* to ArrayXXd* |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] cast ArrayXd* to ArrayXXd*
- From: Holger Herrlich <holgerherrlich05@xxxxxxxx>
- Date: Wed, 26 Sep 2012 14:50:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1348663894; bh=IysGmM47eVd0xunh87e2U2Wavpg+VcJJDfwqZk+nf5E=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=F2nz4k295Jmp4mOwflYn6Gce0JWGnBD40sjf6gJ/kxxtpcVn4GgPOefJXF+S8HKpW n7dm/qrpEm+luBx2yOJuJ5EKlGGDTVXzMDTB3vK8evtOhwGlR3D7jWCiq+A/SZfEB9 t9mO9e7ylZM+c60i0Vk9MhEtydqqXMwQ1F9QJ8LY=
Hi, did I really have to:
Eigen::ArrayXXd* smInt;
Eigen::ArrayXd* tmp = fn_create();
smInt = new Eigen::ArrayXXd( *(tmp) );
delete(tmp.arrayXd);
to cast from Array<double,len> to Array<double,len,1> when using pointers?
Regards Holger