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

Declaration of vctDynamicConstVectorBase. More...

#include <cisstCommon/cmnPortability.h>
#include <cisstCommon/cmnTypeTraits.h>
#include <cisstCommon/cmnThrow.h>
#include <cisstCommon/cmnAssert.h>
#include <cisstCommon/cmnSerializer.h>
#include <cisstVector/vctContainerTraits.h>
#include <cisstVector/vctDynamicVectorLoopEngines.h>
#include <cisstVector/vctUnaryOperations.h>
#include <cisstVector/vctBinaryOperations.h>
#include <cisstVector/vctFastCopy.h>
#include <cisstVector/vctForwardDeclarations.h>
#include <iostream>
#include <iomanip>
#include <sstream>

Go to the source code of this file.

Classes

class  vctDynamicConstVectorBase< _vectorOwnerType, _elementType >
 
class  vctDynamicConstVectorBase< _vectorOwnerType, _elementType >::ConstSubvector
 

Macros

#define _vctDynamicConstVectorBase_h
 

Functions

template<class _vectorOwnerType , class __vectorOwnerType , class _elementType , class _elementOperationType >
vctReturnDynamicVector< bool > vctDynamicVectorElementwiseCompareVector (const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &vector1, const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &vector2)
 
template<class _vectorOwnerType , class _elementType , class _elementOperationType >
vctReturnDynamicVector< bool > vctDynamicVectorElementwiseCompareScalar (const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &vector, const _elementType &scalar)
 
template<class _vector1OwnerType , class _vector2OwnerType , class _elementType >
_elementType vctDotProduct (const vctDynamicConstVectorBase< _vector1OwnerType, _elementType > &vector1, const vctDynamicConstVectorBase< _vector2OwnerType, _elementType > &vector2)
 
template<class _vector1OwnerType , class _vector2OwnerType , class _elementType >
_elementType operator* (const vctDynamicConstVectorBase< _vector1OwnerType, _elementType > &vector1, const vctDynamicConstVectorBase< _vector2OwnerType, _elementType > &vector2)
 
template<class _vectorOwnerType , typename _elementType >
bool vctAll (const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &vector)
 
template<class _vectorOwnerType , typename _elementType >
bool vctAny (const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &vector)
 
template<class _vectorOwnerType , typename _elementType >
std::ostream & operator<< (std::ostream &output, const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &vector)
 
template<vct::size_type __size, class _vectorOwnerType , class __elementType >
std::ostream & operator<< (std::ostream &output, const vctDynamicConstVectorBase< _vectorOwnerType, vctFixedSizeVector< __elementType, __size > > &vector)
 
template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType , class _vectorOwnerType >
void vctFixedSizeVectorBaseAssignDynamicConstVectorBase (vctFixedSizeVectorBase< _size, _stride, _elementType, _dataPtrType > &fixedSizeVector, const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &dynamicVector)
 

Detailed Description

Declaration of vctDynamicConstVectorBase.

Macro Definition Documentation

#define _vctDynamicConstVectorBase_h

Function Documentation

template<class _vector1OwnerType , class _vector2OwnerType , class _elementType >
_elementType operator* ( const vctDynamicConstVectorBase< _vector1OwnerType, _elementType > &  vector1,
const vctDynamicConstVectorBase< _vector2OwnerType, _elementType > &  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<class _vectorOwnerType , typename _elementType >
std::ostream& operator<< ( std::ostream &  output,
const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &  vector 
)

Stream out operator.

template<vct::size_type __size, class _vectorOwnerType , class __elementType >
std::ostream& operator<< ( std::ostream &  output,
const vctDynamicConstVectorBase< _vectorOwnerType, vctFixedSizeVector< __elementType, __size > > &  vector 
)
template<class _vectorOwnerType , typename _elementType >
bool vctAll ( const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &  vector)
inline

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

template<class _vectorOwnerType , typename _elementType >
bool vctAny ( const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &  vector)
inline

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

template<class _vector1OwnerType , class _vector2OwnerType , class _elementType >
_elementType vctDotProduct ( const vctDynamicConstVectorBase< _vector1OwnerType, _elementType > &  vector1,
const vctDynamicConstVectorBase< _vector2OwnerType, _elementType > &  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<class _vectorOwnerType , class _elementType , class _elementOperationType >
vctReturnDynamicVector<bool> vctDynamicVectorElementwiseCompareScalar ( const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &  vector,
const _elementType &  scalar 
)
inline
template<class _vectorOwnerType , class __vectorOwnerType , class _elementType , class _elementOperationType >
vctReturnDynamicVector<bool> vctDynamicVectorElementwiseCompareVector ( const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &  vector1,
const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &  vector2 
)
inline
template<vct::size_type _size, vct::stride_type _stride, class _elementType , class _dataPtrType , class _vectorOwnerType >
void vctFixedSizeVectorBaseAssignDynamicConstVectorBase ( vctFixedSizeVectorBase< _size, _stride, _elementType, _dataPtrType > &  fixedSizeVector,
const vctDynamicConstVectorBase< _vectorOwnerType, _elementType > &  dynamicVector 
)
inline