aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/nullary.cpp
Commit message (Collapse)AuthorAge
* Add unit test for LinSpaced and complex numbers.Gravatar Gael Guennebaud2019-02-18
|
* bug #1630: fix linspaced when requesting smaller packet size than default one.Gravatar Gael Guennebaud2018-11-28
|
* Remove usage of #if EIGEN_TEST_PART_XX in unit tests that does not require ↵Gravatar Gael Guennebaud2018-07-17
| | | | them (splitting can thus be avoided for them)
* Get rid of EIGEN_TEST_FUNC, unit tests must now be declared with ↵Gravatar Gael Guennebaud2018-07-17
| | | | | | | | | EIGEN_DECLARE_TEST(mytest) { /* code */ }. This provide several advantages: - more flexibility in designing unit tests - unit tests can be glued to speed up compilation - unit tests are compiled with same predefined macros, which is a requirement for zapcc
* bug #1457: add setUnit() methods for consistency.Gravatar Gael Guennebaud2017-08-22
|
* bug #1383: fix regression in LinSpaced for integers and high<lowGravatar Gael Guennebaud2017-01-25
|
* bug #1383: Fix regression from 3.2 with LinSpaced(n,0,n-1) with n==0.Gravatar Gael Guennebaud2017-01-25
|
* bug #1004: improve accuracy of LinSpaced for abs(low) >> abs(high).Gravatar Gael Guennebaud2016-11-02
|
* bug #1004: one more rewrite of LinSpaced for floating point numbers to ↵Gravatar Gael Guennebaud2016-10-25
| | | | | | | | guarantee both interpolation and monotonicity. This version simply does low+i*step plus a branch to return high if i==size-1. Vectorization is accomplished with a branch and the help of pinsertlast. Some quick benchmark revealed that the overhead is really marginal, even when filling small vectors.
* bug #1004: remove the inaccurate "sequential" path for LinSpaced, mark ↵Gravatar Gael Guennebaud2016-10-24
| | | | | | respective function as deprecated, and enforce strict interpolation of the higher range using a correction term. Now, even with floating point precision, both the 'low' and 'high' bounds are exactly reproduced at i=0 and i=size-1 respectively.
* bug #698: rewrite LinSpaced for integer scalar types to avoid overflow and ↵Gravatar Gael Guennebaud2016-10-24
| | | | | | | guarantee an even spacing when possible. Otherwise, the "high" bound is implicitly lowered to the largest value allowing for an even distribution. This changeset also disable vectorization for this integer path.
* Add unit test for overflow in LinSpacedGravatar Gael Guennebaud2016-10-24
|
* Workaround MSVC instantiation faillure of has_*ary_operator at the level of ↵Gravatar Gael Guennebaud2016-09-06
| | | | triats<Ref>::match so that the has_*ary_operator are really properly instantiated throughout the compilation unit.
* Workaround a weird msvc 2012 compilation error.Gravatar Gael Guennebaud2016-09-05
|
* bug #1286: automatically detect the available prototypes of functors passed ↵Gravatar Gael Guennebaud2016-08-31
| | | | | | | | | to CwiseNullaryExpr such that functors have only to implement the operators that matters among: operator()() operator()(i) operator()(i,j) Linear access is also automatically detected based on the availability of operator()(i,j).
* Fix integer path for num_steps==1Gravatar Gael Guennebaud2016-02-01
|
* bug #698: fix linspaced for integer types.Gravatar Gael Guennebaud2016-02-01
|
* Re-enable vectorization of LinSpaced, plus some cleaningGravatar Gael Guennebaud2015-10-08
|
* Index refactoring: StorageIndex must be used for storage only (and locally ↵Gravatar Gael Guennebaud2015-02-13
| | | | when it make sense). In all other cases use the global Index type.
* Merge Index-refactoring branch with default, fix PastixSupport, remove some ↵Gravatar Gael Guennebaud2015-02-13
|\ | | | | | | useless typedefs
| * Fix wrong negative in nullary unit test when extended precision is used (FPU).Gravatar Gael Guennebaud2014-12-16
| |
* | 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.
* Fix linear vectorized transversal in linspace (fixes bug #526).Gravatar Jitse Niesen2013-02-18
|
* Automatic relicensing to MPL2 using Keirs script. Manual fixup follows.Gravatar Benoit Jacob2012-07-13
|
* Improved the unit tests for setLinSpaced.Gravatar Hauke Heibel2012-03-07
| | | | Provide a default constructed step size as opposed to an int when the size is 1.
* Fixed setLinSpaced for size==1.Gravatar Hauke Heibel2012-03-07
|
* the min/max macros to detect unprotected min/max were undefined by some std ↵Gravatar Gael Guennebaud2011-08-19
| | | | | | header, so let's declare them after and do the respective fixes ;)
* Bug fix in linspace_op::packetOp(row,col). Fixes bug #232.Gravatar Jitse Niesen2011-03-24
| | | | Also, add regression test.
* Change int to Index in equalsIdentity().Gravatar Jitse Niesen2011-03-11
| | | | This fixes compilation errors in nullary test on 64-bits machines.
* Fix equalsIdentity() for rectangular matrices.Gravatar Jitse Niesen2011-03-10
|
* repeat nullary tests, and fix some testsGravatar Gael Guennebaud2011-03-07
|
* bug #86 : use internal:: namespace instead of ei_ prefixGravatar Benoit Jacob2010-10-25
|
* Fixed bug #79.Gravatar Hauke Heibel2010-10-19
|
* Unified LinSpaced in order to be conform with other setter methods as e.g. ↵Gravatar Hauke Heibel2010-07-22
| | | | Constant.
* Fixed nullary test not passing on Core DuoGravatar Carlos Becker2010-06-30
|
* fix bad testsGravatar Gael Guennebaud2010-06-28
|
* Finally fixed the matrix function/exponential warning.Gravatar Hauke Heibel2010-06-20
| | | | Index fixes.
* Utilize Index in all unit tests.Gravatar Hauke Heibel2010-06-20
|
* improve/fix stable_norm unit testGravatar Gael Guennebaud2010-06-08
|
* Silenced type conversion warnings.Gravatar Hauke Heibel2010-02-03
|
* Added an ei_linspaced_op to create linearly spaced vectors.Gravatar Hauke Heibel2010-01-26
| | | | | | | | | Added setLinSpaced/LinSpaced functionality to DenseBase. Improved vectorized assignment - overcomes MSVC optimization issues. CwiseNullaryOp is now requiring functors to offer 1D and 2D operators. Adapted existing functors to the new CwiseNullaryOp requirements. Added ei_plset to create packages as [a, a+1, ..., a+size]. Added more nullaray unit tests.
* Remove some Array #includes.Gravatar Jitse Niesen2010-01-21
|
* Add small test for Matrix::setIdentity()Gravatar Jitse Niesen2010-01-20
This is to exhibit the bug that makes the jacobisvd_7 test fail.