// Copyright (c) 2006-2008 Max-Planck-Institute Saarbruecken (Germany). // All rights reserved. // // This file is part of CGAL (www.cgal.org) // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Number_types/include/CGAL/Sqrt_extension/Eigen_NumTraits.h $ // $Id: Eigen_NumTraits.h 8bb22d5 2020-03-26T14:23:37+01:00 Sébastien Loriot // SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial // // // Author(s) : Michael Hemmer #ifndef CGAL_SQRT_EXTENSION_EIGEN_NUMTRAITS_H #define CGAL_SQRT_EXTENSION_EIGEN_NUMTRAITS_H namespace Eigen { template struct NumTraits; template struct NumTraits > { enum { IsInteger = 0, IsSigned = 1, IsComplex = 0, RequireInitialization = 1, ReadCost = 2*NumTraits::ReadCost+NumTraits::ReadCost, AddCost = 2*NumTraits::AddCost+NumTraits::ReadCost, MulCost = 5*NumTraits::MulCost+2*NumTraits::AddCost }; typedef CGAL::Sqrt_extension Real; typedef Real NonInteger; typedef Real Nested; typedef Real Literal; static inline Real epsilon() { return NumTraits::epsilon(); } static inline int digits10() { return NumTraits::digits10(); } static inline Real dummy_precision() { return NumTraits::dummy_precision(); } static inline Real highest() { return NumTraits::highest(); } static inline Real lowest() { return NumTraits::lowest(); } static inline Real infinity() { return NumTraits::infinity(); } static inline Real quiet_NaN() { return NumTraits::quiet_NaN(); } }; } #endif