Hi,
I want to use the ublas.boost library to handle matrices which size is parametrized.
what I need is to be able to pass as a parameter the matrix's size to the constructor. Actually I am not using C++ but SystemC (which is a C++ class for hardware description)
Why using uBlas? it is to be able to do some linear algebra operations easily and efficiently (scalar multiplication, adding two matrices, and maybe solving a linear system of equations).
I have used this coding, which I found in the documentation but it gives errors.
matrix<int> m ();
int m_size; //my parameter for size
//and in my constructor:
m.resize (m_size, m_size, false);
it fails with this error :
: error C2228: left of '.resize' must have class/struct/union type
and with this one:
: error C2660: 'mcpx_boost::m' : function does not take 2 arguments
I am using Visual Studio 7.1
Does anyone know where is the problem?
thanks for answering