Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TNT::Vector< T > Class Template Reference

#include <Base/Math/tnt/vec.h>

+ Inheritance diagram for TNT::Vector< T >:
+ Collaboration diagram for TNT::Vector< T >:

Public Types

typedef const T * const_iterator
 
typedef const T & const_reference
 
typedef T element_type
 
typedef T * iterator
 
typedef T * pointer
 
typedef T & reference
 
typedef Subscript size_type
 
typedef T value_type
 

Public Member Functions

iterator begin ()
 
const iterator begin () const
 
Subscript dim () const
 
iterator end ()
 
const iterator end () const
 
Subscript lbound () const
 
Vector< T > & newsize (Subscript N)
 
reference operator() (Subscript i)
 
const_reference operator() (Subscript i) const
 
Vector< T > & operator= (const Vector< T > &A)
 
Vector< T > & operator= (const T &scalar)
 
reference operator[] (Subscript i)
 
const_reference operator[] (Subscript i) const
 
Subscript size () const
 
 Vector ()
 
 Vector (const Vector< T > &A)
 
 Vector (Subscript N, const T &value=T())
 
 Vector (Subscript N, const T *v)
 
 Vector (const Subscript N, const std::string &s)
 
 ~Vector ()
 

Protected Member Functions

void copy (const T *v)
 
void destroy ()
 
void initialize (Subscript N)
 
void set (const T &val)
 

Protected Attributes

Subscript n_
 
T * v_
 
T * vm1_
 

Detailed Description

template<class T>
class TNT::Vector< T >

Definition at line 55 of file vec.h.

Member Typedef Documentation

template<class T>
typedef const T* TNT::Vector< T >::const_iterator

Definition at line 67 of file vec.h.

template<class T>
typedef const T& TNT::Vector< T >::const_reference

Definition at line 68 of file vec.h.

template<class T>
typedef T TNT::Vector< T >::element_type

Definition at line 63 of file vec.h.

template<class T>
typedef T* TNT::Vector< T >::iterator

Definition at line 65 of file vec.h.

template<class T>
typedef T* TNT::Vector< T >::pointer

Definition at line 64 of file vec.h.

template<class T>
typedef T& TNT::Vector< T >::reference

Definition at line 66 of file vec.h.

template<class T>
typedef Subscript TNT::Vector< T >::size_type

Definition at line 61 of file vec.h.

template<class T>
typedef T TNT::Vector< T >::value_type

Definition at line 62 of file vec.h.

Constructor & Destructor Documentation

template<class T>
TNT::Vector< T >::~Vector ( )
inline

Definition at line 171 of file vec.h.

template<class T>
TNT::Vector< T >::Vector ( )
inline

Definition at line 178 of file vec.h.

template<class T>
TNT::Vector< T >::Vector ( const Vector< T > &  A)
inline

Definition at line 180 of file vec.h.

template<class T>
TNT::Vector< T >::Vector ( Subscript  N,
const T &  value = T() 
)
inline

Definition at line 186 of file vec.h.

template<class T>
TNT::Vector< T >::Vector ( Subscript  N,
const T *  v 
)
inline

Definition at line 192 of file vec.h.

template<class T>
TNT::Vector< T >::Vector ( const Subscript  N,
const std::string &  s 
)
inline

Definition at line 207 of file vec.h.

Member Function Documentation

template<class T>
iterator TNT::Vector< T >::begin ( )
inline
template<class T>
const iterator TNT::Vector< T >::begin ( ) const
inline

Definition at line 166 of file vec.h.

template<class T>
void TNT::Vector< T >::copy ( const T *  v)
inlineprotected

Definition at line 92 of file vec.h.

Referenced by TNT::Vector< Subscript >::operator=(), and TNT::Vector< Subscript >::Vector().

template<class T>
void TNT::Vector< T >::destroy ( )
inlineprotected
template<class T>
Subscript TNT::Vector< T >::dim ( ) const
inline
template<class T>
iterator TNT::Vector< T >::end ( )
inline

Definition at line 165 of file vec.h.

template<class T>
const iterator TNT::Vector< T >::end ( ) const
inline

Definition at line 167 of file vec.h.

template<class T>
void TNT::Vector< T >::initialize ( Subscript  N)
inlineprotected
template<class T>
Subscript TNT::Vector< T >::lbound ( ) const
inline

Definition at line 70 of file vec.h.

Referenced by TNT::QR_factor(), TNT::QR_solve(), and TNT::R_solve().

template<class T>
Vector<T>& TNT::Vector< T >::newsize ( Subscript  N)
inline
Examples:
EvaluateAlignment.cpp, ExampleAlignment.cpp, ExampleLeastSquares.cpp, and ExampleUncertaintyTransform.cpp.

Definition at line 220 of file vec.h.

Referenced by BIAS::GenSynthMatches::_AddParameter(), BIAS::Binomial< InputStorageType, OutputStorageType >::_CalculateKernel(), BIAS::Param::AddParamVecDbl(), BIAS::Param::AddParamVecInt(), BIAS::LDA::AnalyzeData(), BIAS::CheckJacobian(), BIAS::PCA::ComputeMean(), BIAS::ContourDetectorBSpline< StorageType >::CPntsToQ_(), TNT::eigenproblem_special_quadratic_matrix_solve(), TNT::eigenvalue_solve(), BIAS::Vector< T >::ElementwiseProduct(), BIAS::CamPoseCalib::Estimate(), BIAS::GenerateGauss::Gauss1D(), General_singular_value_decomposition(), BIAS::SVD::GetLeftNullvector(), BIAS::FFT::GetMagnitude(), BIAS::CondensHisto::GetMaxValue(), BIAS::CondensHisto::GetMaxVariance(), BIAS::Random::GetMeanAndCovariance(), BIAS::CondensHisto::GetMeanVariance(), BIAS::SVD::GetNullvector(), BIAS::PMatrixLinear::GetPEstSystemInHom(), BIAS::FFT::GetPhase(), BIAS::ContourDetectorBSpline< StorageType >::GetPointAndParamVec_(), BIAS::Random::GetQuasiUniformDistributed(), BIAS::Condensation::GetVariance(), BIAS::Condensation::GetWeightedVariance(), BIAS::SparseMatrix::InvertAndSolve(), BIAS::Vector< T >::KroneckerProduct(), BIAS::LevenbergMarquardtBase::LM_Compute(), BIAS::LevenbergMarquardtBase::LM_ComputeWithoutJacobian(), BIAS::Matrix< T >::Mult(), BIAS::SparseMatrix::Multiply(), BIAS::Matrix< T >::MultLeft(), BIAS::MxArrToBIASVector(), TNT::Fortran_Sparse_Vector< T >::newsize(), TNT::Fortran_Sparse_Col_Matrix< T >::newsize(), BIAS::GenSynthMatches::operator=(), TNT::operator>>(), Packed_symmetric_eigenvalue_solve(), BIAS::Covariance3Dto2D::Project(), BIAS::Covariance3Dto2DHomg::Project(), TNT::QR_factor(), BIAS::GenSynthMatches::Read(), BIAS::SparseMatrix::Solve(), BIAS::LeastSquaresSVD::Solve(), BIAS::Vector< T >::Sub(), BIAS::TextureTransformDisparity::TextureTransformDisparity(), BIAS::TextureTransformDisplacement::TextureTransformDisplacement(), BIAS::TextureTransformEuclidian::TextureTransformEuclidian(), BIAS::TextureTransformRotation::TextureTransformRotation(), BIAS::TextureTransformSimilar::TextureTransformSimilar(), BIAS::MonteCarloTransform::Transform(), BIAS::CovQuaternion2AxisAngle::Transform_(), BIAS::CovEuler2Quaternion::Transform_(), BIAS::Cov3Dto2DPoseCertain::Transform_(), BIAS::Covariance3Dto2D::Transform_(), BIAS::CovTransformPose::Transform_(), BIAS::CamPoseCalib::TransformVec(), Upper_symmetric_eigenvalue_solve(), BIAS::Matrix< T >::Vec(), BIAS::Tracker< StorageType, CalculationType >::Vector2FilterMask_(), and BIAS::LeastSquaresSVD::WeightedSolve().

template<class T>
reference TNT::Vector< T >::operator() ( Subscript  i)
inline

Definition at line 268 of file vec.h.

template<class T>
const_reference TNT::Vector< T >::operator() ( Subscript  i) const
inline

Definition at line 277 of file vec.h.

template<class T>
Vector<T>& TNT::Vector< T >::operator= ( const Vector< T > &  A)
inline
template<class T>
Vector<T>& TNT::Vector< T >::operator= ( const T &  scalar)
inline

Definition at line 251 of file vec.h.

template<class T>
reference TNT::Vector< T >::operator[] ( Subscript  i)
inline

Definition at line 286 of file vec.h.

template<class T>
const_reference TNT::Vector< T >::operator[] ( Subscript  i) const
inline

Definition at line 295 of file vec.h.

template<class T>
void TNT::Vector< T >::set ( const T &  val)
inlineprotected

Definition at line 118 of file vec.h.

Referenced by TNT::Vector< Subscript >::operator=(), and TNT::Vector< Subscript >::Vector().

template<class T>
Subscript TNT::Vector< T >::size ( ) const
inline
Examples:
ExampleGenerateGauss.cpp, and ExampleHdr.cpp.

Definition at line 262 of file vec.h.

Referenced by BIAS::GenSynthMatches::_CheckParams(), BIAS::ImageAlignment::Align(), BIAS::LDA::AnalyzeData(), BIAS::CamPoseCalib::ApplyCoVariances_(), BIAS::ImageAlignment::AutoAlign(), BIAS::TrackerBaseAffine2< StorageType >::BilinearRegion1_(), BIAS::IntegralHistogram::CalcSimilarity(), BIAS::CheckJacobian(), BIAS::LDA::ComputeAnonymousReduction(), BIAS::ComputeJacobian(), BIAS::PCA::ComputeMean(), BIAS::LDA::ComputeMeans(), BIAS::LDA::ComputeReductionMatrix(), BIAS::PCA::ComputeScatter(), BIAS::IntegralHistogram::CopyNoCheck(), BIAS::Vector< T >::Dist(), BIAS::Vector< T >::DistLinf(), BIAS::Parametrization::EMatrixToParams(), BIAS::CamPoseCalib::Estimate(), BIAS::TriangleMesh::GetBiggestConnectedSegment(), BIAS::FMatrixEstimation::GetDetPolynomial(), BIAS::Random::GetMeanAndCovariance(), BIAS::GenSynthMatchesRig::GetParameters_(), BIAS::SVD::GetSingularValue(), BIAS::Matrix< T >::GetSubMatrix(), BIAS::HomgPoint3D::HomgPoint3D(), BIAS::Kalman::Init(), BIAS::IteratedExtendedKalman::Init(), BIAS::Vector< T >::KroneckerProduct(), Lapack_LLS_QR_linear_solve(), Lapack_LU_linear_solve(), Lapack_WLLS_solve(), BIAS::Matrix< EP_TYPE >::Matrix(), BIAS::Matrix< T >::Mult(), BIAS::Matrix< T >::MultLeft(), BIAS::Vector< T >::operator*(), BIAS::Vector3< T >::operator+(), BIAS::Vector< T >::operator+=(), BIAS::Vector< T >::operator-=(), BIAS::Vector3< HOMGPOINT2D_TYPE >::operator=(), BIAS::Vector< T >::operator==(), TNT::operator>>(), BIAS::Vector< T >::OuterProduct(), BIAS::Parametrization::ParamsToEMatrix(), TNT::QR_factor(), BIAS::ContourDetectorBSpline< StorageType >::QToCPnts_(), BIAS::Vector< T >::ScalarProduct(), BIAS::RParametrization::Set(), BIAS::Vector3< T >::Set(), BIAS::HomgPoint2D::Set(), BIAS::Matrix< T >::Set(), BIAS::Matrix< T >::SetCol(), BIAS::PoseParametrization::SetCQ(), BIAS::EParametrization::SetEQ(), BIAS::HomgPlane3D::SetFromVector(), BIAS::Matrix3x3< T >::SetFromVector(), BIAS::ExtendedKalman::SetInitial(), BIAS::Matrix< T >::SetRow(), BIAS::IteratedExtendedKalman::SetState(), BIAS::Matrix< T >::SetTranspose(), BIAS::CamPoseCalib::SetWeightsByError_(), BIAS::GaussHelmert::Solve(), BIAS::LeastSquaresSVD::Solve(), BIAS::SVD::Solve(), BIAS::CamPoseCalib::SolveLM_(), BIAS::SVD::Sqrt(), BIAS::SVD::SqrtT(), BIAS::ImageAlignment::StrictPyramidAlign(), BIAS::Vector< T >::SubIP(), BIAS::ContourDetectorBSpline< StorageType >::TestInit_(), BIAS::UnscentedTransform::Transform(), BIAS::ProjectionParametersBase::Transform_(), BIAS::Kalman::Update(), BIAS::ExtendedKalman::Update(), BIAS::IteratedExtendedKalman::Update(), BIAS::Vector2< T >::Vector2(), BIAS::Vector3< T >::Vector3(), BIAS::Vector4< T >::Vector4(), and BIAS::LeastSquaresSVD::WeightedSolve().

Member Data Documentation

template<class T>
Subscript TNT::Vector< T >::n_
protected
template<class T>
T* TNT::Vector< T >::v_
protected
template<class T>
T* TNT::Vector< T >::vm1_
protected

The documentation for this class was generated from the following file: