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

class Vector4 contains a Vector of dim. More...

#include <Base/Math/Vector4.hh>

+ Inheritance diagram for BIAS::Vector4< T >:
+ Collaboration diagram for BIAS::Vector4< T >:

Public Types

typedef T value_type
 

Public Member Functions

void Add (const T &scalar, Vector4< T > &dest) const
 Addition with a scalar, storing results in destionation vector. More...
 
void Add (const Vector4< T > &argvec, Vector4< T > &destvec) const
 adding of two vectors, storing the result in destvec More...
 
void AddIP (const T &scalar)
 Addition (in place) of an scalar. More...
 
void AddIP (const Vector4< T > &argvec)
 in place adding More...
 
void clear ()
 
void Copy (const T *pv)
 copy the array of vectorsize beginning at *T to this->data_ More...
 
double Dist (const Vector4< T > &vec) const
 Return the euclidean distance of 2 vectors. More...
 
void Divide (const T &scalar, Vector4< T > &dest) const
 Division with a scalar, storing results in destionation vector. More...
 
void DivideIP (const T &scalar)
 Division (in place) of an scalar. More...
 
void ElementwiseProduct (const Vector4< T > &argvec, Vector4< T > &destvec) const
 multiply two vectors elementwise, storing the result in destvec More...
 
const T * GetData () const
 
get the data pointer

the member function itself is const (before {..}) because it doesn't change the this object. More...

 
T * GetData ()
 
const unsigned int GetNumElements () const
 
bool Load (const std::string &filename)
 method to load directly from a given filename. More...
 
void Multiply (const T &scalar, Vector4< T > &dest) const
 Multiplication with a scalar, storing results in destionation vector. More...
 
void MultiplyIP (const T &scalar)
 Multiplication (in place) of an scalar. More...
 
NormL1 () const
 Return the L1 norm: |a| + |b| + |c|+ |d|. More...
 
double NormL2 () const
 Return the L2 norm: sqrt(a^2 + b^2 + c^2 + d^2) More...
 
bool operator!= (const Vector4< T > &arg) const
 Comparison operator 'not equal'. More...
 
Vector4< T > & operator*= (const T &scalar)
 Multiplication operator with scalar argument. More...
 
Vector4< T > & operator+= (const T &scalar)
 Addition operator with scalar argument. More...
 
Vector4< T > & operator+= (const Vector4< T > &argvec)
 add operator for two Vectors More...
 
Vector4< T > & operator-= (const T &scalar)
 Substraction operator with scalar argument. More...
 
Vector4< T > & operator-= (const Vector4< T > &argvec)
 sub operator for two Vectors More...
 
Vector4< T > & operator/= (const T &scalar)
 Division operator with scalar argument. More...
 
Vector4< T > & operator= (const T &scalar)
 
assignment operator

set the vector elementwise to scalar value More...

 
Vector4< T > & operator= (const Vector4< T > &vec)
 assignment operator More...
 
bool operator== (const Vector4< T > &arg) const
 Comparison operator 'equal'. More...
 
const T & operator[] (const int i) const
 access an element of the vector with 0-based indizes. More...
 
T & operator[] (const int i)
 access an element of the vector with 0-based indizes. More...
 
Matrix4x4< T > OuterProduct (const Vector4< T > &v) const
 outer product, constructs a matrix. More...
 
bool Save (const std::string &filename) const
 method to save directly to a given filename. More...
 
void ScalarProduct (const Vector4< T > &argvec, T &result) const
 
scalar product (=inner product) of two vectors, storing

the result in result More...

 
ScalarProduct (const Vector4< T > &argvec) const
 
void Set (const T &scalar)
 set all elements to a scalat value More...
 
void Set (const T &x, const T &y, const T &z, const T &w)
 set elementwise with given scalr values More...
 
void SetZero ()
 set all values to 0 More...
 
const unsigned int Size () const
 
const unsigned int size () const
 
void Sub (const T &scalar, Vector4< T > &dest) const
 Substraction with a scalar, storing results in destionation vector. More...
 
void Sub (const Vector4< T > &argvec, Vector4< T > &destvec) const
 subtracting of two Vectors, storing the result in destvec More...
 
void SubIP (const T &scalar)
 Substraction (in place) of an scalar. More...
 
void SubIP (const Vector4< T > &argvec)
 in place substraction More...
 
Matrix< T > transposed () const
 
return a new Matrix with 1 row and 4 columns representing a

transposed vector More...

 
 Vector4 ()
 
 Vector4 (const Vector4< T > &vec)
 copy constructor More...
 
 Vector4 (const T &scalar)
 assignment with a constant value for all elements More...
 
 Vector4 (const T *pv)
 
assignment with an array of values

which is copied into this ones class members More...

 
 Vector4 (char *s)
 constructor with element assignment More...
 
 Vector4 (const T v0, const T v1, const T v2, const T v3)
 constructor with element assigment using explicit values More...
 
 Vector4 (const Vector< T > &v)
 cast constructor More...
 
 ~Vector4 ()
 
Iterator Functions
T const * begin () const
 Iterator to first component of vector. More...
 
T * begin ()
 
T const * end () const
 Iterator pointing to one element after the last vector element. More...
 
T * end ()
 

Protected Attributes

data_ [VECTOR4SIZE]
 

Related Functions

(Note that these are not member functions.)

template<class T >
Vector4< T > operator* (const Vector4< T > &v, const T &scalar)
 
template<class T >
Vector4< T > operator* (const T &scalar, const Vector4< T > &v)
 
template<class T >
operator* (const Vector4< T > &v, const Vector4< T > &argvec)
 
template<class T >
Vector4< T > operator* (const Matrix4x4< T > &mat, const Vector4< T > &argvec)
 
template<class T >
Vector3< T > operator* (const Matrix3x4< T > &mat, const Vector4< T > &argvec)
 
template<class T >
Vector< T > operator* (const BIAS::Matrix< T > &mat, const Vector4< T > &vec)
 
template<class T >
Vector4< T > operator+ (const Vector4< T > &v, const T &scalar)
 
template<class T >
Vector4< T > operator+ (const Vector4< T > &v, const Vector4< T > &argvec)
 
template<class T >
Vector4< T > operator- (const Vector4< T > &v)
 
template<class T >
Vector4< T > operator- (const Vector4< T > &v, const T &scalar)
 
template<class T >
Vector4< T > operator- (const Vector4< T > &v, const Vector4< T > &argvec)
 
template<class T >
Vector4< T > operator/ (const Vector4< T > &v, const T &scalar)
 
template<class T >
bool operator< (const Vector4< T > &a, const Vector4< T > &b)
 
std::ostream & operator<< (std::ostream &os, const Vector4< unsigned char > &vec)
 Input with streams specialization for numerical display of unsigned char instead of alphebetically. fout format should be consistent with template implementation and Vector<> More...
 
template<class T >
std::ostream & operator<< (std::ostream &os, const Vector4< T > &vec)
 Input with streams fout format should be consistent with template implementation and Vector<> More...
 
template<class T >
bool operator<= (const Vector4< T > &a, const Vector4< T > &b)
 
template<class T >
bool operator> (const Vector4< T > &a, const Vector4< T > &b)
 
template<class T >
bool operator>= (const Vector4< T > &a, const Vector4< T > &b)
 
std::istream & operator>> (std::istream &is, Vector4< unsigned char > &vec)
 Input with streams specialization for numerical display of unsigned char instead of alphebetically. fout format should be consistent with template implementation and Vector<> More...
 
template<class T >
std::istream & operator>> (std::istream &is, Vector4< T > &vec)
 Input with streams fout format should be consistent with template implementation and Vector<> More...
 

Detailed Description

template<class T>
class BIAS::Vector4< T >

class Vector4 contains a Vector of dim.

4 and fixed dimension

It's elment type is templated. manual loop unrolling is used if possible. The Vector is in row-major order (4 rows, 1 column) the indizes begin with zero (to size-1)

Author
Jan Woetzel tested in part (02/28/2002)
Examples:
ExampleMultisampleBlit.cpp, and ExampleOperators.cpp.

Definition at line 65 of file Vector4.hh.

Member Typedef Documentation

template<class T>
typedef T BIAS::Vector4< T >::value_type

Definition at line 67 of file Vector4.hh.

Constructor & Destructor Documentation

template<class T>
BIAS::Vector4< T >::Vector4 ( )
inline

Definition at line 69 of file Vector4.hh.

template<class T>
BIAS::Vector4< T >::Vector4 ( const Vector4< T > &  vec)
inline

copy constructor

Author
Daniel Grest (06/2003)

Definition at line 74 of file Vector4.hh.

template<class T>
BIAS::Vector4< T >::Vector4 ( const T &  scalar)
inlineexplicit

assignment with a constant value for all elements

Author
Jan Woetzel alpha (03/01/2002)

Definition at line 384 of file Vector4.hh.

template<class T>
BIAS::Vector4< T >::Vector4 ( const T *  pv)
inlineexplicit

assignment with an array of values

which is copied into this ones class members

Author
Jan Woetzel untested (02/28/2002)

Definition at line 406 of file Vector4.hh.

template<class T>
BIAS::Vector4< T >::Vector4 ( char *  s)
inlineexplicit

constructor with element assignment

Author
Jan Woetzel alpha (03/01/2002)

Definition at line 390 of file Vector4.hh.

template<class T>
BIAS::Vector4< T >::Vector4 ( const T  v0,
const T  v1,
const T  v2,
const T  v3 
)
inline

constructor with element assigment using explicit values

Author
Ingo Thomsen tested (03/04/2002)

Definition at line 400 of file Vector4.hh.

template<class T>
Vector4::Vector4 ( const Vector< T > &  v)

cast constructor

Author
Jan Woetzel untested (03/22/2002)

Definition at line 36 of file Vector4.cpp.

References TNT::Vector< T >::size().

template<class T>
BIAS::Vector4< T >::~Vector4 ( )
inline

Definition at line 116 of file Vector4.hh.

Member Function Documentation

template<class T>
void BIAS::Vector4< T >::Add ( const T &  scalar,
Vector4< T > &  dest 
) const
inline

Addition with a scalar, storing results in destionation vector.

Author
Ingo Thomsen

Definition at line 567 of file Vector4.hh.

References BIAS::Vector4< T >::data_.

Referenced by BIAS::Vector4< T >::operator+().

template<class T>
void BIAS::Vector4< T >::Add ( const Vector4< T > &  argvec,
Vector4< T > &  destvec 
) const
inline

adding of two vectors, storing the result in destvec

Author
Ingo Thomsen tested

Definition at line 667 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::AddIP ( const T &  scalar)
inline

Addition (in place) of an scalar.

Author
Ingo Thomsen

Definition at line 561 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::AddIP ( const Vector4< T > &  argvec)
inline

in place adding

Author
Ingo Thomsen tested

Definition at line 661 of file Vector4.hh.

template<class T>
T const* BIAS::Vector4< T >::begin ( ) const
inline

Iterator to first component of vector.

Author
Stefan Reinhold

Definition at line 152 of file Vector4.hh.

template<class T>
T* BIAS::Vector4< T >::begin ( )
inline

Definition at line 155 of file Vector4.hh.

template<class T >
void BIAS::Vector4< T >::clear ( )
inline

Definition at line 710 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::Copy ( const T *  pv)
inline

copy the array of vectorsize beginning at *T to this->data_

Author
Jan Woetzel untested (02/28/2002)

Definition at line 412 of file Vector4.hh.

template<class T>
double BIAS::Vector4< T >::Dist ( const Vector4< T > &  vec) const
inline

Return the euclidean distance of 2 vectors.

Author
Birger Streckel
Date
08/2002

Definition at line 519 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::Divide ( const T &  scalar,
Vector4< T > &  dest 
) const
inline

Division with a scalar, storing results in destionation vector.

Author
Ingo Thomsen

Definition at line 637 of file Vector4.hh.

References BIAS::Vector4< T >::data_.

Referenced by BIAS::Vector4< T >::operator/().

template<class T>
void BIAS::Vector4< T >::DivideIP ( const T &  scalar)
inline

Division (in place) of an scalar.

Author
Ingo Thomsen

Definition at line 633 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::ElementwiseProduct ( const Vector4< T > &  argvec,
Vector4< T > &  destvec 
) const
inline

multiply two vectors elementwise, storing the result in destvec

Author
Jan Woetzel untested (03/06/2002)

Definition at line 491 of file Vector4.hh.

template<class T>
T const* BIAS::Vector4< T >::end ( ) const
inline

Iterator pointing to one element after the last vector element.

Author
Stefan Reinhold

Definition at line 161 of file Vector4.hh.

template<class T>
T* BIAS::Vector4< T >::end ( )
inline

Definition at line 164 of file Vector4.hh.

template<class T>
const T* BIAS::Vector4< T >::GetData ( ) const
inline
template<class T>
T* BIAS::Vector4< T >::GetData ( )
inline

Definition at line 181 of file Vector4.hh.

template<class T>
const unsigned int BIAS::Vector4< T >::GetNumElements ( ) const
inline

Definition at line 145 of file Vector4.hh.

template<class T >
bool Vector4::Load ( const std::string &  filename)

method to load directly from a given filename.

internally using stream operator

Author
Jan Woetzel 09/2005
Returns
false in case of error, true in case of success

Definition at line 50 of file Vector4.cpp.

template<class T>
void BIAS::Vector4< T >::Multiply ( const T &  scalar,
Vector4< T > &  dest 
) const
inline

Multiplication with a scalar, storing results in destionation vector.

Author
Ingo Thomsen

Definition at line 615 of file Vector4.hh.

References BIAS::Vector4< T >::data_.

Referenced by BIAS::Vector4< T >::operator*().

template<class T>
void BIAS::Vector4< T >::MultiplyIP ( const T &  scalar)
inline

Multiplication (in place) of an scalar.

Author
Ingo Thomsen

Definition at line 609 of file Vector4.hh.

Referenced by BIAS::Quaternion< QUAT_TYPE >::Interpolate(), and BIAS::RotationAveraging::QuaternionL2Mean().

template<class T >
T BIAS::Vector4< T >::NormL1 ( ) const
inline

Return the L1 norm: |a| + |b| + |c|+ |d|.

Author
Ingo Thomsen
Date
04/11/2002 untested

Definition at line 501 of file Vector4.hh.

template<class T >
double BIAS::Vector4< T >::NormL2 ( ) const
inline
template<class T>
bool BIAS::Vector4< T >::operator!= ( const Vector4< T > &  arg) const
inline

Comparison operator 'not equal'.

Author
Ingo Thomsen

Definition at line 546 of file Vector4.hh.

template<class T>
Vector4< T > & BIAS::Vector4< T >::operator*= ( const T &  scalar)
inline

Multiplication operator with scalar argument.

Author
Ingo Thomsen tested

Definition at line 602 of file Vector4.hh.

template<class T>
Vector4< T > & BIAS::Vector4< T >::operator+= ( const T &  scalar)
inline

Addition operator with scalar argument.

Author
Ingo Thomsen tested

Definition at line 554 of file Vector4.hh.

template<class T>
Vector4< T > & BIAS::Vector4< T >::operator+= ( const Vector4< T > &  argvec)
inline

add operator for two Vectors

Author
Ingo Thomsen tested

Definition at line 654 of file Vector4.hh.

template<class T>
Vector4< T > & BIAS::Vector4< T >::operator-= ( const T &  scalar)
inline

Substraction operator with scalar argument.

Author
Ingo Thomsen tested

Definition at line 578 of file Vector4.hh.

template<class T>
Vector4< T > & BIAS::Vector4< T >::operator-= ( const Vector4< T > &  argvec)
inline

sub operator for two Vectors

Author
Ingo Thomsen tested

Definition at line 678 of file Vector4.hh.

template<class T>
Vector4< T > & BIAS::Vector4< T >::operator/= ( const T &  scalar)
inline

Division operator with scalar argument.

Author
Ingo Thomsen tested

Definition at line 626 of file Vector4.hh.

template<class T>
Vector4< T > & BIAS::Vector4< T >::operator= ( const T &  scalar)
inline

assignment operator

set the vector elementwise to scalar value

Author
Jan Woetzel alpha (02/28/2002)

Definition at line 449 of file Vector4.hh.

Referenced by BIAS::HomgPlane3D::HomgPlane3D().

template<class T>
Vector4<T>& BIAS::Vector4< T >::operator= ( const Vector4< T > &  vec)
inline

assignment operator

Author
grest 06 2003

Definition at line 194 of file Vector4.hh.

template<class T>
bool BIAS::Vector4< T >::operator== ( const Vector4< T > &  arg) const
inline

Comparison operator 'equal'.

Author
Ingo Thomsen tested

Definition at line 539 of file Vector4.hh.

References BIAS::Vector4< T >::data_.

template<class T >
const T & BIAS::Vector4< T >::operator[] ( const int  i) const
inline

access an element of the vector with 0-based indizes.

read only (no write) member funciton const because it doesn't change this object

Author
Jan Woetzel alpha (03/01/2002)

Definition at line 456 of file Vector4.hh.

template<class T >
T & BIAS::Vector4< T >::operator[] ( const int  i)
inline

access an element of the vector with 0-based indizes.

write allowed

Author
Jan Woetzel alpha (03/01/2002)

Definition at line 464 of file Vector4.hh.

template<class T>
Matrix4x4< T > Vector4::OuterProduct ( const Vector4< T > &  v) const

outer product, constructs a matrix.

Often written as v * v^T for col vectors

Author
frick

Definition at line 79 of file Vector4.cpp.

References BIAS::Vector4< T >::Size().

Referenced by BIAS::PlueckerMatrix::Set().

template<class T >
bool Vector4::Save ( const std::string &  filename) const

method to save directly to a given filename.

internally using stream operator

Author
Jan Woetzel 09/2009
Returns
false in case of error, true in case of success

Definition at line 65 of file Vector4.cpp.

template<class T>
void BIAS::Vector4< T >::ScalarProduct ( const Vector4< T > &  argvec,
T &  result 
) const
inline

scalar product (=inner product) of two vectors, storing

the result in result

Author
Jan Woetzel untested

Definition at line 475 of file Vector4.hh.

Referenced by BIAS::PMatrix::GetIntersectionOfImagePlanes(), BIAS::Quaternion< QUAT_TYPE >::Interpolate(), BIAS::Quaternion< QUAT_TYPE >::InterpolateLinear(), and BIAS::Vector4< T >::operator*().

template<class T>
T BIAS::Vector4< T >::ScalarProduct ( const Vector4< T > &  argvec) const
inline

Definition at line 482 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::Set ( const T &  scalar)
inline

set all elements to a scalat value

Author
Jan Woetzel untested (02/28/2002)

Definition at line 421 of file Vector4.hh.

Referenced by BIAS::DistortionRendering::DistortionRendering(), BIAS::OpenGLCanvasBase::GetPixelValueRGBA(), BIAS::GLProjectionOutputAttachment::InitShader(), BIAS::RMatrix::RMatrix(), and BIAS::HomgPoint3D::Set().

template<class T>
void BIAS::Vector4< T >::Set ( const T &  x,
const T &  y,
const T &  z,
const T &  w 
)
inline

set elementwise with given scalr values

Author
Jan Woetzel, Ingo Thomsen tested (02/28/2002)

Definition at line 427 of file Vector4.hh.

template<class T >
void BIAS::Vector4< T >::SetZero ( )
inline

set all values to 0

Author
Jan Woetzel

Definition at line 702 of file Vector4.hh.

Referenced by BIAS::RotationAveraging::ChordalL2Mean(), and BIAS::RotationAveraging::QuaternionL2Mean().

template<class T >
const unsigned int BIAS::Vector4< T >::Size ( ) const
inline
@return the size of this vector
Author
Jan Woetzel (02/28/2002)

Definition at line 442 of file Vector4.hh.

Referenced by BIAS::Vector4< T >::operator>>(), BIAS::operator>>(), and BIAS::Vector4< T >::OuterProduct().

template<class T >
const unsigned int BIAS::Vector4< T >::size ( ) const
inline
template<class T>
void BIAS::Vector4< T >::Sub ( const T &  scalar,
Vector4< T > &  dest 
) const
inline

Substraction with a scalar, storing results in destionation vector.

Author
Ingo Thomsen

Definition at line 591 of file Vector4.hh.

References BIAS::Vector4< T >::data_.

Referenced by BIAS::TrackballControl::MiddleMouseMoved(), and BIAS::Vector4< T >::operator-().

template<class T>
void BIAS::Vector4< T >::Sub ( const Vector4< T > &  argvec,
Vector4< T > &  destvec 
) const
inline

subtracting of two Vectors, storing the result in destvec

Author
Ingo Thomsen tested

Definition at line 691 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::SubIP ( const T &  scalar)
inline

Substraction (in place) of an scalar.

Author
Ingo Thomsen

Definition at line 585 of file Vector4.hh.

template<class T>
void BIAS::Vector4< T >::SubIP ( const Vector4< T > &  argvec)
inline

in place substraction

Author
Ingo Thomsen tested

Definition at line 685 of file Vector4.hh.

template<class T >
Matrix< T > BIAS::Vector4< T >::transposed ( ) const
inline

return a new Matrix with 1 row and 4 columns representing a

transposed vector

Definition at line 528 of file Vector4.hh.

References BIAS::Matrix< T >::GetData().

Friends And Related Function Documentation

template<class T >
Vector4< T > operator* ( const Vector4< T > &  v,
const T &  scalar 
)
related

Multiplication operator with scalar argument, returning new vector

Author
Ingo Thomsen, tested

Definition at line 232 of file Operators.hh.

References BIAS::Vector4< T >::Multiply().

template<class T >
Vector4< T > operator* ( const T &  scalar,
const Vector4< T > &  v 
)
related

Multiplication operator with scalar argument, returning new vector

Author
Ingo Thomsen, tested

Definition at line 243 of file Operators.hh.

References BIAS::Vector4< T >::Multiply().

template<class T >
T operator* ( const Vector4< T > &  v,
const Vector4< T > &  argvec 
)
related

op* to multiply two vectors by their dotproduct

Author
Jan Woetzel, untested (03/06/2002)

Definition at line 495 of file Operators.hh.

References BIAS::Vector4< T >::ScalarProduct().

template<class T >
Vector4< T > operator* ( const Matrix4x4< T > &  mat,
const Vector4< T > &  argvec 
)
related

matrix-vector multiplication using 'Mult'

Author
Jan Woetzel, untested (04/17/2002)

Definition at line 651 of file Operators.hh.

References BIAS::Matrix4x4< T >::Mult().

template<class T >
Vector3< T > operator* ( const Matrix3x4< T > &  mat,
const Vector4< T > &  argvec 
)
related

Definition at line 724 of file Operators.hh.

References BIAS::Matrix3x4< T >::Mult().

template<class T >
Vector< T > operator* ( const BIAS::Matrix< T > &  mat,
const Vector4< T > &  vec 
)
related
template<class T >
Vector4< T > operator+ ( const Vector4< T > &  v,
const T &  scalar 
)
related

Addition operator with scalar argument, returning new vector

Author
Ingo Thomsen, tested

Definition at line 271 of file Operators.hh.

References BIAS::Vector4< T >::Add().

template<class T >
Vector4< T > operator+ ( const Vector4< T > &  v,
const Vector4< T > &  argvec 
)
related

add operator for two Vectors, returning new vector

Author
Ingo Thomsen, tested

Definition at line 517 of file Operators.hh.

References BIAS::Vector4< T >::Add().

template<class T >
Vector4< T > operator- ( const Vector4< T > &  v)
related
Author
herzog 2005-07-19

Definition at line 66 of file Operators.hh.

template<class T >
Vector4< T > operator- ( const Vector4< T > &  v,
const T &  scalar 
)
related

Subtraction operator with scalar argument, returning new vector

Author
Ingo Thomsen, tested

Definition at line 282 of file Operators.hh.

References BIAS::Vector4< T >::Sub().

template<class T >
Vector4< T > operator- ( const Vector4< T > &  v,
const Vector4< T > &  argvec 
)
related

sub operator for two Vectors, returning new vector

Author
Ingo Thomsen, tested

Definition at line 506 of file Operators.hh.

References BIAS::Vector4< T >::Sub().

template<class T >
Vector4< T > operator/ ( const Vector4< T > &  v,
const T &  scalar 
)
related

Division operator with scalar argument, returning new vector

Author
Ingo Thomsen, tested

Definition at line 254 of file Operators.hh.

References BIAS::Vector4< T >::Divide().

template<class T >
bool operator< ( const Vector4< T > &  a,
const Vector4< T > &  b 
)
related
Author
Dennis Herzog, 2005-07-27

Definition at line 476 of file Operators.hh.

template<class T>
std::ostream & operator<< ( std::ostream &  os,
const Vector4< unsigned char > &  vec 
)
related

Input with streams specialization for numerical display of unsigned char instead of alphebetically. fout format should be consistent with template implementation and Vector<>

Author
Jan Woetzel

Definition at line 729 of file Vector4.hh.

References BIAS::IsConsoleStream().

template<class T >
std::ostream & operator<< ( std::ostream &  os,
const Vector4< T > &  vec 
)
related

Input with streams fout format should be consistent with template implementation and Vector<>

Author
Jan Woetzel

Definition at line 775 of file Vector4.hh.

References BIAS::IsConsoleStream().

template<class T >
bool operator<= ( const Vector4< T > &  a,
const Vector4< T > &  b 
)
related
Author
Dennis Herzog, 2005-07-27
Dennis Herzog, 2005-07-27
Dennis Herzog, 2005-07-27

Definition at line 470 of file Operators.hh.

template<class T >
bool operator> ( const Vector4< T > &  a,
const Vector4< T > &  b 
)
related
Author
Dennis Herzog, 2005-07-27

Definition at line 488 of file Operators.hh.

template<class T >
bool operator>= ( const Vector4< T > &  a,
const Vector4< T > &  b 
)
related
Author
Dennis Herzog, 2005-07-27

Definition at line 482 of file Operators.hh.

template<class T>
std::istream & operator>> ( std::istream &  is,
Vector4< unsigned char > &  vec 
)
related

Input with streams specialization for numerical display of unsigned char instead of alphebetically. fout format should be consistent with template implementation and Vector<>

Author
Jan Woetzel

Definition at line 805 of file Vector4.hh.

References BIAS::Vector4< T >::GetData(), and BIAS::Vector4< T >::Size().

template<class T >
std::istream & operator>> ( std::istream &  is,
Vector4< T > &  vec 
)
related

Input with streams fout format should be consistent with template implementation and Vector<>

Author
Jan Woetzel

Definition at line 851 of file Vector4.hh.

References BIAS::Vector4< T >::GetData(), and BIAS::Vector4< T >::Size().

Member Data Documentation

template<class T>
T BIAS::Vector4< T >::data_[VECTOR4SIZE]
protected

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