|
Abstract non Polymorphyc Matrix:
|
Go to the source code of this file.
Classes | |
| class | test_Gauss |
Clase simple para probar Gauss(). More... | |
Defines | |
| #define | USE_Matrix_List |
Typedefs | |
| typedef Mx::Matrix_List < rational< long > > | Rat_Matrix |
Functions | |
| template<class MAT > | |
| void | print (std::ostream &COUT, MAT &V) |
cout << M; | |
| Rat_Matrix | makeMatrix_long (const char **V, int rows, int cols) |
Retorna una matriz de enteros "M" construida en base a la hilera "V". | |
| int | main () |
Programa principal para probar el algoritmo Gauss(). | |
| #define USE_Matrix_List |
Definition at line 11 of file test_Gauss.cpp.
| typedef Mx::Matrix_List< rational<long> > Rat_Matrix |
Definition at line 19 of file test_Gauss.cpp.
| void print | ( | std::ostream & | COUT, |
| MAT & | V | ||
| ) |
cout << M;
Definition at line 71 of file test_Gauss.cpp.
| Rat_Matrix makeMatrix_long | ( | const char ** | V, |
| int | rows, | ||
| int | cols | ||
| ) |
Retorna una matriz de enteros "M" construida en base a la hilera "V".
{{ // test::makeMatrix_long()
const char *M_val[3] = {
" 0 1 2 3 4 5 6" ,
"10 11 12 13 14 15 16" ,
"20 21 22 23 24 25 26"
};
Rat_Matrix M = makeMatrix_long( M_val, 3, 7 );
for (unsigned i=0; i<M.rows(); ++i) {
for (unsigned j=0; j<M.cols(); ++j) {
cout << M(i,j);
}
cout << endl;
}
}}
Definition at line 170 of file test_Gauss.cpp.
| int main | ( | ) |
Programa principal para probar el algoritmo Gauss().
Definition at line 240 of file test_Gauss.cpp.
1.8.0