29 _Mat = m_get(NoLin, NoCol);
74 std::cerr <<
" !! Trying two multiply two matrices when the number of columns of first one is not equal to number "
75 "of files of second one "
83 m_transp(
_Mat, tempmat);
95 std::cerr <<
"!!!! cannot sum two matrices with different size" << std::endl
100 m_copy(
_Mat, tempmat);
120 std::cerr <<
" !! Trying two multiply two matrices when the number of columns of first one is not equal to number "
121 "of files of second one "
162 << matout.
Mat()->n << std::endl;
170 matout += (-1 * matout2);
204 m_transp(
_Mat, tempmat);
229 (*this) *= 1. / factor;
230 m_inverse(
_Mat, tempmat);
231 m_copy(tempmat,
_Mat);
232 (*this) *= 1. / factor;
238 if (lin >=
_Mat->m || col >=
_Mat->n) {
240 std::cerr <<
"EXITING: matrix has only " <<
_Mat->m <<
" lines and " <<
_Mat->n <<
" columns " << std::endl;
241 std::cerr <<
" You tried to add data in line " << lin <<
" and column " << col << std::endl;
255 if (lin_last < lin_first) {
256 std::cerr <<
"EXITING: cannot Eliminate Lines in matrix if first line is " << lin_first <<
" and lastt line is "
257 << lin_last << std::endl;
261 ALIint dif = (lin_last - lin_first) + 1;
267 if (ii < lin_first || ii > lin_last) {
277 _Mat = m_get(newANolin, newANocol);
287 if (lin_last < lin_first) {
288 std::cerr <<
"EXITING: cannot Eliminate Lines in matrix if first line is " << lin_first <<
" and lastt line is "
289 << lin_last << std::endl;
293 ALIint dif = (lin_last - lin_first) + 1;
299 if (jj < lin_first || jj > lin_last) {
309 _Mat = m_get(newANolin, newANocol);
321 fout <<
"DUMPM@@@@@ " << mtext <<
" @@@@@" << std::endl;
322 fout <<
"Matrix is (_Mat)" <<
_Mat->m <<
"x" <<
_Mat->n << std::endl;
326 fout << std::setw(8) <<
_Mat->me[
ii][
jj] <<
" ";
335 AddData(i1, i2, corr *
sqrt((*
this)(i1, i1) * (*
this)(i2, i2)));
336 AddData(i2, i1, corr *
sqrt((*
this)(i1, i1) * (*
this)(i2, i2)));
338 std::cout << i1 << i2 << corr <<
"CORR" << (*this)(i1, i1) <<
" " << (*
this)(i2, i2) << std::endl;
342 std::cout << corr *
sqrt((*
this)(i1, i1) * (*
this)(i2, i2)) << std::endl;
348 std::cerr <<
" !! Trying two multiply two matrices when the number of columns of first one is not equal to number "
349 "of files of second one "
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)
char data[epos_bytes_allocation]
void operator*=(const MatrixMeschach &mat)
MatrixMeschach operator*(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
MatrixMeschach & operator=(const MatrixMeschach &mat)
void Dump(const ALIstring &mtext)