Re: [eigen] eigen and boost::multi_array |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] eigen and boost::multi_array
- From: Rhys Ulerich <rhys.ulerich@xxxxxxxxx>
- Date: Wed, 15 Sep 2010 21:13:30 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=JJ6V1MDiLglHckoba82wJSnuB1AEsFofgTvAxE9pCs0=; b=I3E4vnMdDqCrfTwu4GmSr3KSH32IpfNcohZ5NUWuKkHUHAGrnUAO4e13zexpRWbrHG bW3pxejD/HZfB9ewCsPFZnhPcN+IYvxVA0OGl/ag96UBww6MJpYM+6TWaOoXBwfYsSqO bxwCUdI8VWh9ozV3NBJ6gbKe0MuOWjLH/f6lo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=cB/2jSFY/OcX+64p3W11eq31flXOvSiYk98mb9hZG9vGj8Ds6JqN1iJTTDr7DGwq8+ ZHJVnjn6+LAmVQN5qKioq0qyeFNqg+uzW7VW+KhF4Zadl+40v8p5qgVp+9dvcA7zRpiE /65bGjQk87uRCvwLrnMyYMx8v2gVoew1Hu3O0=
> I was trying to use boost::multi_array in a project where I am already using
> eigen2...
>
> typedef multi_array<double, 2> array_type;
> array_type scores(extents[1][1]);
> compiler error: ‘extents’ is not a type
> I guess it happens because of eigen ..
My guess is that the global MultiArray extent_gen instance is being
shadowed or clobbered somehow:
http://www.boost.org/doc/libs/1_44_0/libs/multi_array/doc/reference.html#id906792
Workaround is probably to instantiate a local extent_gen instance as
suggested in the link above.
- Rhys