18 #ifndef itkNumericTraitsArrayPixel_h
19 #define itkNumericTraitsArrayPixel_h
29 template<
typename T >
135 template<
typename TArray>
138 for(
unsigned int i=0; i<
GetLength(v); i++ )
144 #if !defined(ITK_LEGACY_REMOVE)
150 itkLegacyMacro(
static const Self
Zero(
const Self & a))
159 itkLegacyMacro(
static const Self
One(
const Self & a))
162 b.Fill(NumericTraits< T >::OneValue());
171 #endif // itkNumericTraitsArrayPixel_h
static const Self OneValue(const Self &a)
Array class with size defined at construction time.
Array< ElementAccumulateType > AccumulateType
Array< ElementPrintType > PrintType
Array< ElementAbsType > AbsType
NumericTraits< T >::AccumulateType ElementAccumulateType
NumericTraits< T >::RealType ElementRealType
static const bool IsSigned
static void SetLength(Array< T > &m, const unsigned int s)
static const Self ZeroValue(const Self &a)
static const Self min(const Self &a)
static const Self max(const Self &a)
void Fill(TValue const &v)
void SetSize(SizeValueType sz)
static const Self NonpositiveMin(const Self &a)
ElementRealType ScalarRealType
static unsigned int GetLength()
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
SizeValueType GetSize(void) const
static void AssignToArray(const Self &v, TArray &mv)
Array< ElementRealType > RealType
NumericTraits< T >::FloatType ElementFloatType
SizeValueType Size(void) const
static const bool IsInteger
NumericTraits< T >::PrintType ElementPrintType
static const bool IsComplex
Define additional traits for native types such as int or float.
NumericTraits< T >::AbsType ElementAbsType
Array< ElementFloatType > FloatType
Self MeasurementVectorType
static unsigned int GetLength(const Array< T > &m)