Re: [eigen] following up on dynamic allocation

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


For the record, this question has been answered on SO: https://stackoverflow.com/questions/50431053/eigen3-defining-a-variable-size-matrix

gael

On Mon, May 21, 2018 at 9:24 AM, Alberto Luaces <alberto.luaces@xxxxxxxxx> wrote:
Hi, the problem with your first function is that any parameter passed to
a template has to be a constant or another template parameter, so in
your case:

1. Your function has to be a template itself, and

2. either "n" and "p" have to be parameters of the template, or they
have to be deduced from the matrix type (you can only do that with fixed
type matrices).





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/