18#ifndef itkNumericTraitsVectorPixel_h
19#define itkNumericTraitsVectorPixel_h
30template <
typename T,
unsigned int D>
136 for (
unsigned int i = 0; i <
GetLength(a); ++i)
150 for (
unsigned int i = 0; i <
GetLength(a); ++i)
164 for (
unsigned int i = 0; i <
GetLength(a); ++i)
178 for (
unsigned int i = 0; i <
GetLength(a); ++i)
188 static constexpr bool IsSigned = std::is_signed_v<ValueType>;
189 static constexpr bool IsInteger = std::is_integral_v<ValueType>;
200 itkGenericExceptionMacro(
"Cannot set the size of a Vector of length " << D <<
" to " << s);
226 template <
typename TArray>
230 for (
unsigned int i = 0; i < D; ++i)
Pixel-wise addition of two images.
void Fill(const ValueType &)
static bool IsPositive(const Self &a)
static bool IsNegative(const Self &a)
static const Self ITKCommon_EXPORT One
static const Self OneValue()
static const Self NonpositiveMin()
typename NumericTraits< T >::AbsType ElementAbsType
static const Self OneValue(const Self &)
static bool IsNonnegative(const Self &a)
static const Self NonpositiveMin(const Self &)
static const Self max(const Self &)
static void AssignToArray(const Self &v, TArray &mv)
static unsigned int GetLength()
typename NumericTraits< T >::RealType ElementRealType
static const Self min(const Self &)
typename NumericTraits< T >::AccumulateType ElementAccumulateType
ElementRealType ScalarRealType
static unsigned int GetLength(const Vector< T, D > &)
static void SetLength(Vector< T, D > &m, const unsigned int s)
static void AssignToArray(const Self &v, MeasurementVectorType &mv)
static const Self ZeroValue()
static const Self ITKCommon_EXPORT Zero
typename NumericTraits< T >::PrintType ElementPrintType
typename NumericTraits< T >::FloatType ElementFloatType
static const Self ZeroValue(const Self &)
static bool IsNonpositive(const Self &a)
Define additional traits for native types such as int or float.
static constexpr bool IsInteger
static constexpr bool IsSigned
static constexpr T NonpositiveMin()
static unsigned int GetLength()
static constexpr bool IsComplex
A templated class holding a n-Dimensional vector.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....