18 #ifndef itkNumericTraitsVariableLengthVectorPixel_h
19 #define itkNumericTraitsVariableLengthVectorPixel_h
53 template<
typename T >
138 for (
unsigned int i=0; i < GetLength( a ); i++)
151 for (
unsigned int i=0; i < GetLength( a ); i++)
153 if ( ! (a[i] > 0.0 ) )
164 for (
unsigned int i=0; i < GetLength( a ); i++)
177 for (
unsigned int i=0; i < GetLength( a ); i++)
179 if ( ! (a[i] < 0.0 ))
211 template<
typename TArray>
214 for(
unsigned int i=0; i<GetLength(v); i++ )
223 #endif // itkNumericTraitsVariableLengthVector_h
static bool IsPositive(const Self &a)
static void AssignToArray(const Self &v, TArray &mv)
static bool IsNonpositive(const Self &a)
Define numeric traits for std::vector.
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
typename NumericTraits< T >::AbsType ElementAbsType
static const Self NonpositiveMin(const Self &a)
typename NumericTraits< T >::AccumulateType ElementAccumulateType
static bool IsNonnegative(const Self &a)
typename NumericTraits< T >::PrintType ElementPrintType
static const Self ZeroValue(const Self &a)
typename NumericTraits< T >::FloatType ElementFloatType
unsigned int GetSize() const
static const Self OneValue(const Self &a)
Represents an array whose length can be defined at run-time.
static bool IsNegative(const Self &a)
static unsigned int GetLength(const VariableLengthVector< T > &m)
static void SetLength(VariableLengthVector< T > &m, const unsigned int s)
unsigned int Size() const
typename NumericTraits< T >::RealType ElementRealType
static const Self max(const Self &a)
ElementRealType ScalarRealType
void SetSize(unsigned int sz, TReallocatePolicy reallocatePolicy, TKeepValuesPolicy keepValues)
void Fill(TValue const &v)
static const Self min(const Self &a)