Re: [eigen] HELP : matlab data import |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] HELP : matlab data import
- From: Carlos Becker <carlosbecker@xxxxxxxxx>
- Date: Wed, 27 Jun 2012 12:06:21 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=rYQcEQ8QW00i/JL7ffZBtyrIyyiHdDnegOHTWRf9VZg=; b=mxXSnSLpcEM8T8dPMCZbEQKR4NuB0bGkPKvkQdviJ/LirA7aH/L7f335KNnl8UqpfW DzAql1QtZkdgTxeTLRujwla0I+zFOyg5h6RZFRYCiwA0WqAVvOibbWR7WV6koy9ED2TN 1XH+/sPm6vdkVNVsK1rjRF/ffYopUjurtaQK8GFCmDFkcFqIl5/IMKrwK1Mii4f8GqAV +GjFNd49np3KqJHXYIEZlKpGg/UvxraJVyP5xyCuMJr7It5ddcbrfLomi0XDn3EeGNED kdsk8vBk0dd9bFCAoYZBJ6J9MNUqcD9cnf47dPmjjw+SLRn2nP0zVkzBrhzjjv8XRucy ogRQ==
Hi. It may be easier to write a mex file instead, and call that mex file
from matlab. This is what I usually do with my code.
You can map the data from a matlab matrix (real or complex) with
Eigen::Map<>. As far as I remember, Matlab buffers are already aligned,
so you can use Eigen::Aligned and RowMajor as well.