00001
00003 inline const zssmatrix& operator+(const zssmatrix& mat)
00004 {
00005 #ifdef CPPL_VERBOSE
00006 std::cerr << "# [MARK] operator+(const zssmatrix&)"
00007 << std::endl;
00008 #endif//CPPL_VERBOSE
00009
00010 return mat;
00011 }
00012
00013
00015 inline _zssmatrix operator-(const zssmatrix& mat)
00016 {
00017 #ifdef CPPL_VERBOSE
00018 std::cerr << "# [MARK] operator-(const zssmatrix&)"
00019 << std::endl;
00020 #endif//CPPL_VERBOSE
00021
00022 zssmatrix newmat(mat.M,mat.N,mat.CAP);
00023
00024 newmat.VOL=mat.VOL;
00025 for(long i=0; i<mat.VOL; i++){
00026 newmat.Array[i] =-mat.Array[i];
00027 newmat.Indx[i] =mat.Indx[i];
00028 newmat.Jndx[i] =mat.Jndx[i];
00029 }
00030
00031 return _(newmat);
00032 }