|
ITK
6.0.0
Insight Toolkit
|
Go to the documentation of this file.
18 #ifndef itkNumericTraitsArrayPixel_h
19 #define itkNumericTraitsArrayPixel_h
115 static constexpr
bool IsSigned = std::is_signed_v<ValueType>;
116 static constexpr
bool IsInteger = std::is_integral_v<ValueType>;
141 template <
typename TArray>
145 for (
unsigned int i = 0; i <
GetLength(v); ++i)
153 #endif // itkNumericTraitsArrayPixel_h
static const Self NonpositiveMin(const Self &a)
typename NumericTraits< T >::FloatType ElementFloatType
typename NumericTraits< T >::AccumulateType ElementAccumulateType
void Fill(const TValue &v)
static void AssignToArray(const Self &v, TArray &mv)
static constexpr bool IsSigned
static constexpr bool IsInteger
static vcl_size_t GetLength(const Array< T > &m)
SizeValueType GetSize() const
static const Self OneValue(const Self &a)
ElementRealType ScalarRealType
Define additional traits for native types such as int or float.
typename NumericTraits< T >::AbsType ElementAbsType
typename NumericTraits< T >::PrintType ElementPrintType
typename NumericTraits< T >::RealType ElementRealType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
static unsigned int GetLength()
static constexpr bool IsComplex
static const Self ZeroValue(const Self &a)
static void SetLength(Array< T > &m, const unsigned int s)
Array class with size defined at construction time.
SizeValueType Size() const
static const Self max(const Self &a)
static const Self min(const Self &a)
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
void SetSize(SizeValueType sz)