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 ))
183 itkGenericExceptionMacro(<<
"Cannot set the size of a Vector of length "
184 << D <<
" to " << s);
207 template<
typename TArray>
210 for(
unsigned int i=0; i<D; i++ )
224 #endif // __itkNumericTraitsVectorPixel_h
NumericTraits< T >::AccumulateType ElementAccumulateType
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
Vector< ElementRealType, D > RealType
Vector< ElementPrintType, D > PrintType
static unsigned int GetLength()
NumericTraits< T >::FloatType ElementFloatType
static const Self ITKCommon_EXPORT One
static const Self ZeroValue()
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)
ElementRealType ScalarRealType
static void AssignToArray(const Self &v, TArray &mv)
static bool IsNonpositive(const Self &a)
NumericTraits< T >::AbsType ElementAbsType
static T NonpositiveMin()
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 > &)