nemo/Vector.h File Reference

Go to the source code of this file.

Classes

class  nemo::VectorDimension
 Represents the dimension of a MathVector. More...
class  nemo::MathVector< T >
 This class represents a mathematical vector of some data type T. More...
class  nemo::MathVector< T >::CWise
 This class provides component-wise mathematical operations on vectors that are not covered by standard operators/methods in the MathVector class. More...
class  nemo::VectorTranspose< T >
 Represents the "transpose" of a vector. More...

Namespaces

namespace  nemo

Defines

#define _nemo_vector_inversion_(TYPE)
#define _nemo_vector_cwise_inversion_(TYPE)

Typedefs

typedef MathVector< int > nemo::IntVector
typedef MathVector< double > nemo::RealVector

Functions

static VectorDimension nemo::dim (unsigned int d)
 Neat factory method for VectorDimension objects to be put into MathVector objects.
template<class T >
std::ostream & nemo::operator<< (std::ostream &out, const MathVector< T > &vec)
template<class T >
std::ostream & nemo::operator<< (std::ostream &out, const VectorTranspose< T > &vecT)

Define Documentation

#define _nemo_vector_cwise_inversion_ ( TYPE   ) 
Value:
_nemo_vector_inversion_(TYPE) \
template <> inline MathVector<TYPE>::CWise leftMultInverse<>(const MathVector<TYPE>::CWise &value){ \
    return ((MathVector<TYPE>)value).map(((TYPE)1.0)/arg<TYPE>()).cwise(); \
}  \
template <> inline MathVector<TYPE>::CWise rightMultInverse<>(const MathVector<TYPE>::CWise &value){ \
    return ((MathVector<TYPE>)value).map(((TYPE)1.0)/arg<TYPE>()).cwise(); \
}  \
template <> inline MathVector<TYPE>::CWise leftDivideInverse<>(const MathVector<TYPE>::CWise &value){ \
    return value; \
}  \
template <> inline MathVector<TYPE>::CWise rightDivideInverse<>(const MathVector<TYPE>::CWise &value){ \
    return ((MathVector<TYPE>)value).map(((TYPE)1.0)/arg<TYPE>()).cwise(); \
}

Definition at line 1156 of file Vector.h.

#define _nemo_vector_inversion_ ( TYPE   ) 
Value:
template <> inline MathVector<TYPE> leftAddInverse<MathVector<TYPE> >(const MathVector<TYPE> &value){return -value;}  \
template <> inline MathVector<TYPE> rightAddInverse<MathVector<TYPE> >(const MathVector<TYPE> &value){return -value;}  \
template <> inline MathVector<TYPE> leftSubtractInverse<MathVector<TYPE> >(const MathVector<TYPE> &value){return value;}  \
template <> inline MathVector<TYPE> rightSubtractInverse<MathVector<TYPE> >(const MathVector<TYPE> &value){return -value;}

Definition at line 1141 of file Vector.h.

Generated on Mon Feb 25 12:49:59 2013 for NemoMath by  doxygen 1.6.3