cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Functions
vctFixedSizeConstVectorBase.h File Reference

Declaration of vctFixedSizeConstVectorBase. More...

#include <iostream>
#include <iomanip>
#include <sstream>
#include <cisstCommon/cmnPortability.h>
#include <cisstCommon/cmnAssert.h>
#include <cisstCommon/cmnThrow.h>
#include <cisstCommon/cmnTypeTraits.h>
#include <cisstCommon/cmnSerializer.h>
#include <cisstCommon/cmnDeSerializer.h>
#include <cisstVector/vctFixedSizeVectorTraits.h>
#include <cisstVector/vctBinaryOperations.h>
#include <cisstVector/vctUnaryOperations.h>
#include <cisstVector/vctStoreBackBinaryOperations.h>
#include <cisstVector/vctStoreBackUnaryOperations.h>
#include <cisstVector/vctFixedSizeVectorRecursiveEngines.h>
#include <cisstVector/vctFastCopy.h>
#include <cisstVector/vctForwardDeclarations.h>

Go to the source code of this file.

Classes

class  vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >
 A template for a fixed length vector with fixed spacing in memory. More...
 
class  vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType >::ConstSubvector< _subSize >
 

Macros

#define _vctFixedSizeConstVectorBase_h
 

Functions

template<vct::size_type _size, vct::stride_type _stride, class _dataPtrType , vct::stride_type __stride, class __dataPtrType , class _elementType , class _elementOperationType >
vctFixedSizeVector< bool, _size > vctFixedSizeVectorElementwiseCompareVector (const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &vector1, const vctFixedSizeConstVectorBase< _size, __stride, _elementType, __dataPtrType > &vector2)
 
template<vct::size_type _size, vct::stride_type _stride, class _dataPtrType , class _elementType , class _elementOperationType >
vctFixedSizeVector< bool, _size > vctFixedSizeVectorElementwiseCompareScalar (const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &vector, const _elementType &scalar)
 
template<vct::size_type _size, vct::stride_type _vector1Stride, class _vector1Data , vct::stride_type _vector2Stride, class _vector2Data , class _elementType >
_elementType vctDotProduct (const vctFixedSizeConstVectorBase< _size, _vector1Stride, _elementType, _vector1Data > &vector1, const vctFixedSizeConstVectorBase< _size, _vector2Stride, _elementType, _vector2Data > &vector2)
 
template<vct::size_type _size, vct::stride_type _vector1Stride, class _vector1Data , vct::stride_type _vector2Stride, class _vector2Data , class _elementType >
_elementType operator* (const vctFixedSizeConstVectorBase< _size, _vector1Stride, _elementType, _vector1Data > &vector1, const vctFixedSizeConstVectorBase< _size, _vector2Stride, _elementType, _vector2Data > &vector2)
 
template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType >
bool vctAll (const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &vector)
 
template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType >
bool vctAny (const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &vector)
 
template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType >
std::ostream & operator<< (std::ostream &output, const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &vector)
 

Detailed Description

Declaration of vctFixedSizeConstVectorBase.

Macro Definition Documentation

#define _vctFixedSizeConstVectorBase_h

Function Documentation

template<vct::size_type _size, vct::stride_type _vector1Stride, class _vector1Data , vct::stride_type _vector2Stride, class _vector2Data , class _elementType >
_elementType operator* ( const vctFixedSizeConstVectorBase< _size, _vector1Stride, _elementType, _vector1Data > &  vector1,
const vctFixedSizeConstVectorBase< _size, _vector2Stride, _elementType, _vector2Data > &  vector2 
)
inline

Dot product of two vectors of the same type and size.

Parameters
vector1first operand of the dot product.
vector2second operand of the dot product.
Returns
The dot product of vector1 and vector2.
template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType >
std::ostream& operator<< ( std::ostream &  output,
const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &  vector 
)

Stream out operator.

template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType >
bool vctAll ( const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &  vector)
inline

Return true if all the elements of the vector are nonzero, false otherwise

template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType >
bool vctAny ( const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &  vector)
inline

Return true if any element of the vector is nonzero, false otherwise

template<vct::size_type _size, vct::stride_type _vector1Stride, class _vector1Data , vct::stride_type _vector2Stride, class _vector2Data , class _elementType >
_elementType vctDotProduct ( const vctFixedSizeConstVectorBase< _size, _vector1Stride, _elementType, _vector1Data > &  vector1,
const vctFixedSizeConstVectorBase< _size, _vector2Stride, _elementType, _vector2Data > &  vector2 
)
inline

Dot product of two vectors of the same type and size.

Parameters
vector1first operand of the dot product.
vector2second operand of the dot product.
Returns
The dot product of vector1 and vector2.
template<vct::size_type _size, vct::stride_type _stride, class _dataPtrType , class _elementType , class _elementOperationType >
vctFixedSizeVector<bool, _size> vctFixedSizeVectorElementwiseCompareScalar ( const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &  vector,
const _elementType &  scalar 
)
inline
template<vct::size_type _size, vct::stride_type _stride, class _dataPtrType , vct::stride_type __stride, class __dataPtrType , class _elementType , class _elementOperationType >
vctFixedSizeVector<bool, _size> vctFixedSizeVectorElementwiseCompareVector ( const vctFixedSizeConstVectorBase< _size, _stride, _elementType, _dataPtrType > &  vector1,
const vctFixedSizeConstVectorBase< _size, __stride, _elementType, __dataPtrType > &  vector2 
)
inline