Boost logo

Ublas :

From: Markus Weimer (markus.weimer_at_[hidden])
Date: 2007-05-17 22:15:46


Hi,

I'm a beginner in using ublas and have a few probably obvious
questions. However, I did not find information on it...

If I were to write a method that should accept any matrix, regardless
of the storage, which type would I use for that matrix?

Example:

void printDimensions(AnyMatrix m){
   cout << m.size1() << "x" m.size2();
}

What would be the corresponding base type for vectors?

Thanks in advance,

Markus