|
Ublas : |
From: Hirotaka Niitsuma (hirotaka.niitsuma_at_[hidden])
Date: 2005-08-11 03:58:17
I'm trying to use matrix size of c_matrix as template parameters?
Such as:
typedef c_matrix<float, 10,20> my_mat_type;
template<typename MAT_TYPE>
class myMatMethod
{
template<int N = MAT_TYPE::size1() ,int M = MAT_TYPE::size2() >
do()
{
...
}
};
main()
{
myMatMethod<my_mat_type>::do();
}
I can not use MAT_TYPE::size1(), MAT_TYPE::size2() as template parameters.
Are there any method use matrix size as template parameters?