|
LRAUV
revA
|
#include <Mtx.h>


Classes | |
| union | FloatInt |
Public Member Functions | |
| Mtx (Logger &logger, int m=0, int n=0, float initVal=nanf(""), Syslog::Severity severity=Syslog::FAULT) | |
| Mtx (Logger &logger, int m, int n, float *ptr, Syslog::Severity severity=Syslog::FAULT) | |
| Mtx (const char *filename, Logger &logger, Syslog::Severity severity=Syslog::FAULT) | |
| Mtx (const char *filename, Logger &logger, int minN, int maxN, Syslog::Severity severity=Syslog::FAULT) | |
| Mtx (const Mtx &rhs) | |
| virtual | ~Mtx () |
| void | setSize (int m, int n) |
| void | clear () |
| Mtx & | operator= (const Mtx &rhs) |
| Mtx & | operator*= (const float rhs) |
| Mtx & | operator+= (const Mtx &rhs) |
| Mtx & | operator+= (const float rhs) |
| Mtx & | operator-= (const Mtx &rhs) |
| Mtx | operator* (const Mtx &rhs) const |
| int | getM () const |
| virtual int | getN () const |
| virtual float ** | getPtr2d (void) |
| virtual float * | getPtr1d (void) |
| float * | operator[] (int index) |
| void | set (int indexM, int indexN, float value) |
| void | setInt (int indexM, int indexN, int value) |
| float | get (int indexM, int indexN) const |
| int | getInt (int indexM, int indexN) const |
| void | setFromPtr (const int m, const int n, const void *ptr) |
| float | operator() (int indexM, int indexN) const |
| Mtx | subset (int minM=0, int maxM=-1, int minN=0, int maxN=-1) const |
| bool | write (const char *filename, Logger &logger, int minM=0, int maxM=-1, int minN=0, int maxN=-1, Syslog::Severity severity=Syslog::FAULT) |
| bool | append (const char *filename, Logger &logger, Syslog::Severity severity=Syslog::FAULT) |
| bool | valid () const |
| bool | isUnlimitedN () const |
| void | setUnlimitedN (bool unlimitedN) |
| bool | shellSort (int(&comp)(const Mtx &, int, const Mtx &, int)) |
| Simple sort routine, invented by Donald Shell 1959. More... | |
Public Member Functions inherited from I2D< float > | |
| virtual | ~I2D () |
Static Public Member Functions | |
| static bool | CopyValues (const Mtx &src, int srcStartM, int srcStartN, const Mtx &dst, int dstStartM, int dstStartN, int numM, int numN) |
| static int | Comp0 (const Mtx &lhs, int lhsJ, const Mtx &rhs, int rhsJ) |
| Comparison function for indexM = 0;. More... | |
| static int | Comp1 (const Mtx &lhs, int lhsJ, const Mtx &rhs, int rhsJ) |
| Comparison function for indexM = 1;. More... | |
| static int | Comp2 (const Mtx &lhs, int lhsJ, const Mtx &rhs, int rhsJ) |
| Comparison function for indexM = 2;. More... | |
| static int | Comp01 (const Mtx &lhs, int lhsJ, const Mtx &rhs, int rhsJ) |
| Comparison function for indexM = 0 AND indexM = 1;. More... | |
| static int | Comp02 (const Mtx &lhs, int lhsJ, const Mtx &rhs, int rhsJ) |
| Comparison function for indexM = 0 AND indexM = 2;. More... | |
Static Public Member Functions inherited from I2D< float > | |
| static float ** | New2D (int m, int n, bool extra=false) |
| static void | Delete2D (float **array) |
Protected Member Functions | |
| void | prepareValueForModification () |
Protected Member Functions inherited from I2D< float > | |
| I2D () | |
| I2D (const I2D &) | |
Protected Attributes | |
| int | m_ |
| int | n_ |
| float ** | value_ |
| Logger & | logger_ |
| Syslog::Severity | severity_ |
| bool | unlimitedN_ |
| Mtx::Mtx | ( | Logger & | logger, |
| int | m = 0, |
||
| int | n = 0, |
||
| float | initVal = nanf( "" ), |
||
| Syslog::Severity | severity = Syslog::FAULT |
||
| ) |
| Mtx::Mtx | ( | Logger & | logger, |
| int | m, | ||
| int | n, | ||
| float * | ptr, | ||
| Syslog::Severity | severity = Syslog::FAULT |
||
| ) |
| Mtx::Mtx | ( | const char * | filename, |
| Logger & | logger, | ||
| Syslog::Severity | severity = Syslog::FAULT |
||
| ) |
References Syslog::FAULT, FileIOStream::isReadable(), and MtxIOStream::read().
| Mtx::Mtx | ( | const char * | filename, |
| Logger & | logger, | ||
| int | minN, | ||
| int | maxN, | ||
| Syslog::Severity | severity = Syslog::FAULT |
||
| ) |
References FileIOStream::isReadable(), and MtxIOStream::read().
| Mtx::Mtx | ( | const Mtx & | rhs | ) |
|
virtual |
References clear().
| bool Mtx::append | ( | const char * | filename, |
| Logger & | logger, | ||
| Syslog::Severity | severity = Syslog::FAULT |
||
| ) |
References MtxIOStream::append(), FileIOStream::isReadable(), and FileIOStream::isWritable().
Referenced by NavChartDb::appendToContour(), and NavChartDb::appendToSoundings().
| void Mtx::clear | ( | ) |
References I2D< float >::Delete2D(), m_, n_, and value_.
Referenced by operator=(), setSize(), and ~Mtx().
Comparison function for indexM = 0;.
References AuvMath::Sign().
Comparison function for indexM = 0 AND indexM = 1;.
References Comp0(), and Comp1().
Referenced by Mtx_Test::testShellSort().
Comparison function for indexM = 0 AND indexM = 2;.
References Comp0(), and Comp2().
Referenced by Mtx_Test::testShellSort().
Comparison function for indexM = 1;.
References AuvMath::Sign().
Referenced by Comp01(), and Mtx_Test::testShellSort().
Comparison function for indexM = 2;.
References AuvMath::Sign().
Referenced by Comp02(), and NavChartDb::doIndexing().
|
static |
References m_, n_, and value_.
Referenced by shellSort().
|
inline |
References m_, n_, and value_.
Referenced by HFRadarCompactModelForecaster::publishForecast(), and NavChartDb::updateClosest().
|
inline |
References Mtx::FloatInt::float_, Mtx::FloatInt::int_, m_, n_, and value_.
Referenced by NavChartDb::updateClosest().
|
inlinevirtual |
Implements I2D< float >.
References m_.
Referenced by MtxIOStream::append(), HFRadarModelCalc::getLat(), HFRCMSpaceInterpolator::getLowerLeftCorner(), HFRCMReconstructedInterpolator::getLowerLeftCorner(), HFRadarModelCalc::HFRadarModelCalc(), HFRCMSpaceInterpolator::initialize(), HFRCMReconstructedInterpolator::initialize(), NavChartDb::loadCoverage(), NavChartDb::loadDepths(), HFRadarCompactModelForecaster::loadHistory(), HFRadarModelCalc::lookup(), HFRCMSpaceInterpolator::lookupEmpiricalOrthogonalFunctions(), Rowe_600::readMATv4float32(), HFRCMReconstructedInterpolator::reproject(), HFRadarModelCalc::run(), HFRCMTimeInterpolator::run(), HFRCMReconstructedInterpolator::updateExpansionCoefficients(), MtxOutStream::write(), MtxIOStream::write(), and HFRadarModelCalc::~HFRadarModelCalc().
|
inlinevirtual |
Implements I2D< float >.
References n_.
Referenced by MtxIOStream::append(), NavChartDb::appendToCoverage(), HFRadarCompactModelForecaster::forecast(), HFRadarModelCalc::getLon(), HFRCMSpaceInterpolator::getLowerLeftCorner(), HFRCMReconstructedInterpolator::getLowerLeftCorner(), HFRadarModelCalc::HFRadarModelCalc(), HFRCMSpaceInterpolator::initialize(), HFRCMReconstructedInterpolator::initialize(), HFRadarCompactModelForecaster::loadHistory(), HFRadarModelCalc::lookup(), HFRCMSpaceInterpolator::lookupEmpiricalOrthogonalFunctions(), Rowe_600::readMATv4float32(), HFRCMReconstructedInterpolator::reproject(), HFRadarModelCalc::run(), HFRCMTimeInterpolator::run(), NavChartDb::updateClosest(), HFRCMReconstructedInterpolator::updateExpansionCoefficients(), MtxOutStream::write(), and MtxIOStream::write().
|
inlinevirtual |
Implements I2D< float >.
References value_.
|
inlinevirtual |
Implements I2D< float >.
References value_.
|
inline |
References unlimitedN_.
Referenced by MtxOutStream::write(), and MtxIOStream::write().
| Mtx & Mtx::operator*= | ( | const float | rhs | ) |
References m_, n_, prepareValueForModification(), and value_.
References logger_, m_, n_, prepareValueForModification(), severity_, Logger::syslog(), and value_.
| Mtx & Mtx::operator+= | ( | const float | rhs | ) |
References m_, n_, prepareValueForModification(), and value_.
References logger_, m_, n_, prepareValueForModification(), severity_, Logger::syslog(), and value_.
|
inline |
References prepareValueForModification(), and value_.
|
protected |
References m_, n_, setSize(), and value_.
Referenced by operator*=(), operator+=(), operator-=(), and operator[]().
|
inline |
|
inline |
References setSize(), and value_.
Referenced by Rowe_600::readMATv4float32().
|
inline |
References Mtx::FloatInt::float_, Mtx::FloatInt::int_, m_, n_, and value_.
Referenced by NavChartDb::appendToContour(), NavChartDb::appendToSoundings(), and NavChartDb::doIndexing().
| void Mtx::setSize | ( | int | m, |
| int | n | ||
| ) |
References clear(), m_, n_, I2D< float >::New2D(), and value_.
Referenced by Mtx(), operator*(), prepareValueForModification(), MtxIOStream::read(), and setFromPtr().
|
inline |
References unlimitedN_.
Simple sort routine, invented by Donald Shell 1959.
Returns true if the data is modified.
Returns true if the data is modified. Improved with gap sequence by Ciura. It is better than O(n^[4/3]). See Ciura, Marcin (2001). "Best Increments for the Average Case of Shellsort". In Freiwalds, Rusins. Proceedings of the 13th International Symposium on Fundamentals of Computation Theory. London: Springer-Verlag. pp. 106–117. ISBN 3-540-42487-3.
References CopyValues(), logger_, m_, n_, and severity_.
Referenced by Mtx_Test::testShellSort().
| Mtx Mtx::subset | ( | int | minM = 0, |
| int | maxM = -1, |
||
| int | minN = 0, |
||
| int | maxN = -1 |
||
| ) | const |
References logger_, m_, n_, severity_, and value_.
Referenced by HFRadarCompactModelForecaster::forecast(), Rowe_600::readBottomTrackMatrix(), and HFRadarModelCalc::run().
| bool Mtx::write | ( | const char * | filename, |
| Logger & | logger, | ||
| int | minM = 0, |
||
| int | maxM = -1, |
||
| int | minN = 0, |
||
| int | maxN = -1, |
||
| Syslog::Severity | severity = Syslog::FAULT |
||
| ) |
References FileIOStream::isWritable(), and MtxIOStream::write().
Referenced by NavChartDb::appendToCoverage(), NavChartDb::createContour(), NavChartDb::createSoundings(), and NavChartDb::doIndexing().
|
protected |
Referenced by operator*(), operator+=(), operator-=(), shellSort(), and subset().
|
protected |
Referenced by clear(), CopyValues(), get(), getInt(), getM(), operator()(), operator*(), operator*=(), operator+=(), operator-=(), operator=(), prepareValueForModification(), set(), setInt(), setSize(), shellSort(), subset(), and valid().
|
protected |
Referenced by clear(), CopyValues(), get(), getInt(), getN(), operator()(), operator*(), operator*=(), operator+=(), operator-=(), operator=(), prepareValueForModification(), set(), setInt(), setSize(), shellSort(), subset(), and valid().
|
protected |
Referenced by operator*(), operator+=(), operator-=(), shellSort(), and subset().
|
protected |
Referenced by isUnlimitedN(), and setUnlimitedN().
|
protected |
Referenced by clear(), CopyValues(), get(), getInt(), getPtr1d(), getPtr2d(), Mtx(), operator()(), operator*(), operator*=(), operator+=(), operator-=(), operator=(), operator[](), prepareValueForModification(), set(), setFromPtr(), setInt(), setSize(), and subset().