Vector and Matrix mathematics


Classes

class  Matrix
 An implementation of a matrix class using Vector<T> as its internal basis. More...
class  MatrixSlice
 An assignable slice of a matrix. More...
class  ConstMatrixSlice
 An unmodifiable matrix slice. More...
class  MatrixColSlice
 an assignable single column slice of a matrix More...
class  ConstMatrixColSlice
 a constant slice of a single column from a matrix. More...
class  MatrixRowSlice
 an assignable single row slice of a matrix More...
class  ConstMatrixRowSlice
 an unmodifiable row slice of a matrix. More...
class  MatrixException
class  MatrixException
class  SingularMatrixException
class  SingularMatrixException
class  ConstMatrixBase
 A matrix base class for a non-modifiable matrix. More...
class  RefMatrixBase
 A matrix base class that allows assignment of the internal matrix. More...
class  MatrixSliceBase
 Base class for defining a slice of a matrix. More...
class  ConstMatrixSliceBase
 Base class for an unmodifiable matrix slice. More...
class  RefMatrixSliceBase
 Base class for a modifiable matrix slice. More...
class  SVD
 Class SVD: A function object for the singular value decomposition of a matrix. More...
class  LUDecomp
 Performs the lower/upper triangular decomposition of a matrix PA = LU. More...
class  Cholesky
 Compute cholesky decomposition (upper triangular square root) of the given matrix, which must be positive definite. More...
class  CholeskyCrout
 Compute the Cholesky decomposition using the Cholesky-Crout algorithm, which is very fast; if A is the given matrix we will get L, where A = L*LT. More...
class  Householder
 The Householder transformation is simply an orthogonal transformation designed to make the elements below the diagonal zero. More...
class  Vector
 This class pretty much duplicates std::valarray<T> except it's fully STL container compliant. More...
class  VectorSlice
 A slice of Vector<T> that can be modified. More...
class  ConstVectorSlice
 A Vector<T> slice that doesn't allow modification. More...
class  VectorException
 An exception thrown when there's a problem with a vector. More...
class  ConstVectorBase
 A base class for a vector that does not allow modification of the internal vector. More...
class  RefVectorBaseHelper
 a class to hold the static members of RefVectorBase. More...
class  RefVectorBase
 A vector base class that allows modification of the internal representation. More...
class  VectorSliceBase
 A base class that represents a subset of a vector. More...
class  ConstVectorSliceBase
 A vector slice base class that doesn't allow modification of the internal elements. More...
class  RefVectorSliceBase
 A vector slice base class that does allow modification of the internal elements. More...

Defines

#define VecShortwireComparisonOperator(func, op)
#define VecBaseNewUnaryOperator(func)
#define VecBaseNewBinaryOperator(func, retval)
#define VecBaseNewBinaryTranscendentalOperator(func, retval)

Functions

template<class T, class E>
std::ostream & gpstk::operator<< (std::ostream &s, const ConstMatrixBase< T, E > &a)
 Output operator for ConstMatrixBase classes.
template<class T, class BaseClass>
BaseClass & gpstk::ident (RefMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Turns the square RefMatrixBase matrix into an identity matrix.
template<class T, class BaseClass>
gpstk::trace (const ConstMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Returns the trace of the matrix.
template<class T, class BaseClass>
gpstk::normF (const ConstMatrixBase< T, BaseClass > &m)
 returns the frobenius norm or RSS of the matrix
template<class T, class BaseClass>
gpstk::normCol (const ConstMatrixBase< T, BaseClass > &m)
 returns the column sum norm of the matrix
template<class T, class BaseClass>
gpstk::slowDet (const ConstMatrixBase< T, BaseClass > &l)
 Uses the sum of minor determinates to calculate the whole det.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator && (const ConstMatrixBase< T, BaseClass1 > &l, const ConstMatrixBase< T, BaseClass2 > &r) throw (MatrixException)
 Returns the top to bottom concatenation of Matrices l and r only if they have the same number of columns.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator && (const ConstMatrixBase< T, BaseClass1 > &t, const ConstVectorBase< T, BaseClass2 > &b) throw (MatrixException)
 Returns the top to bottom concatenation of Matrix t and Vector b only if they have the same number of columns.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator && (const ConstVectorBase< T, BaseClass1 > &t, const ConstMatrixBase< T, BaseClass2 > &b) throw (MatrixException)
 Returns the top to bottom concatenation of Vector t and Matrix b only if they have the same number of columns.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator|| (const ConstMatrixBase< T, BaseClass1 > &l, const ConstMatrixBase< T, BaseClass2 > &r) throw (MatrixException)
 Returns the left to right concatenation of l and r only if they have the same number of rows.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator|| (const ConstMatrixBase< T, BaseClass1 > &l, const ConstVectorBase< T, BaseClass2 > &r) throw (MatrixException)
 Returns the left to right concatenation of Matrix l and Vector r only if they have the same number of rows.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator|| (const ConstVectorBase< T, BaseClass1 > &l, const ConstMatrixBase< T, BaseClass2 > &r) throw (MatrixException)
 Returns the left to right concatenation of Vector l and Matrix r only if they have the same number of rows.
template<class T, class BaseClass>
Matrix< T > gpstk::minorMatrix (const ConstMatrixBase< T, BaseClass > &l, size_t row, size_t col) throw (MatrixException)
 Returns the minor matrix of l at element (row, col).
template<class T, class BaseClass>
Matrix< T > gpstk::transpose (const ConstMatrixBase< T, BaseClass > &m)
 Returns a matrix that is m transposed.
template<class T, class BaseClass>
gpstk::det (const ConstMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Uses an LU Decomposition to calculate the determinate of m.
template<class T, class BaseClass>
gpstk::condNum (const ConstMatrixBase< T, BaseClass > &m, T &big, T &small) throw ()
 returns the condition number of the matrix
template<class T, class BaseClass>
gpstk::condNum (const ConstMatrixBase< T, BaseClass > &m) throw ()
 returns the condition number of the matrix, doesnt require big or small..
template<class T>
Matrix< T > gpstk::ident (size_t dim) throw (MatrixException)
 Returns a new dim * dim matrix that's an identity matrix.
template<class T, class BaseClass>
Matrix< T > gpstk::diag (const ConstMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Returns the diagonal matrix of m .
template<class T, class BaseClass>
Matrix< T > gpstk::blkdiag (const ConstMatrixBase< T, BaseClass > &m1, const ConstMatrixBase< T, BaseClass > &m2) throw (MatrixException)
 Block diagonal concatenation of matrix input.
template<class T, class BaseClass>
Matrix< T > gpstk::blkdiag (const ConstMatrixBase< T, BaseClass > &m1, const ConstMatrixBase< T, BaseClass > &m2, const ConstMatrixBase< T, BaseClass > &m3) throw (MatrixException)
template<class T, class BaseClass>
Matrix< T > gpstk::blkdiag (const ConstMatrixBase< T, BaseClass > &m1, const ConstMatrixBase< T, BaseClass > &m2, const ConstMatrixBase< T, BaseClass > &m3, const ConstMatrixBase< T, BaseClass > &m4) throw (MatrixException)
template<class T>
Matrix< T > gpstk::rotation (T angle, int axis) throw (MatrixException)
 Return a rotation matrix [dimensioned 3x3, inverse() = transpose()] for the rotation through angle radians about axis number (= 1, 2 or 3).
template<class T, class BaseClass>
Matrix< T > gpstk::inverse (const ConstMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Inverts the matrix M by Gaussian elimination.
template<class T, class BaseClass>
Matrix< T > gpstk::inverseLUD (const ConstMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Inverts the matrix M by LU decomposition.
template<class T, class BaseClass>
Matrix< T > gpstk::inverseLUD (const ConstMatrixBase< T, BaseClass > &m, T &determ) throw (MatrixException)
 Inverts the matrix M by LU decomposition, and returns determinant as well Throws on non-square and singular matricies.
template<class T, class BaseClass>
Matrix< T > gpstk::inverseSVD (const ConstMatrixBase< T, BaseClass > &m, const T tol=T(1.e-8)) throw (MatrixException)
 Inverts the square matrix M by SVD, editing the singular values using tolerance tol.
template<class T, class BaseClass>
Matrix< T > gpstk::inverseSVD (const ConstMatrixBase< T, BaseClass > &m, T &big, T &small, const T tol=T(1.e-8)) throw (MatrixException)
 Invert the square matrix M by SVD, editing the singular values with tolerance tol, and return the largest and smallest singular values (before any editing).
template<class T, class BaseClass>
Matrix< T > gpstk::inverseSVD (const ConstMatrixBase< T, BaseClass > &m, Vector< T > &sv, const T tol=T(1.e-8)) throw (MatrixException)
 Invert the square matrix M by SVD, editing the singular values using tolerance tol, and return the singular values (before any editing).
template<class T, class BaseClass>
Matrix< T > gpstk::inverseChol (const ConstMatrixBase< T, BaseClass > &m) throw (MatrixException)
 Inverts the square symetrix positive definite matrix M using Cholesky-Crout algorithm.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator * (const ConstMatrixBase< T, BaseClass1 > &l, const ConstMatrixBase< T, BaseClass2 > &r) throw (MatrixException)
 Matrix * Matrix : row by column multiplication of two matricies.
template<class T, class BaseClass1, class BaseClass2>
Vector< T > gpstk::operator * (const ConstMatrixBase< T, BaseClass1 > &m, const ConstVectorBase< T, BaseClass2 > &v) throw (MatrixException)
 Matrix times vector multiplication, returning a vector.
template<class T, class BaseClass1, class BaseClass2>
Vector< T > gpstk::operator * (const ConstVectorBase< T, BaseClass1 > &v, const ConstMatrixBase< T, BaseClass2 > &m) throw (gpstk::MatrixException)
 Vector times matrix multiplication, returning a vector.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator+ (const ConstMatrixBase< T, BaseClass1 > &l, const ConstMatrixBase< T, BaseClass2 > &r) throw (MatrixException)
 Compute sum of two matricies.
template<class T, class BaseClass1, class BaseClass2>
Matrix< T > gpstk::operator- (const ConstMatrixBase< T, BaseClass1 > &l, const ConstMatrixBase< T, BaseClass2 > &r) throw (MatrixException)
 Compute difference of two matricies.
template<class T, class BaseClass>
Matrix< T > gpstk::outer (const ConstVectorBase< T, BaseClass > &v, const ConstVectorBase< T, BaseClass > &w) throw (MatrixException)
 Compute the outer product of two vectors.
template<class T, class BaseClass>
Matrix< T > gpstk::operator * (const ConstMatrixBase< T, BaseClass > &m, const T d)
 Multiplies all the elements of m by d.
template<class T, class BaseClass>
Matrix< T > gpstk::operator * (const T d, const ConstMatrixBase< T, BaseClass > &m)
 Multiplies all the elements of m by d.
template<class T, class BaseClass>
Matrix< T > gpstk::operator/ (const ConstMatrixBase< T, BaseClass > &m, const T d)
 Divides all the elements of m by d.
template<class T, class BaseClass>
Matrix< T > gpstk::operator/ (const T d, const ConstMatrixBase< T, BaseClass > &m)
 Divides all the elements of m by d.
template<class T, class BaseClass>
Matrix< T > gpstk::operator+ (const ConstMatrixBase< T, BaseClass > &m, const T d)
 Adds all the elements of m by d.
template<class T, class BaseClass>
Matrix< T > gpstk::operator+ (const T d, const ConstMatrixBase< T, BaseClass > &m)
 Adds all the elements of m by d.
template<class T, class BaseClass>
Matrix< T > gpstk::operator- (const ConstMatrixBase< T, BaseClass > &m, const T d)
 Subtracts all the elements of m by d.
template<class T, class BaseClass>
Matrix< T > gpstk::operator- (const T d, const ConstMatrixBase< T, BaseClass > &m)
 Subtracts all the elements of m by d.
template<class T, class E>
std::ostream & gpstk::operator<< (std::ostream &s, const ConstVectorBase< T, E > &a)
 Output operator for ConstVectorBase objects.
template<class T, class BaseClass>
gpstk::sum (const ConstVectorBase< T, BaseClass > &l)
 Returns the sum of the elements of the vector.
template<class T, class BaseClass>
gpstk::minabs (const ConstVectorBase< T, BaseClass > &l) throw (VectorException)
 Return the element with smallest absolute value in the vector.
template<class T, class BaseClass>
gpstk::min (const ConstVectorBase< T, BaseClass > &l) throw (VectorException)
 Returns the smallest element of the vector.
template<class T, class BaseClass>
gpstk::maxabs (const ConstVectorBase< T, BaseClass > &l)
 Return the element with largest absolute value in the vector.
template<class T, class BaseClass>
gpstk::max (const ConstVectorBase< T, BaseClass > &l)
 Returns the largest element of the vector.
template<class T, class BaseClass, class BaseClass2>
gpstk::dot (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns the dot product of the two vectors
template<class T, class BaseClass>
gpstk::dot (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns the dot product of a vector and a scalar
template<class T, class BaseClass>
gpstk::dot (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns the dot product of a scalar and a vector
template<class T, class BaseClass>
gpstk::norm (const ConstVectorBase< T, BaseClass > &v)
 returns the norm of the vector
template<class T, class BaseClass, class BaseClass2>
gpstk::Minkowski (const ConstVectorBase< T, BaseClass > &v, const ConstVectorBase< T, BaseClass2 > &w)
 return the Minkowski product of two vectors of length 4.
template<class T, class BaseClass1, class BaseClass2>
gpstk::cosVec (const ConstVectorBase< T, BaseClass1 > &a, const ConstVectorBase< T, BaseClass2 > &b)
 finds the cosine between the two vectors
template<class T, class BaseClass, class BaseClass2>
bool gpstk::eq (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::eq (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::eq (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool gpstk::ne (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::ne (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::ne (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool gpstk::lt (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::lt (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::lt (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool gpstk::gt (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::gt (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::gt (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool gpstk::ge (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::ge (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::ge (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass, class BaseClass2>
bool gpstk::le (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 Performs op on each element of l and r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::le (const ConstVectorBase< T, BaseClass > &l, const T r)
 Performs op on each element of l to r, returning false if any fail.
template<class T, class BaseClass>
bool gpstk::le (const T l, const ConstVectorBase< T, BaseClass > &r)
 Performs op on each element of r to l, returning false if any fail.
template<class T, class BaseClass>
Vector< T > gpstk::abs (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::acos (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::asin (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::atan (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::cos (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::cosh (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::exp (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::log (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::log10 (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::sinh (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::sin (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::sqrt (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::tan (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass>
Vector< T > gpstk::tanh (const ConstVectorBase< T, BaseClass > &x)
 performs func on each element of x, returning a new vector
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator * (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator * (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator * (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator/ (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator/ (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator/ (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator% (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator% (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator% (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator+ (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator+ (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator+ (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator- (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator- (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator- (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator^ (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator^ (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator^ (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator & (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator & (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator & (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::operator| (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< T > gpstk::operator| (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< T > gpstk::operator| (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< bool > gpstk::operator== (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< bool > gpstk::operator== (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< bool > gpstk::operator== (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< bool > gpstk::operator< (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< bool > gpstk::operator< (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< bool > gpstk::operator< (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< bool > gpstk::operator> (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< bool > gpstk::operator> (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< bool > gpstk::operator> (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< bool > gpstk::operator!= (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< bool > gpstk::operator!= (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< bool > gpstk::operator!= (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< bool > gpstk::operator<= (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< bool > gpstk::operator<= (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< bool > gpstk::operator<= (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< bool > gpstk::operator>= (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 returns a retval with each element the result of l[i] func r[i]
template<class T, class BaseClass>
Vector< bool > gpstk::operator>= (const ConstVectorBase< T, BaseClass > &l, const T r)
 returns a retval with each element the result of l[i] func (scalar)r
template<class T, class BaseClass>
Vector< bool > gpstk::operator>= (const T l, const ConstVectorBase< T, BaseClass > &r)
 returns a retval with each element the result of (scalar)l func r[i]
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::atan (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 performs func between each element of l and r, returning a retval
template<class T, class BaseClass>
Vector< T > gpstk::atan (const ConstVectorBase< T, BaseClass > &l, const T r)
 performs func between each element of l and (scalar)r, returning a retval
template<class T, class BaseClass>
Vector< T > gpstk::atan (const T l, const ConstVectorBase< T, BaseClass > &r)
 performs func between (scalar)l and each element of r, returning a retval
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::pow (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r)
 performs func between each element of l and r, returning a retval
template<class T, class BaseClass>
Vector< T > gpstk::pow (const ConstVectorBase< T, BaseClass > &l, const T r)
 performs func between each element of l and (scalar)r, returning a retval
template<class T, class BaseClass>
Vector< T > gpstk::pow (const T l, const ConstVectorBase< T, BaseClass > &r)
 performs func between (scalar)l and each element of r, returning a retval
template<class T, class BaseClass, class BaseClass2>
Vector< T > gpstk::cross (const ConstVectorBase< T, BaseClass > &l, const ConstVectorBase< T, BaseClass2 > &r) throw (VectorException)
 finds the cross product between l and r
template<class T, class BaseClass>
Vector< T > gpstk::normalize (const ConstVectorBase< T, BaseClass > &l)
 returns a new vector with the normalized version of l
template<class T, class BaseClass>
gpstk::RSS (const ConstVectorBase< T, BaseClass > &l)
 returns the root-sum-square of the elements of l
template<class T, class BaseClass>
gpstk::RMS (const ConstVectorBase< T, BaseClass > &l)
 returns the root-mean-square of the elements of l
 gpstk::Matrix::Matrix ()
 default constructor
 gpstk::Matrix::Matrix (size_t rows, size_t cols)
 constructor given an initial size
 gpstk::Matrix::Matrix (size_t rows, size_t cols, T initialValue)
 constructor for an initial size and value
 gpstk::Matrix::Matrix (size_t rows, size_t cols, const T *vec)
 copies out the contents of vec to initialize the matrix
MatrixRowSlice< T > gpstk::Matrix::rowRef (size_t rowNum, const std::slice &s)
 A reference slice of a row with a given std::slice.
MatrixRowSlice< T > gpstk::Matrix::rowRef (size_t rowNum, size_t colNum=0)
 A reference slice of a row with a starting column (i.e. sub-row).
ConstMatrixRowSlice< T > gpstk::Matrix::row (size_t rowNum, const std::slice &s) const
 A const reference slice of a row with a given std::slice.
ConstMatrixRowSlice< T > gpstk::Matrix::row (size_t rowNum, size_t colNum=0) const
 A const reference slice of a row with a starting column (i.e. sub-row).
MatrixColSlice< T > gpstk::Matrix::colRef (size_t colNum, const std::slice &s)
 A reference column with a given slice.
MatrixColSlice< T > gpstk::Matrix::colRef (size_t colNum, size_t rowNum=0)
 A reference column with a starting row number (i.e. sub-column).
ConstMatrixColSlice< T > gpstk::Matrix::col (size_t colNum, const std::slice &s) const
 A const reference column with a given slice.
ConstMatrixColSlice< T > gpstk::Matrix::col (size_t colNum, size_t rowNum=0) const
 A const reference column with a starting row number (i.e. sub-column).
Matrix & gpstk::Matrix::resize (size_t rows, size_t cols)
 Resizes the matrix to rows*cols.
Matrix & gpstk::Matrix::resize (size_t rows, size_t cols, const T initialValue)


Define Documentation

#define VecBaseNewBinaryOperator func,
retval   ) 
 

Definition at line 67 of file VectorOperators.hpp.

#define VecBaseNewBinaryTranscendentalOperator func,
retval   ) 
 

Value:

 \
   template <class T, class BaseClass, class BaseClass2> \
   retval func(const ConstVectorBase<T, BaseClass>& l, \
               const ConstVectorBase<T, BaseClass2>& r) \
   { \
      retval toReturn(l.size()); \
      size_t i; \
      for (i=0; i < l.size(); i++) toReturn[i] = func(l[i], r[i]); \
      return toReturn; \
   } \ \
template <class T, class BaseClass> \
retval func(const ConstVectorBase<T, BaseClass>& l, const T r) \
{ \
   retval toReturn(l.size()); \
   size_t i; \
   for (i=0; i < l.size(); i++) toReturn[i] = func(l[i], r); \
   return toReturn; \
} \ \
template <class T, class BaseClass> \
retval func(const T l, const ConstVectorBase<T, BaseClass>& r) \
{ \
   retval toReturn(r.size()); \
   size_t i; \
   for (i=0; i < r.size(); i++) toReturn[i] = func(l, r[i]); \
   return toReturn; \
}

Definition at line 118 of file VectorOperators.hpp.

#define VecBaseNewUnaryOperator func   ) 
 

Value:

 \
   template <class T, class BaseClass> \
   Vector<T> func(const ConstVectorBase<T, BaseClass>& x) \
      { \
         BaseClass toReturn(x.size()); \
         size_t i; for (i=0; i < x.size(); i++) toReturn[i] = func(x[i]); \
         return toReturn; \
      }

Definition at line 41 of file VectorOperators.hpp.

#define VecShortwireComparisonOperator func,
op   ) 
 

Definition at line 234 of file VectorBaseOperators.hpp.


Function Documentation

Vector<T> abs const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 52 of file VectorOperators.hpp.

Referenced by LinearClockModel::addEpoch(), Differentiator::Compute(), Color::dist(), ObsReader::estimateObsInterval(), TabularEphemerisStore::getAccel(), IonexData::getIndex(), TabularEphemerisStore::getXvt(), gpstk::kummerFunc(), ProblemSatFilter::loadSatelliteProblemFile(), gpstk::lower_gamma(), gpstk::makeMDPEpoch(), DDid::operator!=(), OWid::operator==(), SDid::operator==(), DDid::operator==(), Synchronize::Process(), EclipsedSatFilter::Process(), Decimate::Process(), PRSolution::RAIMCompute(), SP3Data::reallyGetRecord(), and ARSimple::resolveIntegerAmbiguity().

Vector<T> acos const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 53 of file VectorOperators.hpp.

Referenced by HarrisPriesterDrag::computeDensity(), SolarRadiationPressure::getShadowFunction(), and SolarRadiationPressure::partial_illumination().

Vector<T> asin const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 54 of file VectorOperators.hpp.

Referenced by KeplerOrbit::F(), Position::getIonosphericPiercePoint(), SolarRadiationPressure::getShadowFunction(), IonexStore::iono_mapping_function(), SolarRadiationPressure::partial_illumination(), and gpstk::SolarPosition().

Vector<T> atan const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

performs func between (scalar)l and each element of r, returning a retval

Definition at line 148 of file VectorOperators.hpp.

Referenced by Axis::Axis(), StudentDistribution::cdf(), gpstk::CrudeSolarPosition(), and ReferenceFrames::enuToAzElDt().

Vector<T> atan const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

performs func between each element of l and (scalar)r, returning a retval

Definition at line 148 of file VectorOperators.hpp.

Vector<T> atan const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

performs func between each element of l and r, returning a retval

Definition at line 148 of file VectorOperators.hpp.

Vector<T> atan const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 55 of file VectorOperators.hpp.

Matrix<T> blkdiag const ConstMatrixBase< T, BaseClass > &  m1,
const ConstMatrixBase< T, BaseClass > &  m2,
const ConstMatrixBase< T, BaseClass > &  m3,
const ConstMatrixBase< T, BaseClass > &  m4
throw (MatrixException) [inline]
 

Definition at line 433 of file MatrixOperators.hpp.

Referenced by gpstk::blkdiag().

Matrix<T> blkdiag const ConstMatrixBase< T, BaseClass > &  m1,
const ConstMatrixBase< T, BaseClass > &  m2,
const ConstMatrixBase< T, BaseClass > &  m3
throw (MatrixException) [inline]
 

Definition at line 426 of file MatrixOperators.hpp.

References gpstk::blkdiag().

Matrix<T> blkdiag const ConstMatrixBase< T, BaseClass > &  m1,
const ConstMatrixBase< T, BaseClass > &  m2
throw (MatrixException) [inline]
 

Block diagonal concatenation of matrix input.

Definition at line 392 of file MatrixOperators.hpp.

References GPSTK_THROW.

ConstMatrixColSlice< T > col size_t  colNum,
size_t  rowNum = 0
const [inline, inherited]
 

A const reference column with a starting row number (i.e. sub-column).

Definition at line 115 of file MatrixImplementation.hpp.

ConstMatrixColSlice< T > col size_t  colNum,
const std::slice &  s
const [inline, inherited]
 

A const reference column with a given slice.

Definition at line 108 of file MatrixImplementation.hpp.

MatrixColSlice< T > colRef size_t  colNum,
size_t  rowNum = 0
[inline, inherited]
 

A reference column with a starting row number (i.e. sub-column).

Definition at line 101 of file MatrixImplementation.hpp.

References Matrix::rows().

MatrixColSlice< T > colRef size_t  colNum,
const std::slice &  s
[inline, inherited]
 

A reference column with a given slice.

Definition at line 95 of file MatrixImplementation.hpp.

T condNum const ConstMatrixBase< T, BaseClass > &  m  )  throw () [inline]
 

returns the condition number of the matrix, doesnt require big or small..

Definition at line 340 of file MatrixOperators.hpp.

Referenced by MatrixTest2(), and MatrixTest3().

T condNum const ConstMatrixBase< T, BaseClass > &  m,
T &  big,
T &  small
throw () [inline]
 

returns the condition number of the matrix

Definition at line 322 of file MatrixOperators.hpp.

Referenced by MatrixTest8(), and MatrixTest9().

Vector<T> cos const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Examples:
example11.cpp, and example7.cpp.

Definition at line 56 of file VectorOperators.hpp.

Referenced by Position::azimuthGeodetic(), ReferenceFrames::BLH2XYZ(), NEDUtil::compute(), ENUUtil::compute(), HarrisPriesterDrag::computeDensity(), EOPPrediction::computeEOP(), GGTropModel::dry_mapping_function(), SimpleTropModel::dry_mapping_function(), NBTropModel::dry_zenith_delay(), KeplerOrbit::EccentricAnomaly(), Position::elevationGeodetic(), ReferenceFrames::enuMatrix(), IonoModel::getCorrection(), TestEOM::getDerivatives(), OceanLoading::getOceanLoading(), EarthOceanTide::getOceanTide(), MoonPosition::getPositionCIS(), EarthSolidTide::getSolidTide(), Msise00Drag::gts7(), ReferenceFrames::iauEqeq94(), gpstk::iauEqeq94(), gpstk::iauNut80Args(), IonexStore::iono_mapping_function(), ReferenceFrames::J2kToECEFMatrix(), gpstk::J2kToECEFMatrix(), gpstk::LunarPosition(), KeplerOrbit::MeanAnomaly(), gpstk::moonJ2kPosition(), ReferenceFrames::nutationAngles(), gpstk::nutationAngles(), ReferenceFrames::Rx(), gpstk::Rx(), ReferenceFrames::Ry(), gpstk::Ry(), ReferenceFrames::Rz(), gpstk::Rz(), gpstk::SolarPosition(), KeplerOrbit::State(), KeplerOrbit::StatePartials(), gpstk::sunJ2kPosition(), KeplerOrbit::TrueAnomaly(), GGTropModel::wet_mapping_function(), SimpleTropModel::wet_mapping_function(), NBTropModel::wet_zenith_delay(), and ReferenceFrames::XYZ2ENU().

Vector<T> cosh const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 57 of file VectorOperators.hpp.

T cosVec const ConstVectorBase< T, BaseClass1 > &  a,
const ConstVectorBase< T, BaseClass2 > &  b
[inline]
 

finds the cosine between the two vectors

Definition at line 221 of file VectorBaseOperators.hpp.

References gpstk::norm().

Referenced by MatrixTest1().

Vector<T> cross const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
throw (VectorException)
 

finds the cross product between l and r

Definition at line 153 of file VectorOperators.hpp.

References GPSTK_THROW.

Referenced by HarrisPriesterDrag::computeDensity(), AtmosphericDrag::doCompute(), KeplerOrbit::Elements(), and KeplerOrbit::StatePartials().

T det const ConstMatrixBase< T, BaseClass > &  m  )  throw (MatrixException) [inline]
 

Uses an LU Decomposition to calculate the determinate of m.

Definition at line 302 of file MatrixOperators.hpp.

References GPSTK_RETHROW.

Referenced by RelativityEffect::doCompute().

Matrix<T> diag const ConstMatrixBase< T, BaseClass > &  m  )  throw (MatrixException) [inline]
 

Returns the diagonal matrix of m .

Definition at line 370 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by ARBase::computeFloatAmbiguity().

T dot const T  l,
const ConstVectorBase< T, BaseClass > &  r
[inline]
 

returns the dot product of a scalar and a vector

Definition at line 177 of file VectorBaseOperators.hpp.

References gpstk::sum().

Referenced by MatrixTest1(), and VectorTest().

T dot const ConstVectorBase< T, BaseClass > &  l,
const T  r
[inline]
 

returns the dot product of a vector and a scalar

Definition at line 164 of file VectorBaseOperators.hpp.

References gpstk::sum().

T dot const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
[inline]
 

returns the dot product of the two vectors

Definition at line 150 of file VectorBaseOperators.hpp.

References gpstk::sum().

Referenced by HarrisPriesterDrag::computeDensity(), SphericalHarmonicGravity::computeVW(), Triple::cosVector(), RelativityEffect::doCompute(), KeplerOrbit::Elements(), KeplerOrbit::FindEta(), SolarRadiationPressure::getShadowFunction(), and SolarRadiationPressure::partial_illumination().

bool eq const T  l,
const ConstVectorBase< T, BaseClass > &  r
[inline]
 

Performs op on each element of r to l, returning false if any fail.

Definition at line 270 of file VectorBaseOperators.hpp.

bool eq const ConstVectorBase< T, BaseClass > &  l,
const T  r
[inline]
 

Performs op on each element of l to r, returning false if any fail.

Definition at line 270 of file VectorBaseOperators.hpp.

bool eq const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
[inline]
 

Performs op on each element of l and r, returning false if any fail.

Definition at line 270 of file VectorBaseOperators.hpp.

Vector<T> exp const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 58 of file VectorOperators.hpp.

Referenced by HarrisPriesterDrag::computeDensity(), CiraExponentialDrag::computeDensity(), NBTropModel::dry_zenith_delay(), gpstk::erf3(), gpstk::erf4(), gpstk::gamma(), Msise00Drag::gts7(), gpstk::incompletebetaps(), gpstk::inverf(), gpstk::lower_gamma(), StudentDistribution::pdf(), GaussianDistribution::pdf(), Chi2Distribution::pdf(), RandExpCor(), SaasTropModel::setWeather(), NBTropModel::setWeather(), GGTropModel::setWeather(), SimpleTropModel::setWeather(), AshtechMBEN::code_block::snr(), TropModel::weatherByStandardAtmosphereModel(), and NBTropModel::wet_zenith_delay().

bool ge const T  l,
const ConstVectorBase< T, BaseClass > &  r
[inline]
 

Performs op on each element of r to l, returning false if any fail.

Definition at line 274 of file VectorBaseOperators.hpp.

bool ge const ConstVectorBase< T, BaseClass > &  l,
const T  r
[inline]
 

Performs op on each element of l to r, returning false if any fail.

Definition at line 274 of file VectorBaseOperators.hpp.

bool ge const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
[inline]
 

Performs op on each element of l and r, returning false if any fail.

Definition at line 274 of file VectorBaseOperators.hpp.

Referenced by Position::asGeodetic(), Position::azimuth(), Position::azimuthGeodetic(), Position::elevation(), Position::elevationGeodetic(), Position::Position(), gpstk::range(), Position::setGeocentric(), Position::setGeodetic(), Position::setGeoidModel(), Position::setSpherical(), and Position::setToString().

bool gt const T  l,
const ConstVectorBase< T, BaseClass > &  r
[inline]
 

Performs op on each element of r to l, returning false if any fail.

Definition at line 273 of file VectorBaseOperators.hpp.

bool gt const ConstVectorBase< T, BaseClass > &  l,
const T  r
[inline]
 

Performs op on each element of l to r, returning false if any fail.

Definition at line 273 of file VectorBaseOperators.hpp.

bool gt const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
[inline]
 

Performs op on each element of l and r, returning false if any fail.

Definition at line 273 of file VectorBaseOperators.hpp.

Matrix<T> ident size_t  dim  )  throw (MatrixException) [inline]
 

Returns a new dim * dim matrix that's an identity matrix.

Definition at line 351 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by gpstk::inverse().

BaseClass& ident RefMatrixBase< T, BaseClass > &  m  )  throw (MatrixException)
 

Turns the square RefMatrixBase matrix into an identity matrix.

Definition at line 67 of file MatrixBaseOperators.hpp.

References GPSTK_THROW.

Matrix<T> inverse const ConstMatrixBase< T, BaseClass > &  m  )  throw (MatrixException) [inline]
 

Inverts the matrix M by Gaussian elimination.

Throws on non-square and singular matricies.

Definition at line 470 of file MatrixOperators.hpp.

References GPSTK_THROW, and gpstk::ident().

Referenced by SRI::addAPriori(), SRIleastSquares::dataUpdate(), gpstk::DMsmootherUpdateWithControl(), MatrixTest1(), MatrixTest2(), MatrixTest3(), MatrixTest8(), MatrixTest9(), and SRIFilter::measurementUpdate().

Matrix<T> inverseChol const ConstMatrixBase< T, BaseClass > &  m  )  throw (MatrixException) [inline]
 

Inverts the square symetrix positive definite matrix M using Cholesky-Crout algorithm.

Very fast and useful when M comes from using a Least Mean-Square (LMS) or Weighted Least Mean-Square (WLMS) method.

Definition at line 728 of file MatrixOperators.hpp.

References Cholesky::L, and gpstk::transpose().

Referenced by SolverWMS::Compute(), SolverPPP::Compute(), SolverLMS::Compute(), CodeKalmanSolver::Compute(), Bancroft::Compute(), and ComputeDOP::Process().

Matrix<T> inverseLUD const ConstMatrixBase< T, BaseClass > &  m,
T &  determ
throw (MatrixException) [inline]
 

Inverts the matrix M by LU decomposition, and returns determinant as well Throws on non-square and singular matricies.

Definition at line 570 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by MatrixTest8().

Matrix<T> inverseLUD const ConstMatrixBase< T, BaseClass > &  m  )  throw (MatrixException) [inline]
 

Inverts the matrix M by LU decomposition.

Throws on non-square and singular matricies.

Definition at line 542 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by ARLambda::lambda().

Matrix<T> inverseSVD const ConstMatrixBase< T, BaseClass > &  m,
Vector< T > &  sv,
const T  tol = T(1.e-8)
throw (MatrixException) [inline]
 

Invert the square matrix M by SVD, editing the singular values using tolerance tol, and return the singular values (before any editing).

Throws only on input of the zero matrix.

Definition at line 684 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by ARBase::computeFloatAmbiguity(), MatrixTest8(), and SRI::transform().

Matrix<T> inverseSVD const ConstMatrixBase< T, BaseClass > &  m,
T &  big,
T &  small,
const T  tol = T(1.e-8)
throw (MatrixException) [inline]
 

Invert the square matrix M by SVD, editing the singular values with tolerance tol, and return the largest and smallest singular values (before any editing).

Throws only on input of the zero matrix.

Definition at line 640 of file MatrixOperators.hpp.

References GPSTK_THROW.

Matrix<T> inverseSVD const ConstMatrixBase< T, BaseClass > &  m,
const T  tol = T(1.e-8)
throw (MatrixException) [inline]
 

Inverts the square matrix M by SVD, editing the singular values using tolerance tol.

Throws only on input of the zero matrix.

Definition at line 602 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by PRSolution::AutonomousPRSolution().

bool le const T  l,
const ConstVectorBase< T, BaseClass > &  r
[inline]
 

Performs op on each element of r to l, returning false if any fail.

Definition at line 275 of file VectorBaseOperators.hpp.

bool le const ConstVectorBase< T, BaseClass > &  l,
const T  r
[inline]
 

Performs op on each element of l to r, returning false if any fail.

Definition at line 275 of file VectorBaseOperators.hpp.

bool le const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
[inline]
 

Performs op on each element of l and r, returning false if any fail.

Definition at line 275 of file VectorBaseOperators.hpp.

Vector<T> log const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 59 of file VectorOperators.hpp.

Referenced by Chi2Distribution::pdf().

Vector<T> log10 const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 60 of file VectorOperators.hpp.

Referenced by Msise00Drag::ghp7(), and AshtechMBEN::code_block::snr().

bool lt const T  l,
const ConstVectorBase< T, BaseClass > &  r
[inline]
 

Performs op on each element of r to l, returning false if any fail.

Definition at line 272 of file VectorBaseOperators.hpp.

bool lt const ConstVectorBase< T, BaseClass > &  l,
const T  r
[inline]
 

Performs op on each element of l to r, returning false if any fail.

Definition at line 272 of file VectorBaseOperators.hpp.

bool lt const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
[inline]
 

Performs op on each element of l and r, returning false if any fail.

Definition at line 272 of file VectorBaseOperators.hpp.

Matrix size_t  rows,
size_t  cols,
const T *  vec
[inherited]
 

copies out the contents of vec to initialize the matrix

Definition at line 59 of file MatrixImplementation.hpp.

References RefMatrixBase< T, Matrix< T > >::assignFrom().

Matrix size_t  rows,
size_t  cols,
initialValue
[inherited]
 

constructor for an initial size and value

Definition at line 53 of file MatrixImplementation.hpp.

Matrix size_t  rows,
size_t  cols
[inherited]
 

constructor given an initial size

Definition at line 48 of file MatrixImplementation.hpp.

Matrix  )  [inherited]
 

default constructor

Definition at line 42 of file MatrixImplementation.hpp.

T max const ConstVectorBase< T, BaseClass > &  l  )  [inline]
 

Returns the largest element of the vector.

Definition at line 133 of file VectorBaseOperators.hpp.

References GPSTK_THROW.

Referenced by CommandOptionParser::displayUsage(), main(), BivarStats::operator+=(), gpstk::stats(), and VectorTest().

T maxabs const ConstVectorBase< T, BaseClass > &  l  )  [inline]
 

Return the element with largest absolute value in the vector.

Definition at line 116 of file VectorBaseOperators.hpp.

References ABS, and GPSTK_THROW.

T min const ConstVectorBase< T, BaseClass > &  l  )  throw (VectorException) [inline]
 

Returns the smallest element of the vector.

Definition at line 99 of file VectorBaseOperators.hpp.

References GPSTK_THROW.

Referenced by SeriesList::drawLegend(), EngEphemeris::getTot(), YumaData::lineParser(), BivarStats::operator+=(), AshtechData::readHeader(), gpstk::stats(), and VectorTest().

T minabs const ConstVectorBase< T, BaseClass > &  l  )  throw (VectorException) [inline]
 

Return the element with smallest absolute value in the vector.

Definition at line 82 of file VectorBaseOperators.hpp.

References ABS, and GPSTK_THROW.

T Minkowski const ConstVectorBase< T, BaseClass > &  v,
const ConstVectorBase< T, BaseClass2 > &  w
[inline]
 

return the Minkowski product of two vectors of length 4.

Definition at line 208 of file VectorBaseOperators.hpp.

References GPSTK_THROW.

Referenced by PRSolution::AutonomousPRSolution(), Bancroft::Compute(), and VectorTest().

Matrix<T> minorMatrix const ConstMatrixBase< T, BaseClass > &  l,
size_t  row,
size_t  col
throw (MatrixException) [inline]
 

Returns the minor matrix of l at element (row, col).

A minor matrix is the same matrix as l but with row row and col col removed.

Definition at line 223 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by gpstk::slowDet().

bool ne const T  l,
const ConstVectorBase< T, BaseClass > &  r
[inline]
 

Performs op on each element of r to l, returning false if any fail.

Definition at line 271 of file VectorBaseOperators.hpp.

bool ne const ConstVectorBase< T, BaseClass > &  l,
const T  r
[inline]
 

Performs op on each element of l to r, returning false if any fail.

Definition at line 271 of file VectorBaseOperators.hpp.

bool ne const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
[inline]
 

Performs op on each element of l and r, returning false if any fail.

Definition at line 271 of file VectorBaseOperators.hpp.

Referenced by GDCPass::GFslipFix().

T norm const ConstVectorBase< T, BaseClass > &  v  )  [inline]
 

returns the norm of the vector

Definition at line 190 of file VectorBaseOperators.hpp.

References ABS, and SQRT.

Referenced by SolarRadiationPressure::accelSRP(), PRSolution::AutonomousPRSolution(), HarrisPriesterDrag::computeDensity(), CiraExponentialDrag::computeDensity(), gpstk::cosVec(), SunForce::doCompute(), SolarRadiationPressure::doCompute(), RelativityEffect::doCompute(), MoonForce::doCompute(), AtmosphericDrag::doCompute(), GGHeightTropModel::dry_mapping_function(), KeplerOrbit::Elements(), ReferenceFrames::enuToAzElDt(), KeplerOrbit::FindEta(), SolarRadiationPressure::getShadowFunction(), EarthSolidTide::getSolidTide(), MatrixTest1(), gpstk::normalize(), SolarRadiationPressure::partial_illumination(), GeodeticFrames::ResolveRotation(), gpstk::RMS(), gpstk::RSS(), KeplerOrbit::StatePartials(), VectorTest(), and GGHeightTropModel::wet_mapping_function().

Vector<T> normalize const ConstVectorBase< T, BaseClass > &  l  ) 
 

returns a new vector with the normalized version of l

Definition at line 170 of file VectorOperators.hpp.

References gpstk::norm().

Referenced by CommonTime::add().

T normCol const ConstMatrixBase< T, BaseClass > &  m  )  [inline]
 

returns the column sum norm of the matrix

Definition at line 120 of file MatrixBaseOperators.hpp.

References ABS, and gpstk::sum().

T normF const ConstMatrixBase< T, BaseClass > &  m  )  [inline]
 

returns the frobenius norm or RSS of the matrix

Definition at line 106 of file MatrixBaseOperators.hpp.

References SQRT, and gpstk::sum().

Referenced by GeodeticFrames::ResolveRotation().

Vector<T> operator & const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 108 of file VectorOperators.hpp.

Vector<T> operator & const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 108 of file VectorOperators.hpp.

Vector<T> operator & const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 108 of file VectorOperators.hpp.

Matrix<T> operator && const ConstVectorBase< T, BaseClass1 > &  t,
const ConstMatrixBase< T, BaseClass2 > &  b
throw (MatrixException) [inline]
 

Returns the top to bottom concatenation of Vector t and Matrix b only if they have the same number of columns.

Definition at line 106 of file MatrixOperators.hpp.

References GPSTK_THROW.

Matrix<T> operator && const ConstMatrixBase< T, BaseClass1 > &  t,
const ConstVectorBase< T, BaseClass2 > &  b
throw (MatrixException) [inline]
 

Returns the top to bottom concatenation of Matrix t and Vector b only if they have the same number of columns.

Definition at line 77 of file MatrixOperators.hpp.

References GPSTK_THROW.

Matrix<T> operator && const ConstMatrixBase< T, BaseClass1 > &  l,
const ConstMatrixBase< T, BaseClass2 > &  r
throw (MatrixException) [inline]
 

Returns the top to bottom concatenation of Matrices l and r only if they have the same number of columns.

Definition at line 47 of file MatrixOperators.hpp.

References GPSTK_THROW.

Vector<T> operator * const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 102 of file VectorOperators.hpp.

Vector<T> operator * const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 102 of file VectorOperators.hpp.

Vector<T> operator * const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 102 of file VectorOperators.hpp.

Matrix<T> operator * const T  d,
const ConstMatrixBase< T, BaseClass > &  m
[inline]
 

Multiplies all the elements of m by d.

Definition at line 904 of file MatrixOperators.hpp.

Matrix<T> operator * const ConstMatrixBase< T, BaseClass > &  m,
const T  d
[inline]
 

Multiplies all the elements of m by d.

Definition at line 896 of file MatrixOperators.hpp.

Vector<T> operator * const ConstVectorBase< T, BaseClass1 > &  v,
const ConstMatrixBase< T, BaseClass2 > &  m
throw (gpstk::MatrixException) [inline]
 

Vector times matrix multiplication, returning a vector.

Definition at line 808 of file MatrixOperators.hpp.

References GPSTK_THROW.

Vector<T> operator * const ConstMatrixBase< T, BaseClass1 > &  m,
const ConstVectorBase< T, BaseClass2 > &  v
throw (MatrixException) [inline]
 

Matrix times vector multiplication, returning a vector.

Definition at line 784 of file MatrixOperators.hpp.

References GPSTK_THROW.

Matrix<T> operator * const ConstMatrixBase< T, BaseClass1 > &  l,
const ConstMatrixBase< T, BaseClass2 > &  r
throw (MatrixException) [inline]
 

Matrix * Matrix : row by column multiplication of two matricies.

Definition at line 760 of file MatrixOperators.hpp.

References GPSTK_THROW.

Vector<bool> operator!= const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 114 of file VectorOperators.hpp.

Referenced by ProcessingException::~ProcessingException().

Vector<bool> operator!= const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 114 of file VectorOperators.hpp.

Vector<bool> operator!= const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 114 of file VectorOperators.hpp.

Vector<T> operator% const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 104 of file VectorOperators.hpp.

Vector<T> operator% const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 104 of file VectorOperators.hpp.

Vector<T> operator% const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 104 of file VectorOperators.hpp.

Vector<T> operator+ const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 105 of file VectorOperators.hpp.

Vector<T> operator+ const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 105 of file VectorOperators.hpp.

Vector<T> operator+ const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 105 of file VectorOperators.hpp.

Matrix<T> operator+ const T  d,
const ConstMatrixBase< T, BaseClass > &  m
[inline]
 

Adds all the elements of m by d.

Definition at line 936 of file MatrixOperators.hpp.

Matrix<T> operator+ const ConstMatrixBase< T, BaseClass > &  m,
const T  d
[inline]
 

Adds all the elements of m by d.

Definition at line 928 of file MatrixOperators.hpp.

Matrix<T> operator+ const ConstMatrixBase< T, BaseClass1 > &  l,
const ConstMatrixBase< T, BaseClass2 > &  r
throw (MatrixException) [inline]
 

Compute sum of two matricies.

Definition at line 833 of file MatrixOperators.hpp.

References GPSTK_THROW.

Vector<T> operator- const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 106 of file VectorOperators.hpp.

Referenced by Epoch::operator<(), and Epoch::operator>().

Vector<T> operator- const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 106 of file VectorOperators.hpp.

Vector<T> operator- const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 106 of file VectorOperators.hpp.

Matrix<T> operator- const T  d,
const ConstMatrixBase< T, BaseClass > &  m
[inline]
 

Subtracts all the elements of m by d.

Definition at line 952 of file MatrixOperators.hpp.

Matrix<T> operator- const ConstMatrixBase< T, BaseClass > &  m,
const T  d
[inline]
 

Subtracts all the elements of m by d.

Definition at line 944 of file MatrixOperators.hpp.

Matrix<T> operator- const ConstMatrixBase< T, BaseClass1 > &  l,
const ConstMatrixBase< T, BaseClass2 > &  r
throw (MatrixException) [inline]
 

Compute difference of two matricies.

Definition at line 856 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by DayTime::operator<(), and DayTime::operator>().

Vector<T> operator/ const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 103 of file VectorOperators.hpp.

Vector<T> operator/ const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 103 of file VectorOperators.hpp.

Vector<T> operator/ const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 103 of file VectorOperators.hpp.

Matrix<T> operator/ const T  d,
const ConstMatrixBase< T, BaseClass > &  m
[inline]
 

Divides all the elements of m by d.

Definition at line 920 of file MatrixOperators.hpp.

Matrix<T> operator/ const ConstMatrixBase< T, BaseClass > &  m,
const T  d
[inline]
 

Divides all the elements of m by d.

Definition at line 912 of file MatrixOperators.hpp.

Vector<bool> operator< const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 112 of file VectorOperators.hpp.

Referenced by GPSWeekZcount::operator<(), GPSWeekSecond::operator<(), TypeID::operator<=(), SourceID::operator<=(), SatID::operator<=(), ObsID::operator<=(), GPSWeekZcount::operator<=(), TypeID::operator>(), SourceID::operator>(), SatID::operator>(), ObsID::operator>(), TypeID::operator>=(), SourceID::operator>=(), SatID::operator>=(), ObsID::operator>=(), GPSWeekZcount::operator>=(), and Epoch::operator>=().

Vector<bool> operator< const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 112 of file VectorOperators.hpp.

Vector<bool> operator< const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 112 of file VectorOperators.hpp.

std::ostream& operator<< std::ostream &  s,
const ConstVectorBase< T, E > &  a
 

Output operator for ConstVectorBase objects.

Definition at line 56 of file VectorBaseOperators.hpp.

std::ostream& operator<< std::ostream &  s,
const ConstMatrixBase< T, E > &  a
 

Output operator for ConstMatrixBase classes.

Definition at line 46 of file MatrixBaseOperators.hpp.

Vector<bool> operator<= const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 115 of file VectorOperators.hpp.

Referenced by GPSWeekZcount::operator>().

Vector<bool> operator<= const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 115 of file VectorOperators.hpp.

Vector<bool> operator<= const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 115 of file VectorOperators.hpp.

Referenced by YDSTime::operator>(), UnixTime::operator>(), MJD::operator>(), JulianDate::operator>(), GPSWeekSecond::operator>(), CommonTime::operator>(), CivilTime::operator>(), and ANSITime::operator>().

Vector<bool> operator== const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 111 of file VectorOperators.hpp.

Referenced by Variable::operator!=(), TypeID::operator!=(), SourceID::operator!=(), SatID::operator!=(), ObsID::operator!=(), IonoModel::operator!=(), GPSWeekZcount::operator!=(), Epoch::operator!=(), TypeID::operator<=(), SourceID::operator<=(), SatID::operator<=(), ObsID::operator<=(), GPSWeekZcount::operator<=(), ProcessingClass::operator==(), GPSWeekZcount::operator==(), GPSWeekSecond::operator==(), TypeID::operator>(), SourceID::operator>(), SatID::operator>(), ObsID::operator>(), and ProcessingException::~ProcessingException().

Vector<bool> operator== const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 111 of file VectorOperators.hpp.

Vector<bool> operator== const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 111 of file VectorOperators.hpp.

Vector<bool> operator> const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 113 of file VectorOperators.hpp.

Referenced by GPSWeekZcount::operator<(), GPSWeekSecond::operator<(), and Epoch::operator<=().

Vector<bool> operator> const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 113 of file VectorOperators.hpp.

Vector<bool> operator> const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 113 of file VectorOperators.hpp.

Referenced by GPSZcount::operator<=(), and DayTime::operator<=().

Vector<bool> operator>= const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 116 of file VectorOperators.hpp.

Vector<bool> operator>= const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 116 of file VectorOperators.hpp.

Vector<bool> operator>= const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 116 of file VectorOperators.hpp.

Vector<T> operator^ const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 107 of file VectorOperators.hpp.

Vector<T> operator^ const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 107 of file VectorOperators.hpp.

Vector<T> operator^ const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 107 of file VectorOperators.hpp.

Vector<T> operator| const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

returns a retval with each element the result of (scalar)l func r[i]

Definition at line 109 of file VectorOperators.hpp.

Vector<T> operator| const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

returns a retval with each element the result of l[i] func (scalar)r

Definition at line 109 of file VectorOperators.hpp.

Vector<T> operator| const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

returns a retval with each element the result of l[i] func r[i]

Definition at line 109 of file VectorOperators.hpp.

Matrix<T> operator|| const ConstVectorBase< T, BaseClass1 > &  l,
const ConstMatrixBase< T, BaseClass2 > &  r
throw (MatrixException) [inline]
 

Returns the left to right concatenation of Vector l and Matrix r only if they have the same number of rows.

Definition at line 194 of file MatrixOperators.hpp.

References GPSTK_THROW.

Matrix<T> operator|| const ConstMatrixBase< T, BaseClass1 > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
throw (MatrixException) [inline]
 

Returns the left to right concatenation of Matrix l and Vector r only if they have the same number of rows.

Definition at line 165 of file MatrixOperators.hpp.

References GPSTK_THROW.

Matrix<T> operator|| const ConstMatrixBase< T, BaseClass1 > &  l,
const ConstMatrixBase< T, BaseClass2 > &  r
throw (MatrixException) [inline]
 

Returns the left to right concatenation of l and r only if they have the same number of rows.

Definition at line 135 of file MatrixOperators.hpp.

References GPSTK_THROW.

Matrix<T> outer const ConstVectorBase< T, BaseClass > &  v,
const ConstVectorBase< T, BaseClass > &  w
throw (MatrixException) [inline]
 

Compute the outer product of two vectors.

Definition at line 879 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by PolyFit< double >::Add(), gpstk::DMsmootherUpdateWithControl(), and MatrixTest1().

Vector<T> pow const T  l,
const ConstVectorBase< T, BaseClass > &  r
 

performs func between (scalar)l and each element of r, returning a retval

Definition at line 149 of file VectorOperators.hpp.

Referenced by HarrisPriesterDrag::computeDensity(), MOPSTropModel::dry_zenith_delay(), GGHeightTropModel::dry_zenith_delay(), KeplerOrbit::Elements(), KeplerOrbit::F(), KeplerOrbit::FindEta(), gpstk::gamma(), EarthSolidTide::getSolidTide(), Msise00Drag::ghp7(), Msise00Drag::gtd7(), Msise00Drag::gts7(), gpstk::incompletebetaps(), IonexData::reallyGetRecord(), IonexData::reallyPutRecord(), gpstk::regIncompleteBeta(), RungeKuttaFehlberg::rkfqcs(), SaasTropModel::setWeather(), TropModel::weatherByStandardAtmosphereModel(), MOPSTropModel::wet_zenith_delay(), and GGHeightTropModel::wet_zenith_delay().

Vector<T> pow const ConstVectorBase< T, BaseClass > &  l,
const T  r
 

performs func between each element of l and (scalar)r, returning a retval

Definition at line 149 of file VectorOperators.hpp.

Vector<T> pow const ConstVectorBase< T, BaseClass > &  l,
const ConstVectorBase< T, BaseClass2 > &  r
 

performs func between each element of l and r, returning a retval

Definition at line 149 of file VectorOperators.hpp.

Referenced by PowerSum::skew().

Matrix< T > & resize size_t  rows,
size_t  cols,
const T  initialValue
[inline, inherited]
 

Definition at line 133 of file MatrixImplementation.hpp.

Matrix< T > & resize size_t  rows,
size_t  cols
[inline, inherited]
 

Resizes the matrix to rows*cols.

Warning:
YOUR DATA MAY NOT BE RETAINED!!!

Definition at line 123 of file MatrixImplementation.hpp.

Referenced by SolverWMS::Compute(), NEDUtil::compute(), ENUUtil::compute(), SunForce::doCompute(), SphericalHarmonicGravity::doCompute(), SolarRadiationPressure::doCompute(), RelativityEffect::doCompute(), MoonForce::doCompute(), AtmosphericDrag::doCompute(), ARLambda::factorize(), ForceModelList::getDerivatives(), Matrix< int >::operator=(), SRIFilter::Reset(), SimpleKalmanFilter::Reset(), GeodeticFrames::ResolveRotation(), ARMLambda::search(), ARLambda::search(), SphericalHarmonicGravity::SphericalHarmonicGravity(), and SatOrbitPropagator::updateMatrix().

T RMS const ConstVectorBase< T, BaseClass > &  l  ) 
 

returns the root-mean-square of the elements of l

Definition at line 180 of file VectorOperators.hpp.

References gpstk::norm(), and SQRT.

Referenced by SRIleastSquares::dataUpdate(), and PRSolution::RAIMCompute().

Matrix<T> rotation angle,
int  axis
throw (MatrixException) [inline]
 

Return a rotation matrix [dimensioned 3x3, inverse() = transpose()] for the rotation through angle radians about axis number (= 1, 2 or 3).

Definition at line 446 of file MatrixOperators.hpp.

References GPSTK_THROW.

Referenced by GeodeticFrames::ECEFtoInertial(), GeodeticFrames::PolarMotion(), and GeodeticFrames::PreciseEarthRotation().

ConstMatrixRowSlice< T > row size_t  rowNum,
size_t  colNum = 0
const [inline, inherited]
 

A const reference slice of a row with a starting column (i.e. sub-row).

Definition at line 87 of file MatrixImplementation.hpp.

References Matrix::cols().

ConstMatrixRowSlice< T > row size_t  rowNum,
const std::slice &  s
const [inline, inherited]
 

A const reference slice of a row with a given std::slice.

Definition at line 80 of file MatrixImplementation.hpp.

MatrixRowSlice< T > rowRef size_t  rowNum,
size_t  colNum = 0
[inline, inherited]
 

A reference slice of a row with a starting column (i.e. sub-row).

Definition at line 73 of file MatrixImplementation.hpp.

References Matrix::cols().

MatrixRowSlice< T > rowRef size_t  rowNum,
const std::slice &  s
[inline, inherited]
 

A reference slice of a row with a given std::slice.

Definition at line 67 of file MatrixImplementation.hpp.

T RSS const ConstVectorBase< T, BaseClass > &  l  ) 
 

returns the root-sum-square of the elements of l

Definition at line 175 of file VectorOperators.hpp.

References gpstk::norm().

Referenced by DOP::Compute(), Bancroft::Compute(), SVD::operator()(), and gpstk::RSS().

Vector<T> sin const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Examples:
example11.cpp, example13.cpp, and example7.cpp.

Definition at line 62 of file VectorOperators.hpp.

Referenced by Position::azimuthGeodetic(), ReferenceFrames::BLH2XYZ(), NEDUtil::compute(), ENUUtil::compute(), HarrisPriesterDrag::computeDensity(), EOPPrediction::computeEOP(), gpstk::CrudeSolarPosition(), UTCTime::ctatv(), PendulumIntegrator::derivative(), NBTropModel::dry_mapping_function(), GGHeightTropModel::dry_mapping_function(), GGTropModel::dry_mapping_function(), KeplerOrbit::EccentricAnomaly(), Position::elevationGeodetic(), ReferenceFrames::enuMatrix(), KeplerOrbit::F(), gpstk::gamma(), EarthOceanTide::getOceanTide(), MoonPosition::getPositionCIS(), EarthSolidTide::getSolidTide(), Msise00Drag::gts7(), ReferenceFrames::iauEqeq94(), gpstk::iauEqeq94(), gpstk::iauNut80Args(), IonexStore::iono_mapping_function(), gpstk::J2kToECEFMatrix(), gpstk::lngamma(), gpstk::LunarPosition(), GCATTropModel::mapping_function(), KeplerOrbit::MeanAnomaly(), gpstk::moonJ2kPosition(), ReferenceFrames::nutationAngles(), gpstk::nutationAngles(), ReferenceFrames::Rx(), gpstk::Rx(), ReferenceFrames::Ry(), gpstk::Ry(), ReferenceFrames::Rz(), gpstk::Rz(), gpstk::SolarPosition(), KeplerOrbit::State(), KeplerOrbit::StatePartials(), RungeKuttaFehlberg::test(), KeplerOrbit::TrueAnomaly(), KeplerOrbit::TwoBody(), NBTropModel::wet_mapping_function(), GGHeightTropModel::wet_mapping_function(), GGTropModel::wet_mapping_function(), and ReferenceFrames::XYZ2ENU().

Vector<T> sinh const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 61 of file VectorOperators.hpp.

Referenced by KeplerOrbit::F().

T slowDet const ConstMatrixBase< T, BaseClass > &  l  )  [inline]
 

Uses the sum of minor determinates to calculate the whole det.

Slow for large matricies, but it works.

Definition at line 140 of file MatrixBaseOperators.hpp.

References GPSTK_THROW, and gpstk::minorMatrix().

Vector<T> sqrt const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Examples:
example10.cpp, example13.cpp, and example8.cpp.

Definition at line 63 of file VectorOperators.hpp.

Referenced by AllanDeviation::AllanDeviation(), ReferenceFrames::BLH2XYZ(), StudentDistribution::cdf(), SphericalHarmonicGravity::computeVW(), gpstk::CrudeSolarPosition(), PowerSum::dump(), KeplerOrbit::Elements(), ReferenceFrames::enuToAzElDt(), ARLambda::factorize(), KeplerOrbit::FindEta(), EarthOceanTide::getOceanTide(), KeplerOrbit::getPeriod(), SolarRadiationPressure::getShadowFunction(), SolidTides::getSolidTide(), SolverPPP::getWeightFactor(), Msise00Drag::ghp7(), EarthSolidTide::legendrePoly(), Triple::mag(), main(), KeplerOrbit::MeanAnomaly(), SphericalHarmonicGravity::normFactor(), EarthSolidTide::normFactor(), SolarRadiationPressure::partial_illumination(), StudentDistribution::pdf(), ComputeDOP::Process(), RandNorm(), ARSimple::resolveIntegerAmbiguity(), KeplerOrbit::State(), KeplerOrbit::StatePartials(), gpstk::stats(), KeplerOrbit::TrueAnomaly(), KeplerOrbit::TwoBody(), Triple::unitVector(), and ReferenceFrames::XYZ2BLH().

T sum const ConstVectorBase< T, BaseClass > &  l  )  [inline]
 

Returns the sum of the elements of the vector.

Definition at line 71 of file VectorBaseOperators.hpp.

Referenced by AllanDeviation::AllanDeviation(), LUDecomp::backSub(), SunForce::doCompute(), MoonForce::doCompute(), gpstk::dot(), SRI::getState(), gpstk::inverseUT(), gpstk::LagrangeInterpolating2ndDerivative(), gpstk::LagrangeSecondDerivative(), gpstk::Robust::MEstimate(), gpstk::normCol(), gpstk::normF(), Householder::operator()(), CholeskyCrout::operator()(), gpstk::SrifMU(), gpstk::UTtimesTranspose(), and VectorTest().

Vector<T> tan const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 64 of file VectorOperators.hpp.

Referenced by KeplerOrbit::TwoBody().

Vector<T> tanh const ConstVectorBase< T, BaseClass > &  x  ) 
 

performs func on each element of x, returning a new vector

Definition at line 65 of file VectorOperators.hpp.

T trace const ConstMatrixBase< T, BaseClass > &  m  )  throw (MatrixException) [inline]
 

Returns the trace of the matrix.

Definition at line 87 of file MatrixBaseOperators.hpp.

References GPSTK_THROW, and index().

Matrix<T> transpose const ConstMatrixBase< T, BaseClass > &  m  )  [inline]
 

Returns a matrix that is m transposed.

Definition at line 288 of file MatrixOperators.hpp.

Referenced by PolyFit< double >::Add(), SRI::addAPrioriInformation(), PRSolution::AutonomousPRSolution(), SVD::backSub(), GeneralConstraint::changeState(), SolverWMS::Compute(), SolverLMS::Compute(), Bancroft::Compute(), PreciseRange::ComputeAtTransmitTime(), ARBase::computeFloatAmbiguity(), gpstk::DMsmootherUpdateWithControl(), AtmosphericDrag::doCompute(), gpstk::ECEFPosToJ2k(), ReferenceFrames::ECEFPosVelToJ2k(), gpstk::ECEFPosVelToJ2k(), ReferenceFrames::ECEFStateToJ2k(), SphericalHarmonicGravity::gravity(), SphericalHarmonicGravity::gravityGradient(), gpstk::inverseChol(), gpstk::inverseCholesky(), ARLambda::lambda(), MatrixTest1(), MatrixTest3(), MatrixTest4(), MatrixTest5(), MatrixTest6(), MatrixTest9(), CholeskyCrout::operator()(), SVD::operator()(), SRI::permute(), ComputeDOP::Process(), GeodeticFrames::ResolveRotation(), gpstk::upperCholesky(), and SolarSystem::WGS84Position().


Generated on Wed Feb 8 03:31:25 2012 for GPS ToolKit Software Library by  doxygen 1.3.9.1