28 if(A.
IsEmpty()) std::cout<<
"A is NULL"<<std::endl;
29 else std::cout<<
"A is not NULL"<<std::endl;
31 if(B.IsNotEmpty()) std::cout<<
"B is not NULL"<<std::endl;
32 else std::cout<<
"B is NULL"<<std::endl;
34 if(C.IsNotEmpty()) std::cout<<
"C is not NULL"<<std::endl;
35 else std::cout<<
"C is NULL"<<std::endl;
41 if(A.
IsNotSimilarTo(B)) std::cout<<
"A is not similar to B"<<std::endl;
42 else std::cout<<
"A is similar to B"<<std::endl;
44 if(B.IsSimilarTo(C)) std::cout<<
"B is similar to C"<<std::endl;
45 else std::cout<<
"B is not similar to C"<<std::endl;
51 if(A.
IsNotMulBy(C)) std::cout<<
"A is not multipliable by C"<<std::endl;
52 else std::cout<<
"A is multipliable by C"<<std::endl;
54 if(B.IsMulBy(C)) std::cout<<
"B is multipliable by C"<<std::endl;
55 else std::cout<<
"B is not multipliable by C"<<std::endl;
61 if(B.IsInRange(1,1)) std::cout<<
"B has the position (1,1)"<<std::endl;
62 else std::cout<<
"B dont have the position (1,1)"<<std::endl;
68 if(B.IsInSizeRange(1.5,0.1)) std::cout<<
"(1.5,0.1) is in size range of B"<<std::endl;
69 else std::cout<<
"(1.5,0.1) is not in size range of B"<<std::endl;
72 B.EqualToInf().Print(
"\nB.EqualToInf()\n");
74 B.EqualToNan().Print(
"\nB.EqualToNan()\n");
76 B.EqualToFinite().Print(
"\nB.EqualToFinite()\n");
79 std::cout<<
"C.HasInf() :\t"<<C.HasInf()<<std::endl;
80 std::cout<<
"C.HasNan() :\t"<<C.HasNan()<<std::endl;
81 std::cout<<
"C.HasNotFinite():\t"<<C.HasNotFinite()<<std::endl;
85 if(D.IsZero()) std::cout<<
"D is zero matrix"<<std::endl;
86 else std::cout<<
"D is not zero matrix"<<std::endl;
La clase tipo Pds::Matrix . Esta clase genera una matriz de Nlin lineas y Ncol columnas....
#define pds_print_info_message(msg)
bool IsNotMulBy(const Pds::Matrix &B) const
Verifica si las matrices son multiplicables.
bool IsNotSimilarTo(const Pds::Matrix &B) const
Verifica si las matrices son similares en tamaño.
bool IsEmpty(void) const
Verifica si la matriz es nula es decir con lineas o columnas cero o arreglo NULL.