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 ))
207 template<
typename TArray>
210 for(
unsigned int i=0; i<
GetLength(v); i++ )
216 #if !defined(ITK_LEGACY_REMOVE)
222 itkLegacyMacro(
static const Self
Zero(
const Self & a))
230 itkLegacyMacro(
static const Self
One(
const Self & a))
234 b.Fill(NumericTraits< T >::OneValue());
242 #endif // itkNumericTraitsVariableLengthVector_h
static bool IsPositive(const Self &a)
static void AssignToArray(const Self &v, TArray &mv)
static bool IsNonpositive(const Self &a)
unsigned int Size(void) const
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static const Self NonpositiveMin(const Self &a)
static bool IsNonnegative(const Self &a)
ElementRealType ScalarRealType
static const Self ZeroValue(const Self &a)
VariableLengthVector< ElementAbsType > AbsType
VariableLengthVector< T > Self
VariableLengthVector< ElementAccumulateType > AccumulateType
Self MeasurementVectorType
unsigned int GetSize(void) const
VariableLengthVector< ElementFloatType > FloatType
NumericTraits< T >::AbsType ElementAbsType
static const Self OneValue(const Self &a)
Represents an array whose length can be defined at run-time.
static unsigned int GetLength()
NumericTraits< T >::PrintType ElementPrintType
NumericTraits< T >::AccumulateType ElementAccumulateType
static bool IsNegative(const Self &a)
static unsigned int GetLength(const VariableLengthVector< T > &m)
static void SetLength(VariableLengthVector< T > &m, const unsigned int s)
VariableLengthVector< ElementPrintType > PrintType
NumericTraits< T >::RealType ElementRealType
static const Self max(const Self &a)
VariableLengthVector< ElementRealType > RealType
void SetSize(unsigned int sz, bool destroyExistingData=true)
Define additional traits for native types such as int or float.
void Fill(TValue const &v)
static const Self min(const Self &a)
NumericTraits< T >::FloatType ElementFloatType