Abstract non Polymorphyc Matrix:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
Classes | Defines | Typedefs | Functions
test_Gauss.cpp File Reference
#include "Gaussian_Elimination.h"
#include "rational.h"
#include "BUnit.h"
#include "Matrix_List.h"

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 Documentation

#define USE_Matrix_List

Definition at line 11 of file test_Gauss.cpp.


Typedef Documentation

Definition at line 19 of file test_Gauss.cpp.


Function Documentation

template<class MAT >
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;
        }
    }}

See also:
std::test_Gauss<T>::test_makeMatrix_long()

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.