Kindfield
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Friends
Pages
src
basisfunctions
gaussian
gaussianprimitiveorbital.cpp
Go to the documentation of this file.
1
#include "
gaussianprimitiveorbital.h
"
2
3
#include <algorithm>
4
5
using
std::max;
6
7
GaussianPrimitiveOrbital::GaussianPrimitiveOrbital
() :
8
m_weight(0),
9
m_xExponent(0),
10
m_yExponent(0),
11
m_zExponent(0),
12
m_exponent(0)
13
{
14
}
15
16
GaussianPrimitiveOrbital::GaussianPrimitiveOrbital
(
double
weight,
int
xExponent,
int
yExponent,
int
zExponent,
double
exponent) :
17
m_weight(weight),
18
m_xExponent(xExponent),
19
m_yExponent(yExponent),
20
m_zExponent(zExponent),
21
m_exponent(exponent)
22
{
23
24
}
25
double
GaussianPrimitiveOrbital::exponent
()
const
26
{
27
return
m_exponent;
28
}
29
30
void
GaussianPrimitiveOrbital::setExponent
(
double
exponent)
31
{
32
m_exponent =
exponent
;
33
}
34
int
GaussianPrimitiveOrbital::zExponent
()
const
35
{
36
return
m_zExponent;
37
}
38
39
void
GaussianPrimitiveOrbital::setZExponent
(
int
zExponent)
40
{
41
m_zExponent =
zExponent
;
42
}
43
int
GaussianPrimitiveOrbital::yExponent
()
const
44
{
45
return
m_yExponent;
46
}
47
48
void
GaussianPrimitiveOrbital::setYExponent
(
int
yExponent)
49
{
50
m_yExponent =
yExponent
;
51
}
52
int
GaussianPrimitiveOrbital::xExponent
()
const
53
{
54
return
m_xExponent;
55
}
56
57
void
GaussianPrimitiveOrbital::setXExponent
(
int
xExponent)
58
{
59
m_xExponent =
xExponent
;
60
}
61
double
GaussianPrimitiveOrbital::weight
()
const
62
{
63
return
m_weight;
64
}
65
66
void
GaussianPrimitiveOrbital::setWeight
(
double
weight)
67
{
68
m_weight =
weight
;
69
}
70
71
int
GaussianPrimitiveOrbital::angularMomentum
()
const
72
{
73
return
m_xExponent + m_yExponent + m_zExponent;
74
}
75
76
int
GaussianPrimitiveOrbital::exponentMax
()
const
77
{
78
return
max(m_xExponent, max(m_yExponent, m_zExponent));
79
}
80
Generated on Sun Jun 22 2014 14:02:46 for Kindfield by
1.8.4