CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

MatrixEqRotation.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// ---------------------------------------------------------------------------
3//
4// This file is a part of the CLHEP - a Class Library for High Energy Physics.
5//
6
7#ifdef GNUPRAGMA
8#pragma implementation
9#endif
10
11#include "CLHEP/Matrix/defs.h"
12#include "CLHEP/Matrix/Matrix.h"
13#include "CLHEP/Vector/Rotation.h"
14
15namespace CLHEP {
16
18 if(9!=size_) {
19 //delete &m;
20 size_ = 9;
21 m.resize(size_);
22 }
23 nrow = ncol = 3;
24 mIter hmm1;
25 hmm1 = m.begin();
26 *hmm1++ = hm1.xx();
27 *hmm1++ = hm1.xy();
28 *hmm1++ = hm1.xz();
29 *hmm1++ = hm1.yx();
30 *hmm1++ = hm1.yy();
31 *hmm1++ = hm1.yz();
32 *hmm1++ = hm1.zx();
33 *hmm1++ = hm1.zy();
34 *hmm1 = hm1.zz();
35 return (*this);
36}
37
38} // namespace CLHEP
std::vector< double, Alloc< double, 25 > >::iterator mIter
HepMatrix & operator=(const HepMatrix &)
Definition Matrix.cc:417
double zz() const
double yz() const
double zx() const
double yx() const
double zy() const
double xx() const
double yy() const
double xz() const
double xy() const