P
Philipp Kraus
Hi,
I have declared this function in the namespace a::b::c
template<typename T> blas::matrix<T> randomUniformMatrix( const
unsigned int p_row, const unsigned int p_col ) {...}
I defined blas and func with
namespace blas = boost::numeric::ublas;
namespace func = a::b::c;
I try to call the function within a method of my class with:
blas::matrix<long double> l_neurons = func::randomUniformMatrix(
m_countprototypes, m_countprototypes );
The compilere runs into an error:
error: no matching function for call to 'randomUniformMatrix(const
unsigned int&, const unsigned int&)'
If I change the function declaration to
blas::matrix<long double> randomUniformMatrix( const unsigned int
p_row, const unsigned int p_col ) {...}
it works perfect, but I need a variable type for my boost matrix
Can anybody help me to declare my template function correctly?
Thanks PHil
I have declared this function in the namespace a::b::c
template<typename T> blas::matrix<T> randomUniformMatrix( const
unsigned int p_row, const unsigned int p_col ) {...}
I defined blas and func with
namespace blas = boost::numeric::ublas;
namespace func = a::b::c;
I try to call the function within a method of my class with:
blas::matrix<long double> l_neurons = func::randomUniformMatrix(
m_countprototypes, m_countprototypes );
The compilere runs into an error:
error: no matching function for call to 'randomUniformMatrix(const
unsigned int&, const unsigned int&)'
If I change the function declaration to
blas::matrix<long double> randomUniformMatrix( const unsigned int
p_row, const unsigned int p_col ) {...}
it works perfect, but I need a variable type for my boost matrix
Can anybody help me to declare my template function correctly?
Thanks PHil