Jpp
pmt_effective_area_update
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
JMATH::JMatrix1S::JMatrix1S
JMatrix1S()
Default constructor.
Definition:
JMatrix1S.hh:33
JException.hh
Exceptions.
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::JMatrix1D
1 x 1 matrix
Definition:
JMatrix1D.hh:32
JMatrix1D.hh
JMATH::JMatrix1D::a00
double a00
Definition:
JMatrix1D.hh:315
JLANG::JDivisionByZero
Exception for division by zero.
Definition:
JException.hh:270
JMATH::JMatrix1S::invert
void invert()
Invert matrix.
Definition:
JMatrix1S.hh:61
JMATH::JMatrix1S
1 x 1 symmetric matrix
Definition:
JMatrix1S.hh:26
A
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
Definition:
JShellParser.csh:15
Generated by
1.8.5