// $Header: /cvs/gled-1.2/GledCore/Stones/ZMatrix.cxx,v 1.1.1.1 2003/06/02 10:39:59 matevz Exp $
// Copyright (C) 1999-2003, Matevz Tadel. All rights reserved.
// This file is part of GLED, released under GNU General Public License version 2.
// For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.
#include "ZMatrix.h"
ClassImp(ZMatrix)
#include <Stones/ZMatrixD.h>
ZMatrix::ZMatrix(const ZMatrixD& x) : TMatrix(x.GetNrows(), x.GetNcols()) {
*this = x;
}
ZMatrix& ZMatrix::operator=(const ZMatrixD& source)
{
if(GetNrows() != source.GetNrows() || GetNcols() != source.GetNcols())
ResizeTo(source.GetNrows(), source.GetNcols());
for(UInt_t i=0; i<GetNrows(); i++)
for(UInt_t j=0; j<GetNcols(); j++)
At(i,j) = source(i,j);
return *this;
}
ROOT page - Home page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.