Auxiliary data structure for compatibility of symmetric matrix.
More...
#include <JKatoomba_t.hh>
|
void | resize (const size_t size) |
| Resize matrix.
|
|
void | reset () |
| Set matrix to the null matrix.
|
|
void | invert () |
| Invert matrix according SVD decomposition.
|
|
template<class JVectorND_t > |
void | solve (JVectorND_t &u) |
| Get solution of equation A x = b .
|
|
|
static constexpr double | TOLERANCE = 1.0e-8 |
| Tolerance for SVD.
|
|
static std::mutex | mtx |
| TDecompSVD.
|
|
Auxiliary data structure for compatibility of symmetric matrix.
Inversion is based on SVD algorithm.
Definition at line 356 of file JKatoomba_t.hh.
◆ resize()
void JACOUSTICS::TMatrixDS::resize |
( |
const size_t | size | ) |
|
|
inline |
Resize matrix.
Definition at line 364 of file JKatoomba_t.hh.
365 {
366 ResizeTo(size, size);
367 }
◆ reset()
void JACOUSTICS::TMatrixDS::reset |
( |
| ) |
|
|
inline |
◆ invert()
void JACOUSTICS::TMatrixDS::invert |
( |
| ) |
|
|
inline |
Invert matrix according SVD decomposition.
Definition at line 380 of file JKatoomba_t.hh.
381 {
382#ifdef THREAD_SAFE
384
385 unique_lock<mutex> lock(
mtx);
386#endif
388
389 Bool_t status;
390
391 static_cast<TMatrixD&>(*this) = svd.Invert(status);
392 }
static std::mutex mtx
TDecompSVD.
static constexpr double TOLERANCE
Tolerance for SVD.
◆ solve()
template<class JVectorND_t >
void JACOUSTICS::TMatrixDS::solve |
( |
JVectorND_t & | u | ) |
|
|
inline |
Get solution of equation A x = b
.
- Parameters
-
u | column vector; b on input, x on output(I/O) |
Definition at line 400 of file JKatoomba_t.hh.
401 {
402#ifdef THREAD_SAFE
404
405 unique_lock<mutex> lock(
mtx);
406#endif
408
409 TVectorD b(
u.size());
410
411 for (
size_t i = 0; i !=
u.size(); ++i) {
413 }
414
415 svd.Solve(b);
416
417 for (
size_t i = 0; i !=
u.size(); ++i) {
419 }
420 }
◆ TOLERANCE
double JACOUSTICS::TMatrixDS::TOLERANCE = 1.0e-8 |
|
staticconstexpr |
◆ mtx
std::mutex JACOUSTICS::TMatrixDS::mtx |
|
static |
The documentation for this struct was generated from the following files: