Friends

Detailed Description

This matrix is directly based on a predefined C-style arry of data, thus providing the fastest implementation possible. The constraint is that dimensions of the matrix must be specified at the instanciation or the type specification.

For instance,

typedef c_matrix<double,4,4> my_4by4_matrix

defines a 4 by 4 double-precision matrix. You can also instantiate it directly with

c_matrix<int,8,5> my_fast_matrix

. This will make a 8 by 5 integer matrix. The price to pay for this speed is that you cannot resize it to a size larger than the one defined in the template parameters. In the previous example, a size of 4 by 5 or 3 by 2 is acceptable, but a new size of 9 by 5 or even 10 by 10 will raise a bad_size() exception.

Template Parameters:

T

the type of object stored in the matrix (like double, float, complex, etc...)