Boost logo

Ublas :

Subject: [ublas] Matrix initialization in uBLAS
From: Oscar Vargas (oscarvarto_at_[hidden])
Date: 2011-03-29 18:46:26


It's the first time I use uBLAS, and I want to know the right way to
initialize a matrix.

Example:
        | 3 2|
M = | 1 5|
        | 3 4|

How can I create such a matrix?

For example, in Matlab, you can type:
>> M = [3, 2; 1, 5; 3, 4]

I haven't found documentation for something as simple as that!!! I need
help!