Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Marc Wäckerlin
0644f3b2d0
|
il y a 6 ans | |
---|---|---|
debian | il y a 6 ans | |
doc | il y a 6 ans | |
examples | il y a 6 ans | |
src | il y a 7 ans | |
test | il y a 7 ans | |
AUTHORS | il y a 8 ans | |
COPYING | il y a 6 ans | |
ChangeLog | il y a 6 ans | |
INSTALL | il y a 6 ans | |
NEWS | il y a 8 ans | |
README.md | il y a 6 ans | |
autogen.sh | il y a 8 ans | |
ax_check_qt.m4 | il y a 6 ans | |
ax_cxx_compile_stdcxx_11.m4 | il y a 8 ans | |
ax_init_standard_project.m4 | il y a 6 ans | |
bootstrap.sh | il y a 6 ans | |
build-in-docker.conf | il y a 7 ans | |
build-in-docker.sh | il y a 6 ans | |
build-resource-file.sh | il y a 8 ans | |
configure.ac | il y a 6 ans | |
dependency-graph.sh | il y a 6 ans | |
libmatricxx.desktop.in | il y a 8 ans | |
libmatricxx.spec.in | il y a 6 ans | |
mac-create-app-bundle.sh | il y a 6 ans | |
makefile.am | il y a 6 ans | |
makefile_test.inc.am | il y a 8 ans | |
resolve-debbuilddeps.sh | il y a 6 ans | |
resolve-rpmbuilddeps.sh | il y a 6 ans | |
rpmsign.exp | il y a 6 ans | |
sql-to-dot.sed | il y a 8 ans | |
template.sh | il y a 6 ans |
README.md
C++ Matrix Template Library
Library to provide mathematical matrices as standard C++ types that behave like standard types.
Features:
- Allows any size of Matrix
- Either fixed size, size given as template parameter
- Or variable size, size is given in constructor
- Allows any type of values, given as template parameter
- Supports matrix specific functions:
- transposition
- gaussian algorithm
- determinant using gauss algorithm
- inversion using gauss-jordan algorithm
- Supports mathematical operations:
- addition
- subtraction
- multiplication
- division (using the inverse matrix)
- Higly stable and well tested in >200 tests
Example with templated size:
const Matrix<T,2,4> m1(1, 2, 3, 4,
5, 6, 7, 8);
const Matrix<T,2,4> m2(2, 4, 6, 8,
1, 3, 5, 7);
const Matrix<T,2,4> m(m1+m2);
const Matrix<T,2,4> res(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";
}
Example with given 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";
}