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++ )
220 #if !defined(ITK_LEGACY_REMOVE)
226 itkLegacyMacro(
static const Self
Zero(
const Self & a))
234 itkLegacyMacro(
static const Self
One(
const Self & a))
238 b.Fill(NumericTraits< T >::OneValue());
246 #endif // itkNumericTraitsVariableLengthVector_h
static bool IsPositive(const Self &a)
static void AssignToArray(const Self &v, TArray &mv)
static bool IsNonpositive(const Self &a)
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 bool IsSigned
static const Self ZeroValue(const Self &a)
VariableLengthVector< ElementAbsType > AbsType
VariableLengthVector< T > Self
VariableLengthVector< ElementAccumulateType > AccumulateType
Self MeasurementVectorType
unsigned int Size(void) const noexcept
VariableLengthVector< ElementFloatType > FloatType
NumericTraits< T >::AbsType ElementAbsType
static const Self OneValue(const Self &a)
void Fill(TValue const &v) noexcept
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
static const bool IsInteger
static const bool IsComplex
Define additional traits for native types such as int or float.
unsigned int GetSize(void) const noexcept
void SetSize(unsigned int sz, TReallocatePolicy reallocatePolicy, TKeepValuesPolicy keepValues)
static const Self min(const Self &a)
NumericTraits< T >::FloatType ElementFloatType