Tobias Schlüter
f3ba220c5d
Remove EIGEN_EMPTY_STRUCT_CTOR
2022-04-08 18:27:26 +00:00
Antonio Sánchez
5ed7a86ae9
Fix MSVC+CUDA issues.
2022-04-08 18:05:32 +00:00
Erik Schultheis
e1df3636b2
More constexpr helpers
2022-04-04 18:38:34 +00:00
Erik Schultheis
64909b82bd
static const class members turned into constexpr
2022-04-04 17:33:33 +00:00
Antonio Sanchez
9bc9992dd3
Eliminate trace unused warning.
2022-03-29 22:04:50 +00:00
Erik Schultheis
b9d2900e8f
added a missing typename and fixed a unused typedef warning
2022-03-24 12:07:18 +02:00
Essex Edwards
cd3c81c3bc
Add a NNLS solver to unsupported - issue #655
2022-03-23 20:20:44 +00:00
Romain Biessy
f2a3e03e9b
Fix usages of wrong namespace
2022-03-21 15:07:53 +00:00
Erik Schultheis
421cbf0866
Replace Eigen type metaprogramming with corresponding std types and make use of alias templates
2022-03-16 16:43:40 +00:00
Antonio Sánchez
9296bb4b93
Fix edge-case in zeta for large inputs.
2022-03-08 21:21:20 +00:00
Antonio Sánchez
008ff3483a
Fix broken tensor executor test, allow tensor packets of size 1.
2022-03-07 20:30:37 +00:00
Antonio Sánchez
d819a33bf6
Remove poor non-convergence checks in NonLinearOptimization.
2022-03-02 19:31:20 +00:00
Antonio Sanchez
1c2690ed24
Adjust tolerance of matrix_power test for MSVC.
2022-03-01 23:33:05 +00:00
Antonio Sánchez
ae86a146b1
Modify test expression to avoid numerical differences ( #2402 ).
2022-02-23 16:37:03 +00:00
Romain Biessy
2dd879d4b0
[SYCL] Fix CMake for SYCL support
2022-02-22 16:53:27 +00:00
Antonio Sanchez
bded5028a5
Fix ODR failures in TensorRandom.
2022-02-11 23:28:33 -08:00
Rasmus Munk Larsen
18eab8f997
Add convenience method constexpr std::size_t size() const
to Eigen::IndexList
2022-02-12 04:23:03 +00:00
Antonio Sánchez
9441d94dcc
Revert "Make fixed-size Matrix and Array trivially copyable after C++20"
...
This reverts commit 47eac21072ec8c225d03c139dd9632bc5c19fd83
2022-02-05 04:40:29 +00:00
Antonio Sánchez
cafeadffef
Fix ODR violations.
2022-02-04 19:01:07 +00:00
Rasmus Munk Larsen
ea2c02060c
Add reciprocal packet op and fast specializations for float with SSE, AVX, and AVX512.
2022-01-21 23:49:18 +00:00
Erik Schultheis
970640519b
Cleanup
2022-01-21 01:48:59 +00:00
Kolja Brix
8d81a2339c
Reduce usage of reserved names
2022-01-10 20:53:29 +00:00
Matthias Möller
c9df98b071
Fix Gcc8.5 warning about missing base class initialisation ( #2404 )
2022-01-07 19:16:53 +00:00
Lingzhu Xiang
47eac21072
Make fixed-size Matrix and Array trivially copyable after C++20
...
Making them trivially copyable allows using std::memcpy() without undefined
behaviors.
Only Matrix and Array with trivially copyable DenseStorage are marked as
trivially copyable with an additional type trait.
As described in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p0848r3.html
it requires extremely verbose SFINAE to make the special member functions of
fixed-size Matrix and Array trivial, unless C++20 concepts are available to
simplify the selection of trivial special member functions given template
parameters. Therefore only make this feature available to compilers that support
C++20 P0848R3.
Fix #1855 .
2022-01-07 19:04:35 +00:00
Erik Schultheis
c20e908ebc
turn some macros intro constexpr functions
2021-12-10 19:27:01 +00:00
Erik Schultheis
c35679af27
fixed customIndices2Array forgetting first index
2021-12-10 16:41:59 +00:00
Erik Schultheis
e4c40b092a
disambiguate overloads for empty index list
2021-12-07 19:40:09 +00:00
Jens Wehner
c6fa0ca162
Idrsstabl
2021-12-06 20:00:00 +00:00
Erik Schultheis
cc11e240ac
Some further cleanup
2021-12-06 18:01:15 +00:00
Erik Schultheis
cd83f34d3a
fix typo StableNorm
-> stableNorm
2021-12-04 14:52:09 +00:00
Jens Wehner
4ee2e9b340
Idrs refactoring
2021-12-02 23:32:07 +00:00
Jens Wehner
f63c6dd1f9
Bicgstabl
2021-12-02 22:48:22 +00:00
Erik Schultheis
2f65ec5302
fixed leftover else branch
2021-12-02 18:13:19 +00:00
Xinle Liu
7ef5f0641f
Remove macro EIGEN_GPU_TEST_C99_MATH
...
Remove macro EIGEN_GPU_TEST_C99_MATH which is used in a single test file only and always defaults to true.
2021-12-01 14:48:56 +00:00
Erik Schultheis
ec2fd0f7ed
Require recent GCC and MSCV and removed EIGEN_HAS_CXX14
and some other feature test macros
2021-12-01 00:48:34 +00:00
Erik Schultheis
4a76880351
Updated CMake
...
This patch updates the minimum required CMake version to 3.10 and removes the EIGEN_TEST_CXX11 CMake option, including corresponding logic.
2021-11-29 20:24:20 +00:00
Erik Schultheis
f33a31b823
removed EIGEN_HAS_CXX11_* and redundant EIGEN_COMP_CXXVER checks
2021-11-29 19:18:57 +00:00
David Tellenbach
08da52eb85
Remove DenseBase::nonZeros() which just calls DenseBase::size()
...
Fixes #2382 .
2021-11-27 14:31:00 +00:00
Erik Schultheis
ec4efbd696
remove EIGEN_HAS_CXX11
2021-11-24 20:08:49 +00:00
Rasmus Munk Larsen
cfdb3ce3f0
Fix warnings about shadowing definitions.
2021-11-23 14:34:47 -08:00
Rasmus Munk Larsen
5e89573e2a
Implement Eigen::array<...>::reverse_iterator if std::reverse_iterator exists.
2021-11-20 00:22:46 +00:00
Rasmus Munk Larsen
11cb7b8372
Add basic iterator support for Eigen::array to ease transition to std::array in third-party libraries.
2021-11-19 05:14:30 +00:00
Antonio Sanchez
c107bd6102
Fix errors for windows build.
2021-11-19 04:23:25 +00:00
Rasmus Munk Larsen
96aeffb013
Make the new TensorIO implementation work with TensorMap with const elements.
2021-11-17 18:16:04 -08:00
Rasmus Munk Larsen
824d06eb36
Include <numeric> to get std::iota.
2021-11-18 00:47:18 +00:00
Antonio Sanchez
ffb78e23a1
Fix tensor broadcast off-by-one error.
...
Caught by JAX unit tests. Triggered if broadcast is smaller than packet
size.
2021-11-16 17:37:38 +00:00
cpp977
f73c95c032
Reimplemented the Tensor stream output.
2021-11-16 17:36:58 +00:00
Ben Barsdell
50df8d3d6d
Avoid integer overflow in EigenMetaKernel indexing
...
- The current implementation computes `size + total_threads`, which can
overflow and cause CUDA_ERROR_ILLEGAL_ADDRESS when size is close to
the maximum representable value.
- The num_blocks calculation can also overflow due to the implementation
of divup().
- This patch prevents these overflows and allows the kernel to work
correctly for the full representable range of tensor sizes.
- Also adds relevant tests.
2021-11-05 16:39:37 +11:00
Rasmus Munk Larsen
55e3ae02ac
Compare summation results against forward error bound.
2021-11-04 18:04:04 -07:00
Antonio Sanchez
8f8c2ba2fe
Remove bad "take" impl that causes g++-11 crash.
...
For some reason, having `take<n, numeric_list<T>>` for `n > 0` causes
g++-11 to ICE with
```
sorry, unimplemented: unexpected AST of kind nontype_argument_pack
```
It does work with other versions of gcc, and with clang.
I filed a GCC bug
[here](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102999 ).
Technically we should never actually run into this case, since you
can't take n > 0 elements from an empty list. Commenting it out
allows our Eigen tests to pass.
2021-11-01 17:04:41 +00:00