aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/StableNorm.h
Commit message (Collapse)AuthorAge
* Augment NumTraits with min/max_exponent() again.Gravatar Antonio Sanchez2021-03-16
| | | | | | | | | | | | Replace usage of `std::numeric_limits<...>::min/max_exponent` in codebase where possible. Also replaced some other `numeric_limits` usages in affected tests with the `NumTraits` equivalent. The previous MR !443 failed for c++03 due to lack of `constexpr`. Because of this, we need to keep around the `std::numeric_limits` version in enum expressions until the switch to c++11. Fixes #2148
* Revert "Augment NumTraits with min/max_exponent()."Gravatar David Tellenbach2021-03-17
| | | | This reverts commit 75ce9cd2a7aefaaea8543e2db14ce4dc149eeb03.
* Augment NumTraits with min/max_exponent().Gravatar Antonio Sanchez2021-03-17
| | | | | | | | Replace usage of `std::numeric_limits<...>::min/max_exponent` in codebase. Also replaced some other `numeric_limits` usages in affected tests with the `NumTraits` equivalent. Fixes #2148
* Remove unused includeGravatar Christoph Hertzberg2021-02-27
|
* Rename variable to avoid shadowing of a previously declared oneGravatar David Tellenbach2020-09-18
|
* Get rid of initialization logic for blueNorm by making the computed ↵Gravatar Rasmus Munk Larsen2020-09-18
| | | | | | constants static const or constexpr. Move macro definition EIGEN_CONSTEXPR to Core and make all methods in NumTraits constexpr when EIGEN_HASH_CONSTEXPR is 1.
* Make blueNorm threadsafe if C++11 atomics are available.Gravatar Rasmus Munk Larsen2020-09-12
|
* Make stableNorm and blueNorm compatible with 2D matrices.Gravatar Gael Guennebaud2018-04-04
|
* Fix compilation of stableNorm with some expressions as inputGravatar Gael Guennebaud2017-12-15
|
* Issue with mpreal and std::numeric_limits, i.e. digits is not a constant. ↵Gravatar Simon Praetorius2017-03-24
| | | | Added a digits() traits in NumTraits with fallback to static constant. Specialization for mpreal added in MPRealSupport.
* bug #1400: fix stableNorm with EIGEN_DONT_ALIGN_STATICALLYGravatar Gael Guennebaud2017-03-07
|
* bug #1203: by-pass large stack-allocation in stableNorm if ↵Gravatar Gael Guennebaud2016-04-15
| | | | EIGEN_STACK_ALLOCATION_LIMIT is too small
* Generalize first_aligned to take the requested alignment as a template ↵Gravatar Gael Guennebaud2015-08-06
| | | | parameter, and add a first_default_aligned variante calling first_aligned with the requirement of the largest packet for the given scalar type.
* First part of a big refactoring of alignment control to enable the handling ↵Gravatar Gael Guennebaud2015-08-06
| | | | | | | | | of arbitrarily aligned buffers. It includes: - AlignedBit flag is deprecated. Alignment is now specified by the evaluator through the 'Alignment' enum, e.g., evaluator<Xpr>::Alignment. Its value is in Bytes. - Add several enums to specify alignment: Aligned8, Aligned16, Aligned32, Aligned64, Aligned128. AlignedMax corresponds to EIGEN_MAX_ALIGN_BYTES. Such enums are used to define the above Alignment value, and as the 'Options' template parameter of Map<> and Ref<>. - The Aligned enum is now deprecated. It is now an alias for Aligned16. - Currently, traits<Matrix<>>, traits<Array<>>, traits<Ref<>>, traits<Map<>>, and traits<Block<>> also expose the Alignment enum.
* Workaround missalignment produced by first_aligned for PacketSize==1 and size==1Gravatar Gael Guennebaud2015-06-23
|
* Use Ref<> to bypass forceAlignmentIfGravatar Gael Guennebaud2015-06-22
|
* bug #877, bug #572: Introduce a global Index typedef. Rename Sparse*::Index ↵Gravatar Christoph Hertzberg2014-12-04
| | | | to StorageIndex, make Dense*::StorageIndex an alias to DenseIndex. Overall this commit gets rid of all Index conversion warnings.
* bug #701: workaround (min) and (max) blocking ADL by introducing ↵Gravatar Gael Guennebaud2014-10-20
| | | | numext::mini and numext::maxi internal functions and a EIGEN_NOT_A_MACRO macro.
* Fix blueNorm wrt NaN/INF.Gravatar Gael Guennebaud2014-09-02
|
* Fix stableNorm() with respect to NaN and inf, and add respective unit tests. ↵Gravatar Gael Guennebaud2014-09-02
| | | | blueNorm() and hypotNorm() are broken wrt to NaN/inf
* Fix bug #740: overflow issue in stableNormGravatar Gael Guennebaud2014-02-13
|
* merge with main branchGravatar Gael Guennebaud2013-07-17
|\
| * Fix bug #314: move remaining math functions from internal to numext namespaceGravatar Gael Guennebaud2013-06-10
| |
* | merge with default branchGravatar Gael Guennebaud2013-04-19
|\|
| * Remove a useless variable in blueNormGravatar Gael Guennebaud2013-04-10
| |
| * Fix bug #581: remove useless piece of code is blueNormGravatar Gael Guennebaud2013-04-09
| |
* | Port SelfCwiseBinaryOp and Dot.h to nvcc, fix portability issue with ↵Gravatar Gael Guennebaud2013-04-05
|/ | | | std::min/max
* Add support for sparse blueNormGravatar Desire NUENTSA2013-01-11
|
* Fix bug #314:Gravatar Gael Guennebaud2012-11-06
| | | | | - remove most of the metaprogramming kung fu in MathFunctions.h (only keep functions that differs from the std) - remove the overloads for array expression that were in the std namespace
* remove stupid assert in blue norm.Gravatar Gael Guennebaud2012-09-07
|
* Automatic relicensing to MPL2 using Keirs script. Manual fixup follows.Gravatar Benoit Jacob2012-07-13
|
* Get rid of include directives inside namespace blocks (bug #339).Gravatar Jitse Niesen2012-04-15
|
* bug #352:properly cast constantsGravatar Igor Krivenko2011-12-09
|
* protect calls to min and max with parentheses to make Eigen compatible with ↵Gravatar Gael Guennebaud2011-07-21
| | | | | | | default windows.h (transplanted from 49b6e9143e1d74441924c0c313536e263e12a55c )
* Simplify the use of custom scalar types, the rule is to never directly call ↵Gravatar Gael Guennebaud2011-05-25
| | | | | | | a standard math function using std:: but rather put a using std::foo before and simply call foo: using std::max; max(a,b);
* bug #86 : use internal:: namespace instead of ei_ prefixGravatar Benoit Jacob2010-10-25
|
* email changeGravatar Gael Guennebaud2010-06-24
|
* compilation fix for gcc 4.2Gravatar Gael Guennebaud2010-06-10
|
* the Index types change.Gravatar Benoit Jacob2010-05-30
| | | | As discussed on the list (too long to explain here).
* use modern ei_first_aligned function, dont try compiling coeffRef() on ↵Gravatar Benoit Jacob2010-05-08
| | | | rvalue expressions.
* Introduced NestParentByRefBit and NestByRefBit - this should fix temporaries ↵Gravatar Hauke Heibel2010-02-06
| | | | | | related to nested products. Fixed a few typos and a few warnings.
* merge and add start/end to Eigen2SupportGravatar Gael Guennebaud2010-01-05
|\
| * Big renaming:Gravatar Benoit Jacob2010-01-04
| | | | | | | | | | | | start ---> head end ---> tail Much frustration with sed syntax. Need to learn perl some day.
| * * Fix bug #79: ei_alignmentOffset was assuming that ptr is multiple ofGravatar Benoit Jacob2010-01-02
| | | | | | | | | | | | | | sizeof(Scalar), and that assumption breaks with double on linux x86-32. * Rename ei_alignmentOffset to ei_first_aligned * Rewrite its documentation and part of its body * The variant taking a MatrixBase doesn't need a separate size argument.
* | add a DenseBase class for MAtrixBase and ArrayBase and more code factorisationGravatar Gael Guennebaud2009-12-04
| |
* | * remove EnforceAlignedAccess option to Block, VectorBlock, Map and MapBaseGravatar Gael Guennebaud2009-11-20
| | | | | | | | | | | | because thanks to the previous commit this is not needed anymore * add a more general ForceAlignedAccess expression which can be used for any expression. It is already used by StableNorm.h.
* | Another big refactoring change:Gravatar Gael Guennebaud2009-11-18
|/ | | | | | * add a new Eigen2Support module including Cwise, Flagged, and some other deprecated stuff * add a few cwiseXxx functions * adapt a few modules to use cwiseXxx instead of the .cwise() prefix
* * extend Map to allow the user to specify whether the mapped dataGravatar Gael Guennebaud2009-10-23
| | | | | | | is aligned or not. This is done using the Aligned constant: Map<MatrixType,Aligned>::Map(data); * rename ForceAligned to EnforceAlignedAccess, and update its doc, and emphasize this is mainly an internal stuff.
* really fix stable norm compilation for older gccGravatar Gael Guennebaud2009-10-07
|
* fix compilation in stable norm, move a platform check to the unit testsGravatar Gael Guennebaud2009-10-06
|