This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Variable argument for Innerstride

Tags: None
(comma "," separated)
trrrigo
Registered Member
Posts
13
Karma
0

Variable argument for Innerstride

Wed May 23, 2012 9:42 am
Hi,
I need to put an variable in innestride like this:
Map<VectorXf, 0, InnerStride<a>> sMap (s);
But it says that there is an error-constant.
I tried to declare a as a const int but it doesn't work.
Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Variable argument for Innerstride

Wed May 23, 2012 11:43 am
For a runtime stride use:

Map<VectorXf, 0, InnerStride<>> sMap (ptr, size, InnerStride<>(a));


Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell