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 ITK_CONSTEXPR_VAR bool IsComplex
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)
static ITK_CONSTEXPR_VAR bool IsInteger
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
static ITK_CONSTEXPR_VAR bool IsSigned
Define additional traits for native types such as int or float.
void SetSize(unsigned int sz, TReallocatePolicy reallocatePolicy, TKeepValuesPolicy keepValues)
void Fill(TValue const &v)
static const Self min(const Self &a)
NumericTraits< T >::FloatType ElementFloatType