demianmnave / CML

The Configurable Math Library
https://github.com/demianmnave/CML
Boost Software License 1.0
83 stars 15 forks source link

Implement matrix construction from an initializer list of initializer lists, if possible #2

Open demianmnave opened 7 years ago

demianmnave commented 7 years ago

From CML1 created by demianmnave : demianmnave/CML1#4

Constructing a matrix using initializer_list syntax would be natural and pretty convenient, e.g.:

matrix33d M({ { 1., 2., 3. }, { 4., 5., 6. }, { 7., 8., 9. } });

or

matrixd M = { { 1., 2., 3. }, { 4., 5., 6. }, { 7., 8., 9. } };