/*========================================================================= Program: Tensor ToolKit - TTK Module: $URL$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) INRIA 2010. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #include "itkNumericTraitsTensorPixel2.h" namespace itk { const Tensor NumericTraits >::Zero = Tensor( NumericTraits::Zero ); const Tensor NumericTraits >::Zero = Tensor( NumericTraits::Zero ); const Tensor NumericTraits >::Zero = Tensor( NumericTraits::Zero ); const Tensor NumericTraits >::Zero = Tensor( NumericTraits::Zero ); const Tensor NumericTraits >::One = Tensor( NumericTraits::One ); const Tensor NumericTraits >::One = Tensor( NumericTraits::One ); Tensor< float,3 > NumericTraits >::ZeroValue() { return Zero; } Tensor< double,3 > NumericTraits >::min() { return std::numeric_limits::min(); } Tensor< double,3 > NumericTraits >::max() { return std::numeric_limits::max(); } unsigned int NumericTraits >::GetLength(const Tensor &t) { return 6; } Tensor< float,3 > NumericTraits >::NonpositiveMin() { return Tensor< float,3 >(-NumericTraits::NonpositiveMin()); } bool NumericTraits >::IsPositive(Tensor< float,3 > val) { return val.IsPositive(); } bool NumericTraits >::IsNonpositive(Tensor< float,3 > val) { return !val.IsPositive(); } bool NumericTraits >::IsNegative(Tensor< float,3 > val) { return val.IsNegative(); } bool NumericTraits >::IsNonnegative(Tensor< float,3 > val) {return !val.IsNegative(); } Tensor< double,3 > NumericTraits >::ZeroValue() { return Zero; } Tensor< long double,3 > NumericTraits >::ZeroValue() { return Zero; } Tensor< double,3 > NumericTraits >::min() { return std::numeric_limits::min(); } Tensor< double,3 > NumericTraits >::max() { return std::numeric_limits::max(); } unsigned int NumericTraits >::GetLength(const Tensor &t) { return 6; } Tensor< double,3 > NumericTraits >::NonpositiveMin() { return Tensor< double,3 >(-NumericTraits::NonpositiveMin()); } bool NumericTraits >::IsPositive(Tensor< double,3 > val) { return val.IsPositive(); } bool NumericTraits >::IsNonpositive(Tensor< double,3 > val) { return !val.IsPositive(); } bool NumericTraits >::IsNegative(Tensor< double,3 > val) { return val.IsNegative(); } bool NumericTraits >::IsNonnegative(Tensor< double,3 > val) {return !val.IsNegative(); } unsigned int NumericTraits >::GetLength(const Tensor &t) { return 21; } }