Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes
pcl::poisson::Vector< T > Class Template Reference

#include <pcl/surface/3rdparty/poisson4/vector.h>

Public Member Functions

 Vector ()
 
 Vector (const Vector< T > &V)
 
 Vector (std::size_t N)
 
 Vector (std::size_t N, T *pV)
 
 ~Vector ()
 
const T & operator() (std::size_t i) const
 
T & operator() (std::size_t i)
 
const T & operator[] (std::size_t i) const
 
T & operator[] (std::size_t i)
 
void SetZero ()
 
std::size_t Dimensions () const
 
void Resize (std::size_t N)
 
Vector operator* (const T &A) const
 
Vector operator/ (const T &A) const
 
Vector operator- (const Vector &V) const
 
Vector operator+ (const Vector &V) const
 
Vectoroperator*= (const T &A)
 
Vectoroperator/= (const T &A)
 
Vectoroperator+= (const Vector &V)
 
Vectoroperator-= (const Vector &V)
 
VectorAddScaled (const Vector &V, const T &scale)
 
VectorSubtractScaled (const Vector &V, const T &scale)
 
Vector operator- () const
 
Vectoroperator= (const Vector &V)
 
Dot (const Vector &V) const
 
Length () const
 
Norm (std::size_t Ln) const
 
void Normalize ()
 
bool write (FILE *fp) const
 
bool write (const char *fileName) const
 
bool read (FILE *fp)
 
bool read (const char *fileName)
 

Static Public Member Functions

static void Add (const Vector &V1, const T &scale1, const Vector &V2, const T &scale2, Vector &Out)
 
static void Add (const Vector &V1, const T &scale1, const Vector &V2, Vector &Out)
 

Public Attributes

T * m_pV
 

Protected Attributes

std::size_t m_N
 

Detailed Description

template<class T>
class pcl::poisson::Vector< T >

Definition at line 41 of file vector.h.

Constructor & Destructor Documentation

◆ Vector() [1/4]

template<class T >
pcl::poisson::Vector< T >::Vector ( )

Definition at line 42 of file vector.hpp.

◆ Vector() [2/4]

template<class T >
pcl::poisson::Vector< T >::Vector ( const Vector< T > &  V)

Definition at line 48 of file vector.hpp.

References pcl::poisson::Vector< T >::m_N, and pcl::poisson::Vector< T >::m_pV.

◆ Vector() [3/4]

template<class T >
pcl::poisson::Vector< T >::Vector ( std::size_t  N)

Definition at line 56 of file vector.hpp.

◆ Vector() [4/4]

template<class T >
pcl::poisson::Vector< T >::Vector ( std::size_t  N,
T *  pV 
)

Definition at line 74 of file vector.hpp.

◆ ~Vector()

template<class T >
pcl::poisson::Vector< T >::~Vector ( )

Definition at line 80 of file vector.hpp.

Member Function Documentation

◆ Add() [1/2]

template<class T >
void pcl::poisson::Vector< T >::Add ( const Vector< T > &  V1,
const T &  scale1,
const Vector< T > &  V2,
const T &  scale2,
Vector< T > &  Out 
)
static

Definition at line 169 of file vector.hpp.

References pcl::poisson::Vector< T >::m_N, and pcl::poisson::Vector< T >::m_pV.

◆ Add() [2/2]

template<class T >
void pcl::poisson::Vector< T >::Add ( const Vector< T > &  V1,
const T &  scale1,
const Vector< T > &  V2,
Vector< T > &  Out 
)
static

Definition at line 174 of file vector.hpp.

References pcl::poisson::Vector< T >::m_N, and pcl::poisson::Vector< T >::m_pV.

◆ AddScaled()

template<class T >
Vector< T > & pcl::poisson::Vector< T >::AddScaled ( const Vector< T > &  V,
const T &  scale 
)

Definition at line 153 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ Dimensions()

template<class T >
std::size_t pcl::poisson::Vector< T >::Dimensions ( ) const

◆ Dot()

template<class T >
T pcl::poisson::Vector< T >::Dot ( const Vector< T > &  V) const

Definition at line 237 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

Referenced by pcl::poisson::SparseMatrix< T >::Solve().

◆ Length()

template<class T >
T pcl::poisson::Vector< T >::Length ( void  ) const

Definition at line 229 of file vector.hpp.

◆ Norm()

template<class T >
T pcl::poisson::Vector< T >::Norm ( std::size_t  Ln) const

◆ Normalize()

template<class T >
void pcl::poisson::Vector< T >::Normalize ( )

Definition at line 222 of file vector.hpp.

◆ operator()() [1/2]

template<class T >
const T & pcl::poisson::Vector< T >::operator() ( std::size_t  i) const

Definition at line 93 of file vector.hpp.

◆ operator()() [2/2]

template<class T >
T & pcl::poisson::Vector< T >::operator() ( std::size_t  i)

Definition at line 99 of file vector.hpp.

◆ operator*()

template<class T >
Vector< T > pcl::poisson::Vector< T >::operator* ( const T &  A) const

Definition at line 114 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ operator*=()

template<class T >
Vector< T > & pcl::poisson::Vector< T >::operator*= ( const T &  A)

Definition at line 122 of file vector.hpp.

◆ operator+()

template<class T >
Vector< T > pcl::poisson::Vector< T >::operator+ ( const Vector< T > &  V) const

Definition at line 144 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ operator+=()

template<class T >
Vector< T > & pcl::poisson::Vector< T >::operator+= ( const Vector< T > &  V)

Definition at line 179 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ operator-() [1/2]

template<class T >
Vector< T > pcl::poisson::Vector< T >::operator- ( const Vector< T > &  V) const

Definition at line 187 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ operator-() [2/2]

template<class T >
Vector< T > pcl::poisson::Vector< T >::operator- ( void  ) const

Definition at line 196 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ operator-=()

template<class T >
Vector< T > & pcl::poisson::Vector< T >::operator-= ( const Vector< T > &  V)

Definition at line 206 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ operator/()

template<class T >
Vector< T > pcl::poisson::Vector< T >::operator/ ( const T &  A) const

Definition at line 129 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ operator/=()

template<class T >
Vector< T > & pcl::poisson::Vector< T >::operator/= ( const T &  A)

Definition at line 137 of file vector.hpp.

◆ operator=()

template<class T >
Vector< T > & pcl::poisson::Vector< T >::operator= ( const Vector< T > &  V)

Definition at line 82 of file vector.hpp.

References pcl::poisson::Vector< T >::m_N, and pcl::poisson::Vector< T >::m_pV.

◆ operator[]() [1/2]

template<class T >
const T & pcl::poisson::Vector< T >::operator[] ( std::size_t  i) const

Definition at line 104 of file vector.hpp.

◆ operator[]() [2/2]

template<class T >
T & pcl::poisson::Vector< T >::operator[] ( std::size_t  i)

Definition at line 109 of file vector.hpp.

◆ read() [1/2]

template<class T >
bool pcl::poisson::Vector< T >::read ( FILE *  fp)

Definition at line 265 of file vector.hpp.

◆ read() [2/2]

template<class T >
bool pcl::poisson::Vector< T >::read ( const char *  fileName)

Definition at line 247 of file vector.hpp.

References pcl::read().

◆ Resize()

template<class T >
void pcl::poisson::Vector< T >::Resize ( std::size_t  N)

◆ SetZero()

template<class T >
void pcl::poisson::Vector< T >::SetZero ( void  )

◆ SubtractScaled()

template<class T >
Vector< T > & pcl::poisson::Vector< T >::SubtractScaled ( const Vector< T > &  V,
const T &  scale 
)

Definition at line 161 of file vector.hpp.

References pcl::poisson::Vector< T >::m_pV.

◆ write() [1/2]

template<class T >
bool pcl::poisson::Vector< T >::write ( FILE *  fp) const

Definition at line 274 of file vector.hpp.

◆ write() [2/2]

template<class T >
bool pcl::poisson::Vector< T >::write ( const char *  fileName) const

Definition at line 256 of file vector.hpp.

References pcl::write().

Member Data Documentation

◆ m_N

template<class T>
std::size_t pcl::poisson::Vector< T >::m_N
protected

◆ m_pV

template<class T>
T* pcl::poisson::Vector< T >::m_pV

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