ITK
5.2.0
Insight Toolkit
|
#include <itkVariableLengthVector.h>
Public Types | |
using | RealValueType = typename NumericTraits< ResType >::RealType |
using | ResType = typename mpl::PromoteType< typename Details::GetType< TExpr1 >::Type, typename Details::GetType< TExpr2 >::Type >::Type |
Public Member Functions | |
unsigned int | Size () const |
VariableLengthVectorExpression (TExpr1 const &lhs, TExpr2 const &rhs) | |
const TExpr1 & | m_lhs |
const TExpr2 & | m_rhs |
ResType | operator[] (unsigned int idx) const |
RealValueType | GetNorm () const |
RealValueType | GetSquaredNorm () const |
Expression Template for VariableLengthVector
. Contains an expression template that models a binary operation between two sub expressions (of type VariableLengthVector
, or VariableLengthVectorExpression
)
TExpr1 | Type of the left sub-expression |
TExpr2 | Type of the right sub-expression |
TBinaryOp | Binary Operation to apply to both sub-expressions. |
VariableLengthVector<float>
with a VariableLengthVector<double>
, the result will be of type VariableLengthVector<double>
.VariableLengthVector<>
will defeat the purpose of the optimization implemented here. It's thus best to let the expression automatically adjust to the type with the most precision. Eventually, when assigning to the final destination (a VariableLengthVector<>
), a casting on-the-fly could be realized by the assignment operator, or by the copy constructor.operator-()
.Definition at line 1233 of file itkVariableLengthVector.h.
using VariableLengthVectorExpression< TExpr1, TExpr2, TBinaryOp >::RealValueType = typename NumericTraits<ResType>::RealType |
Real type of the elements.
Definition at line 1256 of file itkVariableLengthVector.h.
using VariableLengthVectorExpression< TExpr1, TExpr2, TBinaryOp >::ResType = typename mpl::PromoteType<typename Details::GetType<TExpr1>::Type, typename Details::GetType<TExpr2>::Type>::Type |
Vector type of the Result Expression.
Definition at line 1254 of file itkVariableLengthVector.h.
|
inline |
Definition at line 1235 of file itkVariableLengthVector.h.
References itkStaticAssert.
RealValueType VariableLengthVectorExpression< TExpr1, TExpr2, TBinaryOp >::GetNorm | ( | ) | const |
Returns vector's Euclidean Norm
RealValueType VariableLengthVectorExpression< TExpr1, TExpr2, TBinaryOp >::GetSquaredNorm | ( | ) | const |
Returns vector's squared Euclidean Norm
|
inline |
Element access operator.
idx < Size()
Definition at line 1268 of file itkVariableLengthVector.h.
|
inline |
Returns the size of the vector expression.
Definition at line 1247 of file itkVariableLengthVector.h.
|
private |
Element access operator.
idx < Size()
Definition at line 1284 of file itkVariableLengthVector.h.
|
private |
Element access operator.
idx < Size()
Definition at line 1285 of file itkVariableLengthVector.h.