34 _Mat = m_get( NoLin, NoCol );
69 std::cerr <<
"EXITING: trying to use 'operator=' with an MatrixMeschach for which memory space is not reserved!!!!" << std::endl;
91 std::cerr <<
" !! Trying two multiply two matrices when the number of columns of first one is not equal to number of files of second one " << std::endl;
97 m_transp(
_Mat, tempmat);
111 std::cerr <<
"!!!! cannot sum two matrices with different size" << std::endl
116 m_copy(
_Mat, tempmat);
142 std::cerr <<
" !! Trying two multiply two matrices when the number of columns of first one is not equal to number of files of second one " << std::endl;
183 << mat2.
Mat()->m << mat2.
Mat()->n
184 << matout.
Mat()->m << matout.
Mat()->n << std::endl;
195 matout += (-1 * matout2);
237 m_transp(
_Mat, tempmat );
265 m_inverse(
_Mat, tempmat );
266 m_copy( tempmat,
_Mat );
275 if ( lin >=
_Mat->m || col >=
_Mat->n ) {
278 std::cerr <<
"EXITING: matrix has only " <<
_Mat->m <<
" lines and "
279 <<
_Mat->n <<
" columns " << std::endl;
280 std::cerr <<
" You tried to add data in line " << lin <<
" and column "
302 if ( lin_last < lin_first ) {
303 std::cerr <<
"EXITING: cannot Eliminate Lines in matrix if first line is " <<
304 lin_first <<
" and lastt line is " << lin_last << std::endl;
308 ALIint dif = (lin_last - lin_first) + 1;
314 if( ii < lin_first || ii > lin_last ) {
323 _Mat = m_get( newANolin, newANocol );
336 if ( lin_last < lin_first ) {
337 std::cerr <<
"EXITING: cannot Eliminate Lines in matrix if first line is " <<
338 lin_first <<
" and lastt line is " << lin_last << std::endl;
342 ALIint dif = (lin_last - lin_first) + 1;
348 if( jj < lin_first || jj > lin_last ) {
357 _Mat = m_get( newANolin, newANocol );
374 fout <<
"DUMPM@@@@@ " << mtext <<
" @@@@@" << std::endl;
375 fout <<
"Matrix is (_Mat)" <<
_Mat->m <<
"x" <<
_Mat->n << std::endl;
379 fout << std::setw(8) <<
_Mat->me[
ii][
jj] <<
" ";
391 AddData(i1,i2,corr *
sqrt( (*
this)(i1,i1)*(*
this)(i2,i2) ) );
392 AddData(i2,i1,corr *
sqrt( (*
this)(i1,i1)*(*
this)(i2,i2) ) );
393 if(
ALIUtils::debug >= 9)
std::cout << i1<< i2<< corr <<
"CORR" << (*this)(i1,i1) <<
" " << (*
this)(i2,i2) << std::endl;
405 std::cerr <<
" !! Trying two multiply two matrices when the number of columns of first one is not equal to number of files of second one " << std::endl;
void copy(const MatrixMeschach &mat)
ALIdouble operator()(int i, int j) const
MatrixMeschach operator+(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
MatrixMeschach operator-(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
MatrixMeschach * MatrixByMatrix(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
void EliminateLines(ALIint lin_first, ALIint lin_last)
void operator+=(const MatrixMeschach &mat)
void SetCorrelation(ALIint i1, ALIint i2, ALIdouble corr)
void EliminateColumns(ALIint lin_first, ALIint lin_last)
MAT * MatNonConst() const
void ostrDump(std::ostream &fout, const ALIstring &mtext)
void AddData(ALIuint col, ALIuint lin, ALIdouble data)
void setNoColumns(ALIint ncol)
void operator*=(const MatrixMeschach &mat)
MatrixMeschach operator*(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
MatrixMeschach & operator=(const MatrixMeschach &mat)
void Dump(const ALIstring &mtext)