General Purpose Geodetic Library
|
#include <SgVector.h>
Public Member Functions | |
SgVector () | |
SgVector (unsigned int N, bool IsNeedClear) | |
SgVector (const SgVector &V) | |
~SgVector () | |
void | reSize (unsigned int n) |
unsigned int | n () const |
double & | operator() (unsigned int i) |
void | setElement (unsigned int i, double d) |
double | getElement (unsigned int i) const |
double | module () const |
void | clear () |
SgVector & | operator= (const SgVector &V) |
SgVector & | operator= (double d) |
SgVector & | operator+= (const SgVector &V) |
SgVector & | operator-= (const SgVector &V) |
SgVector & | operator*= (double d) |
SgVector & | operator/= (double d) |
bool | operator== (const SgVector &V) const |
bool | operator!= (const SgVector &V) const |
double *& | base () |
const double * | base_c () const |
Protected Attributes | |
unsigned int | N_ |
An number of elements in a vector (dimension). More... | |
double * | B_ |
A pointer on a first element of the vector. More... | |
Friends | |
class | SgMatrix |
class | SgUtMatrix |
SgVector | operator- (const SgVector &V) |
SgVector | operator/ (const SgVector &V, double d) |
SgVector | operator* (const SgVector &V, double d) |
SgVector | operator* (double d, const SgVector &V) |
SgVector | operator+ (const SgVector &V1, const SgVector &V2) |
SgVector | operator- (const SgVector &V1, const SgVector &V2) |
double | operator* (const SgVector &V1, const SgVector &V2) |
SgVector | operator* (const SgMatrix &M, const SgVector &V) |
SgVector | operator* (const SgUtMatrix &R, const SgVector &V) |
SgVector | operator* (const SgSymMatrix &P, const SgVector &V) |
SgVector | calcProduct_matT_x_vec (const SgMatrix &, const SgVector &) |
SgVector | calcProduct_matT_x_vec (const SgUtMatrix &, const SgVector &) |
A vector. Should be useful for various matrix calculations.
Definition at line 62 of file SgVector.h.
|
inline |
A constructor. Creates an empty vector (for I/O purposes).
Definition at line 274 of file SgVector.h.
|
inline |
A constructor. Creates a copy of an object.
N | – number of elements. |
IsNeedClear | – if set to true fills the array with zeros, if set to false skips this procedure and the state of *B depend on compiler realization. |
Definition at line 283 of file SgVector.h.
|
inline |
A constructor. Creates a copy of an object.
V | – vector that will be copied into the new object. |
Definition at line 293 of file SgVector.h.
|
inline |
A destructor. Frees allocated memory.
Definition at line 302 of file SgVector.h.
|
inline |
Definition at line 247 of file SgVector.h.
References B_.
Referenced by SgEstimator::dataUpdate_th(), SgEstimator::prepare2Run(), and SgEstimator::propagateStochasticParameters_th().
|
inline |
Definition at line 248 of file SgVector.h.
References B_.
|
inline |
Fills elements with zero.
Definition at line 389 of file SgVector.h.
Referenced by SgVector(), SgEstimator::dataUpdate(), SgEstimator::propagateStochasticParameters(), SgEstimator::propagateStochasticParameters_th(), SgVlbiAuxObservation::resetTsys(), and reSize().
|
inline |
Returns a value of i-th element.
i | – an index; valid ranges are: [0,N-1]. |
Definition at line 362 of file SgVector.h.
Referenced by SgVlbiSession::allocUt1InterpolValues(), SgArcStorage::calc_aT_P_a(), SgPwlStorageBSplineL::calc_aT_P_a(), SgPwlStorageBSplineQ::calc_aT_P_a(), SgPwlStorageIncRates::calc_aT_P_a(), SgEstimator::calc_aT_P_a_opt(), SgSolutionReporter::calculateConditionNumber(), SgStnLogReadings::cleanMeteoParameters(), SgEstimator::dataUpdate(), evaluateEffectiveFreqs(), evaluateEffectiveFreqs_old_version(), evaluatePCal4GrpDelay(), evaluatePhaseCals(), SgAgvDriver::fillBslnVars(), SgAgvDriver::fillSessVars(), SgVlbiSession::getDataFromVgosDb(), SgVlbiAuxObservation::getTsys(), SgCubicSpline::h(), SgEstimator::insertNewParameters(), operator<<(), SgVlbiObservation::prepare4Analysis(), SgVlbiSession::prepare4ErpInterpolation(), SgCubicSpline::prepare4Spline(), SgEstimator::processObs(), SgEstimator::propagateStochasticParameters(), SgVlbiSession::putDataIntoVgosDb(), SgEstimator::saveProcessedParameters(), SgVlbiBaselineInfo::scan4Ambiguities_m1(), SgEstimator::solveEquation(), solveEquation(), SgCubicSpline::solveSpline(), SgCubicSpline::spline(), SgVgosDb::storeAntennaApriories(), SgVgosDb::storeAtmSetup(), SgVgosDb::storeCalcEop(), SgVgosDb::storeClockSetup(), SgVgosDb::storeErpApriori(), SgVgosDb::storeObsAmbigSpacing(), SgVgosDb::storeObsChannelInfo(), SgVgosDb::storeObsCorrelation(), SgVgosDb::storeObsCorrelatorInfo(), SgVgosDb::storeObsDelayTheoretical(), SgVgosDb::storeObsDtec(), SgVgosDb::storeObsFractC(), SgVgosDb::storeObsGroupDelaysFull(), SgVgosDb::storeObsPhaseCalInfo(), SgVgosDb::storeObsPhaseDelaysFull(), SgVgosDb::storeObsRateTheoretical(), SgVgosDb::storeObsRefFreqs(), SgVgosDb::storeObsSNR(), SgVgosDb::storeStationMet(), SgVgosDb::storeStationParAngle(), SgVgosDb::storeStationRefClockOffset(), NsSessionEditDialog::tab4StationsPlot(), NsTestDialog::testPlot(), NsTestFour1Dialog::testPlot(), and updateSolutionAtParameterList().
|
inline |
|
inline |
Returns number of elements in the vector.
Definition at line 327 of file SgVector.h.
References N_.
Referenced by SgVlbiSession::allocPxyInterpolEpochs(), SgVlbiSession::allocUt1InterpolEpochs(), SgVlbiSession::allocUt1InterpolValues(), SgVlbiObservable::calcPhaseCalDelay(), evaluateEffectiveFreqs(), evaluateEffectiveFreqs_old_version(), evaluatePCal4GrpDelay(), evaluatePhaseCals(), SgAgvDriver::fillSessVars(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initEssentialVars(), SgEstimator::insertNewParameters(), operator<<(), SgVlbiSession::prepare4ErpInterpolation(), SgVlbiSession::putDataIntoVgosDb(), reSize(), SgEstimator::saveProcessedParameters(), SgVlbiAuxObservation::setTsyses(), SgVlbiAuxObservation::setTsysesSize(), SgEstimator::solveEquation(), solveEquation(), SgVgosDb::storeAntennaApriories(), SgVgosDb::storeAtmSetup(), SgVgosDb::storeCalcEop(), SgVgosDb::storeClockSetup(), SgVgosDb::storeErpApriori(), SgVgosDb::storeObsAmbigSpacing(), SgVgosDb::storeObsCorrelation(), SgVgosDb::storeObsDelayTheoretical(), SgVgosDb::storeObsDtec(), SgVgosDb::storeObsFractC(), SgVgosDb::storeObsGroupDelaysFull(), SgVgosDb::storeObsPhaseDelaysFull(), SgVgosDb::storeObsRateTheoretical(), SgVgosDb::storeObsRefFreqs(), SgVgosDb::storeObsSNR(), SgVgosDb::storeStationMet(), SgVgosDb::storeStationParAngle(), SgVgosDb::storeStationRefClockOffset(), and updateSolutionAtParameterList().
|
inline |
Comperes the vector with another one, returns TRUE if the vectors are different.
V | – a vector for comparing. |
Definition at line 498 of file SgVector.h.
|
inline |
Returns reference at i-th element of the vector.
i | – an index; valid ranges are: [0,N-1]. |
Definition at line 335 of file SgVector.h.
|
inline |
Increments vector by another one.
V | – a vector to add. |
Definition at line 427 of file SgVector.h.
Decrements vector by another one.
V | – a vector to substract. |
Definition at line 444 of file SgVector.h.
|
inline |
Assign the vector to the another one.
V | – a vector to copy. |
Definition at line 397 of file SgVector.h.
|
inline |
Fills the vector with a double.
d | – a value to fill the vector. |
Definition at line 416 of file SgVector.h.
|
inline |
Comperes the vector with another one, returns TRUE if the vectors are equal.
V | – a vector for comparing. |
Definition at line 483 of file SgVector.h.
|
inline |
Definition at line 313 of file SgVector.h.
References B_, clear(), n(), and N_.
Referenced by SgVlbiAuxObservation::setTsyses(), and SgVlbiAuxObservation::setTsysesSize().
|
inline |
Changes the i-th element.
i | – an index; valid ranges are: [0,N-1]; |
d | – a new value for i-th element. |
Definition at line 348 of file SgVector.h.
Referenced by SgVlbiSession::allocPxyInterpolEpochs(), SgVlbiSession::allocUt1InterpolEpochs(), SgEstimator::calc_aT_P_a(), SgEstimator::calc_aT_P_a_opt(), SgVlbiObservable::calcPhaseCalDelay(), SgVlbiSession::calculateClockBreakParameter(), SgVlbiSession::calculateClockBreaksParameters(), SgSolutionReporter::calculateConditionNumber(), SgStnLogReadings::cleanMeteoParameters(), SgEstimator::collectDependentInfArray(), SgEstimator::dataUpdate(), evaluateEffectiveFreqs(), evaluateEffectiveFreqs_old_version(), evaluatePCal4GrpDelay(), SgSolutionReporter::evaluateUsedErpApriori(), SgVlbiSession::getDataFromDbhImage(), SgVlbiSession::getDataFromVgosDb(), SgAgvDriver::initSession(), SgEstimator::insertNewParameters(), SgVgosDb::loadAntennaApriories(), SgVgosDb::loadAtmSetup(), SgVgosDb::loadCalcEop(), SgVgosDb::loadClockSetup(), SgVgosDb::loadErpApriori(), SgVgosDb::loadObsAmbigSpacing(), SgVgosDb::loadObsChannelInfoMk3(), SgVgosDb::loadObsChannelInfoMk4(), SgVgosDb::loadObsChannelInfoS2(), SgVgosDb::loadObsCorrelation(), SgVgosDb::loadObsCorrelatorInfoCrl(), SgVgosDb::loadObsCorrelatorInfoMk3(), SgVgosDb::loadObsCorrelatorInfoMk4(), SgVgosDb::loadObsCorrelatorInfoS2(), SgVgosDb::loadObsDtec(), SgVgosDb::loadObsFractC(), SgVgosDb::loadObsPhaseCalInfoMk3(), SgVgosDb::loadObsPhaseCalInfoMk4(), SgVgosDb::loadObsPhaseCalInfoS2(), SgVgosDb::loadObsRefFreqs(), SgVgosDb::loadObsSNR(), SgVgosDb::loadObsTheoreticals(), SgVgosDb::loadStationMet(), SgVgosDb::loadStationParAngle(), SgVgosDb::loadStationRefClockOffset(), SgVlbiObservation::prepare4Analysis(), SgVlbiSession::prepare4ErpInterpolation(), SgEstimator::processConstraint(), SgVlbiSession::processKombFile(), SgEstimator::processObs(), SgStnLogReadings::propagateData(), SgEstimator::propagateStochasticParameters(), VcCalc2SessionIfc::put4_fUt1_pts(), SgVlbiSession::putDataIntoVgosDb(), SgExternalEopFile::readC04File(), SgExternalEopFile::readErpFile(), SgExternalEopFile::readFinalsFile(), SgVlbiSession::resolveGrAmbigTriangles(), SgEstimator::saveProcessedParameters(), NsTestDialog::testPlot(), and NsTestFour1Dialog::testPlot().
Makes a product of a transposed matrix and a vector.
M | – a matrix; |
V | – a vector. |
Makes a product of a transposed matrix and a vector.
M | – a that should be transposed; |
V | – a vector. |
Definition at line 192 of file SgMatrix.cpp.
|
friend |
Makes a product of a transposed upper triangular matrix and a vector.
M | – a matrix; |
V | – a vector. |
Makes a product of a matrix and a vector.
M | – a matrix; |
V | – a vector. |
Definition at line 73 of file SgMatrix.cpp.
|
friend |
Makes a product of a matrix and a vector.
P | – a symmetric matrix; |
V | – a vector. |
Makes a product of a matrix and a vector.
R | – a matrix; |
V | – a vector. |
Definition at line 48 of file SgSymMatrix.cpp.
|
friend |
Makes a product of a matrix and a vector.
R | – an upper triangular matrix; |
V | – a vector. |
Makes a product of a matrix and a vector.
R | – a matrix; |
V | – a vector. |
Definition at line 69 of file SgUtMatrix.cpp.
Returns a vector multiplied by scalar.
V | – a vector; |
d | – a scale. |
Definition at line 514 of file SgVector.h.
Makes a scalar product of two vectors.
V1 | – a first term in the product; |
V2 | – a second term in the product. |
Definition at line 554 of file SgVector.h.
Returns a vector multiplied by scalar.
d | – a scale. |
V | – a vector; |
Definition at line 522 of file SgVector.h.
Returns a sum of two vectors.
V1 | is a first term, |
V2 | is a second term in the sum. |
Definition at line 538 of file SgVector.h.
Returns a vector with an inverted sign (unary operator).
V | – an original vector. |
Definition at line 506 of file SgVector.h.
Returns a difference of two vectors.
V1 | is a first term, |
V2 | is a second term in the sum. |
Definition at line 546 of file SgVector.h.
Returns a vector divided by scalar.
V | – a vector; |
d | – a divider; |
Definition at line 530 of file SgVector.h.
|
friend |
Definition at line 64 of file SgVector.h.
|
friend |
Definition at line 65 of file SgVector.h.
|
protected |
A pointer on a first element of the vector.
Definition at line 258 of file SgVector.h.
Referenced by SgVector(), ~SgVector(), base(), base_c(), clear(), getElement(), module(), operator()(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), reSize(), and setElement().
|
protected |
An number of elements in a vector (dimension).
Definition at line 257 of file SgVector.h.
Referenced by SgVector(), ~SgVector(), clear(), getElement(), module(), n(), operator()(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), reSize(), and setElement().