CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
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
#include "CLHEP/Matrix/defs.h"
8
#include "CLHEP/Matrix/Matrix.h"
9
#include "CLHEP/Vector/Rotation.h"
10
11
#include <iostream>
12
13
namespace
CLHEP
{
14
15
HepMatrix
&
HepMatrix::operator=
(
const
HepRotation
&hm1) {
16
if
(9!=size_) {
17
//delete &m;
18
size_ = 9;
19
m.resize(size_);
20
}
21
nrow = ncol = 3;
22
mIter
hmm1;
23
hmm1 = m.begin();
24
*hmm1++ = hm1.
xx
();
25
*hmm1++ = hm1.
xy
();
26
*hmm1++ = hm1.
xz
();
27
*hmm1++ = hm1.
yx
();
28
*hmm1++ = hm1.
yy
();
29
*hmm1++ = hm1.
yz
();
30
*hmm1++ = hm1.
zx
();
31
*hmm1++ = hm1.
zy
();
32
*hmm1 = hm1.
zz
();
33
return
(*
this
);
34
}
35
36
}
// namespace CLHEP
CLHEP::HepGenMatrix::mIter
std::vector< double, Alloc< double, 25 > >::iterator mIter
Definition:
GenMatrix.h:73
CLHEP::HepMatrix
Definition:
Matrix.h:205
CLHEP::HepMatrix::operator=
HepMatrix & operator=(const HepMatrix &)
Definition:
Matrix.cc:415
CLHEP::HepRotation
Definition:
Rotation.h:44
CLHEP::HepRotation::zz
double zz() const
CLHEP::HepRotation::yz
double yz() const
CLHEP::HepRotation::zx
double zx() const
CLHEP::HepRotation::yx
double yx() const
CLHEP::HepRotation::zy
double zy() const
CLHEP::HepRotation::xx
double xx() const
CLHEP::HepRotation::yy
double yy() const
CLHEP::HepRotation::xz
double xz() const
CLHEP::HepRotation::xy
double xy() const
CLHEP
Definition:
DiagMatrix.h:23
CLHEP-CLHEP_2_4_6_4
Matrix
src
MatrixEqRotation.cc
Generated by
1.9.6