Jpp
master_rocky-40-g5f0272dcd
the software that should make you happy
software
JMath
JMatrix1S.hh
Go to the documentation of this file.
1
#ifndef __JMATRIX1S__
2
#define __JMATRIX1S__
3
4
#include <cmath>
5
#include <algorithm>
6
7
#include "
JMath/JMatrix1D.hh
"
8
#include "
JLang/JException.hh
"
9
10
11
/**
12
* \author mdejong
13
*/
14
15
namespace
JMATH
{}
16
namespace
JPP
{
using namespace
JMATH
; }
17
18
namespace
JMATH
{
19
20
using
JLANG::JDivisionByZero
;
21
22
23
/**
24
* 1 x 1 symmetric matrix
25
*/
26
class
JMatrix1S
:
27
public
JMatrix1D
28
{
29
public
:
30
/**
31
* Default constructor.
32
*/
33
JMatrix1S
() :
34
JMatrix1D
()
35
{}
36
37
38
/**
39
* Contructor.
40
*
41
* \param A matrix
42
*/
43
JMatrix1S
(
const
JMatrix1D
& A) :
44
JMatrix1D
(A)
45
{}
46
47
48
/**
49
* Contructor.
50
*
51
* \param __a00 (0,0)
52
*/
53
JMatrix1S
(
const
double
__a00) :
54
JMatrix1D
(__a00)
55
{}
56
57
58
/**
59
* Invert matrix
60
*/
61
void
invert
()
62
{
63
if
(
a00
== 0) {
64
throw
JDivisionByZero
(
"LDU decomposition zero pivot"
);
65
}
66
67
a00
= 1.0 /
a00
;
68
}
69
};
70
}
71
72
#endif
JException.hh
Exceptions.
JMatrix1D.hh
JLANG::JDivisionByZero
Exception for division by zero.
Definition:
JException.hh:288
JMATH::JMatrix1D
1 x 1 matrix
Definition:
JMatrix1D.hh:35
JMATH::JMatrix1D::a00
double a00
Definition:
JMatrix1D.hh:315
JMATH::JMatrix1S
1 x 1 symmetric matrix
Definition:
JMatrix1S.hh:28
JMATH::JMatrix1S::invert
void invert()
Invert matrix.
Definition:
JMatrix1S.hh:61
JMATH::JMatrix1S::JMatrix1S
JMatrix1S(const JMatrix1D &A)
Contructor.
Definition:
JMatrix1S.hh:43
JMATH::JMatrix1S::JMatrix1S
JMatrix1S(const double __a00)
Contructor.
Definition:
JMatrix1S.hh:53
JMATH::JMatrix1S::JMatrix1S
JMatrix1S()
Default constructor.
Definition:
JMatrix1S.hh:33
JMATH
Auxiliary classes and methods for mathematical operations.
Definition:
JEigen3D.hh:88
JPP
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Definition:
JAAnetToolkit.hh:43
Generated by
1.9.1