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