From this sample code from Boost official site:
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
int main () {
using namespace boost::numeric::ublas;
matrix<double> m (3, 3);
for (unsigned i = 0; i < m.size1 (); ++ i)
for (unsigned j = 0; j < m.size2 (); ++ j)
m (i, j) = 3 * i + j;
std::cout << m << std::endl;
}
I am confused with m (i, j) = 3 * i + j;
because m is a object and the only case that combines class and argument together is constructor function, but there, it is obviously not.
I am a beginner of C++. However, being different from Ruby there is few trick in C++.
In order to have a deep discovery toward C++, is there any who can give me a explanation in principle about that?