documentation anhanced

This commit is contained in:
Marc Wäckerlin
2016-08-25 18:02:10 +00:00
parent 40dbf10ae7
commit 99afc89f53
10 changed files with 469 additions and 154 deletions

22
README
View File

@@ -19,7 +19,7 @@ Features:
* division (using the inverse matrix)
* Higly stable and well tested
Examples:
Example with templated size:
const Matrix<T,2,4> m1(1, 2, 3, 4,
5, 6, 7, 8);
@@ -31,5 +31,23 @@ Examples:
if (m==res) {
std::cout<<"Yes, it is that easy!\n"<<m<<"\n";
} else {
std::cerr<<"Ooops!\n"
std::cerr<<"Ooops!\n";
}
Example with templated size:
const Matrix<T> m1(2, 4,
1, 2, 3, 4,
5, 6, 7, 8);
const Matrix<T> m2(2, 4,
2, 4, 6, 8,
1, 3, 5, 7);
const Matrix<T> m(m1+m2);
const Matrix<T> res(2, 4,
3, 6, 9, 12,
6, 9, 12, 15);
if (m==res) {
std::cout<<"Yes, it is that easy!\n"<<m<<"\n";
} else {
std::cerr<<"Ooops!\n";
}