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

Fixed size matrix

Tags: None
(comma "," separated)
michej
Registered Member
Posts
3
Karma
0

Fixed size matrix

Sat Sep 14, 2013 2:13 pm
Hi,

This is probably a stupid question, but is it possible to create a fixed size matrix based on another matrix?
For example, why doesn't this work?
Code: Select all
Matrix<double,5,5> A;
const int nA = A.cols();
Matrix<double,5,nA> B;
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS

Re: Fixed size matrix  Topic is solved

Sat Sep 14, 2013 6:21 pm
Because nA has to be known at compile time. However, you can use A.ColsAtCompileTime or type_of_A::ColsAtCompileTime.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]