18 #ifndef itkNumericTraitsVectorPixel_h
19 #define itkNumericTraitsVectorPixel_h
30 template<
typename T,
unsigned int D >
111 return NonpositiveMin();
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
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
typename NumericTraits< T >::AbsType ElementAbsType
static unsigned int GetLength()
Define numeric traits for std::vector.
static const Self ITKCommon_EXPORT One
static const Self ZeroValue()
ElementRealType ScalarRealType
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 &)
A templated class holding a n-Dimensional vector.
static bool IsPositive(const Self &a)
typename NumericTraits< T >::PrintType ElementPrintType
static const Self ITKCommon_EXPORT Zero
typename NumericTraits< T >::FloatType ElementFloatType
static const Self min(const Self &)
static const Self OneValue()
static bool IsNegative(const Self &a)
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static void SetLength(Vector< T, D > &m, const unsigned int s)
static void AssignToArray(const Self &v, TArray &mv)
static bool IsNonpositive(const Self &a)
typename NumericTraits< T >::RealType ElementRealType
static bool IsNonnegative(const Self &a)
static const Self max(const Self &)
static unsigned int GetLength(const Vector< T, D > &)