The previous implementation caused a buffer overflow trying to calculate non-
zero counts for columns that no longer exist.
(cherry picked from commit 2ac0b787399df718dc61219145f44a6ae99813aa)
(cherry picked from commit f4b67691c42952b44ce7dae62f5c18ed93b53521)
Originating from
[this SO issue](https://stackoverflow.com/questions/65901014/how-to-solve-this-all-error-2-in-this-case),
some win32 compilers define `__int32` as a `long`, but MinGW defines
`std::int32_t` as an `int`, leading to a type conflict.
To avoid this, we remove the custom `typedef` definitions for win32. The
Tensor module requires C++11 anyways, so we are guaranteed to have
included `<cstdint>` already in `Eigen/Core`.
Also re-arranged the headers to only include `<cstdint>` in one place to
avoid this type of error again.
Add specializations for complex types since std::log1p and std::exp1m do not support complex.
(cherry picked from commit d55d392e7b1136655b4223bea8e99cb2fe0a8afd)
This resolves a compilation error associated with
Eigen::eigen_assert_exception. It also eliminates the counting of
exceptions that may occur in the OpenMP parallel section. If an
unhandled exception occurs in this section, the behavior is non-conforming
according to the OpenMP specification.
An OpenMP parallel section must have a single entry and a single point
of exit. Leaving such a section by throwing an exception is undefined.
This patch fixes this by catching possible exceptions on the parallel
section and throwing right we left it.
StlDeque extends std::deque by accessing some of its internal members.
Since GCC 10 these are not accessible anymore.
(cherry picked from commit 5e484fa11de4e90fc042a29e6cab04667bb2ef6c)
This fixes deprecated-copy warnings when compiling with GCC>=9
Also protect some additional Base-constructors from getting called by user code code (#1587)
Cherry-picked from 870e53c0
The isometric transform, like the affine transform, has an implicit last
row of [0, 0, 0, 1]. This was not being properly initialized, as verified
by a new test function.
(grafted from 9d988a1e1a83c51422d96030fdad7267e4e946ee
)
5937c4ae32feec178d56282694f06ed16cfe7352
Fall back is_integral to std::is_integral in c++11
f0862b062fcb613ee6c60745631d90a43d54a6d4
Fix internal::is_integral<size_t/ptrdiff_t> with MSVC 2013 and older.
This fixes compilation issues with RealScalar types that are not implicitly castable from Index (e.g. ceres Jet types).
Reported by Peter Anderson-Sprecher via eMail
(grafted from ac21a08c130b3096669548d18abb13cdd655380f
)