18 #ifndef itkNumericTraitsVectorPixel_h
19 #define itkNumericTraitsVectorPixel_h
30 template<
typename T,
unsigned int D >
127 for (
unsigned int i=0; i <
GetLength( a ); i++)
140 for (
unsigned int i=0; i <
GetLength( a ); i++)
142 if ( ! (a[i] > 0.0 ) )
153 for (
unsigned int i=0; i <
GetLength( a ); i++)
166 for (
unsigned int i=0; i <
GetLength( a ); i++)
168 if ( ! (a[i] < 0.0 ))
187 itkGenericExceptionMacro(<<
"Cannot set the size of a Vector of length "
188 << D <<
" to " << s);
211 template<
typename TArray>
214 for(
unsigned int i=0; i<D; i++ )
228 #endif // itkNumericTraitsVectorPixel_h
NumericTraits< T >::AccumulateType ElementAccumulateType
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
Vector< ElementRealType, D > RealType
Vector< ElementPrintType, D > PrintType
static ITK_CONSTEXPR_VAR bool IsComplex
static unsigned int GetLength()
NumericTraits< T >::FloatType ElementFloatType
static const Self ITKCommon_EXPORT One
static const Self ZeroValue()
static ITK_CONSTEXPR_VAR bool IsInteger
void Fill(const ValueType &)
static const Self NonpositiveMin(const Self &)
static const Self NonpositiveMin()
static const Self OneValue(const Self &)
static const Self ZeroValue(const Self &)
Self MeasurementVectorType
Vector< ElementFloatType, D > FloatType
A templated class holding a n-Dimensional vector.
static unsigned int GetLength()
static bool IsPositive(const Self &a)
Vector< ElementAbsType, D > AbsType
Vector< ElementAccumulateType, D > AccumulateType
static const Self ITKCommon_EXPORT Zero
NumericTraits< T >::PrintType ElementPrintType
static const Self min(const Self &)
static const Self OneValue()
static bool IsNegative(const Self &a)
static void SetLength(Vector< T, D > &m, const unsigned int s)
static ITK_CONSTEXPR_FUNC T NonpositiveMin()
ElementRealType ScalarRealType
static ITK_CONSTEXPR_VAR bool IsSigned
static void AssignToArray(const Self &v, TArray &mv)
static bool IsNonpositive(const Self &a)
NumericTraits< T >::AbsType ElementAbsType
static bool IsNonnegative(const Self &a)
Define additional traits for native types such as int or float.
NumericTraits< T >::RealType ElementRealType
static const Self max(const Self &)
static unsigned int GetLength(const Vector< T, D > &)