aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/ref.cpp
Commit message (Collapse)AuthorAge
* Fix Ref Stride checks.Gravatar Antonio Sanchez2021-01-05
| | | | | | | | | | | | | | | | | | | | The existing `Ref` class failed to consider cases where the Ref's `Stride` setting *could* match the underlying referred object's stride, but **didn't** at runtime. This led to trying to set invalid stride values, causing runtime failures in some cases, and garbage due to mismatched strides in others. Here we add the missing runtime checks. This involves computing the strides necessary to align with the referred object's storage, and verifying we can actually set those strides at runtime. In the `const` case, if it *may* be possible to refer to the original storage at compile-time but fails at runtime, then we defer to the `construct(...)` method that makes a copy. Added more tests to check these cases. Fixes #2093.
* Enable construction of Ref<VectorType> from a runtime vector.Gravatar Gael Guennebaud2019-03-03
|
* Fix maybe-uninitialized warningGravatar Gael Guennebaud2018-10-07
|
* 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
* Remove local Index typedef from unit-testsGravatar Gael Guennebaud2018-07-12
|
* Add static assertion for fixed sizes Ref<>Gravatar Gael Guennebaud2018-03-09
|
* Workaround i387 issue in unit testGravatar Gael Guennebaud2015-11-16
|
* Add unit-test for Visual2013 ambiguous call to operator=Gravatar Gael Guennebaud2015-06-24
|
* Factorize VERIFY_EVALUATION_COUNT in unit testsGravatar Gael Guennebaud2015-06-19
|
* bug #969: workaround abiguous calls to Ref using enable_if.Gravatar Gael Guennebaud2015-03-06
|
* Big 853: replace enable_if in Ref<> ctor by static assertions and add ↵Gravatar Gael Guennebaud2014-11-05
| | | | failtests for Ref<>
* Fix many long to int implicit conversionsGravatar Gael Guennebaud2014-07-08
|
* Relax Ref such that Ref<MatrixXf> accepts a RowVectorXf which can be seen as ↵Gravatar Gael Guennebaud2014-03-13
| | | | a degenerate MatrixXf(1,N)
* Ref<> objects must be nested by reference because they potentially store a ↵Gravatar Gael Guennebaud2013-08-11
| | | | temporary object
* Workaround a bunch of stupid warnings in unit testsGravatar Gael Guennebaud2013-06-23
|
* Clean source code and unit tests with respect to -Wunused-local-typedefsGravatar Gael Guennebaud2013-04-10
|
* The ref unit test cannot be easily written to work with ↵Gravatar Gael Guennebaud2013-02-27
| | | | EIGEN_DEFAULT_TO_ROW_MAJOR
* Fix two numerical issues in unit tests.Gravatar Gael Guennebaud2013-02-27
|
* Add a unit test for Ref.h and fix an extra copy.Gravatar Gael Guennebaud2013-02-26