eigen/test
Antonio Sanchez 1e6c6c1576 Replace memset with fill to work for non-trivial scalars.
For custom scalars, zero is not necessarily represented by
a zeroed-out memory block (e.g. gnu MPFR). We therefore
cannot rely on `memset` if we want to fill a matrix or tensor
with zeroes. Instead, we should rely on `fill`, which for trivial
types does end up getting converted to a `memset` under-the-hood
(at least with gcc/clang).

Requires adding a `fill(begin, end, v)` to `TensorDevice`.

Replaced all potentially bad instances of memset with fill.

Fixes #2245.
2021-07-08 18:34:41 +00:00
..
adjoint.cpp
AnnoyingScalar.h Fix clang tidy warnings in AnnoyingScalar. 2021-04-05 12:49:38 -07:00
array_cwise.cpp Augment NumTraits with min/max_exponent() again. 2021-03-16 20:12:46 -07:00
array_for_matrix.cpp
array_of_string.cpp
array_replicate.cpp
array_reverse.cpp revert debug stuff 2019-03-14 10:08:12 +01:00
bandmatrix.cpp
basicstuff.cpp Explicit casts of S -> std::complex<T> 2020-11-14 05:50:42 +00:00
bdcsvd.cpp Fix unit-test which I broke in previous fix 2019-12-19 13:42:14 +01:00
bfloat16_float.cpp Fix Half NaN definition and test. 2020-11-23 14:13:59 -08:00
bicgstab.cpp
blasutil.cpp Suppress ignored-attributes warning (same as in vectorization_logic). Remove redundant include and using namespace. 2020-11-13 16:21:53 +01:00
block.cpp
boostmultiprec.cpp Missing change regarding #1910 2021-02-19 20:51:35 +01:00
bug1213_main.cpp
bug1213.cpp
bug1213.h
cholesky.cpp
cholmod_support.cpp
CMakeLists.txt Add CMake infrastructure for smoke testing 2021-03-31 22:09:00 +00:00
commainitializer.cpp Split test commainitializer into two substests 2021-03-18 13:28:51 +01:00
conjugate_gradient.cpp
conservative_resize.cpp Use derived object type in conservative_resize_like_impl 2021-05-20 23:17:02 +00:00
constructor.cpp fix unit test in c++03: c++03 does not allow passing local or anonymous enum as template param 2019-03-18 11:38:36 +01:00
corners.cpp
ctorleak.cpp
dense_storage.cpp Make DenseStorage<> trivially_copyable 2021-06-30 04:27:51 +00:00
denseLM.cpp
determinant.cpp
diagonal_matrix_variadic_ctor.cpp PR 593: Add variadtic ctor for DiagonalMatrix with unit tests 2019-03-14 10:18:24 +01:00
diagonal.cpp
diagonalmatrices.cpp
dontalign.cpp
dynalloc.cpp
eigen2support.cpp
eigensolver_complex.cpp
eigensolver_generalized_real.cpp
eigensolver_generic.cpp
eigensolver_selfadjoint.cpp Added complex matrix unit tests for SelfAdjointEigenSolve 2021-04-26 19:00:51 +00:00
evaluator_common.h
evaluators.cpp
exceptions.cpp
fastmath.cpp
first_aligned.cpp
geo_alignedbox.cpp geo_alignedbox_5 was failing with AVX enabled, due to storing Vector4d in a std::vector without using an aligned allocator. 2021-03-01 03:59:21 +01:00
geo_eulerangles.cpp
geo_homogeneous.cpp
geo_hyperplane.cpp Fix #1757: remove the word 'suicide' 2020-06-11 00:56:54 +00:00
geo_orthomethods.cpp
geo_parametrizedline.cpp
geo_quaternion.cpp Fix two bugs in commit 2021-04-02 22:06:27 +00:00
geo_transformations.cpp Make Transform::computeRotationScaling(0,&S) continuous 2021-01-07 17:45:14 +00:00
gpu_basic.cu Fix CUDA constexpr issues for numeric_limits. 2021-03-30 18:01:27 +00:00
gpu_common.h Specialize std::complex operators for use on GPU device. 2021-01-22 18:19:19 +00:00
half_float.cpp Add fmod(half, half). 2021-03-15 13:32:24 -07:00
hessenberg.cpp
householder.cpp
incomplete_cholesky.cpp
indexed_view.cpp Fixed/masked more implicit copy constructor warnings 2021-02-27 18:44:26 +01:00
initializer_list_construction.cpp Make file formatting comply with POSIX and Unix standards 2020-03-23 18:09:02 +00:00
inplace_decomposition.cpp
integer_types.cpp Protecting integer_types's long long test with a check to see if we have CXX11 support. 2020-01-07 14:35:35 +00:00
inverse.cpp Fix inverse nullptr/asan errors for LU. 2021-07-01 13:41:04 -07:00
io.cpp Added io test 2019-12-11 18:22:57 +00:00
is_same_dense.cpp
jacobi.cpp
jacobisvd.cpp
klu_support.cpp
linearstructure.cpp
lscg.cpp
lu.cpp
main.h Add Doxygen-style documentation to main.h. 2021-07-07 18:23:59 +00:00
mapped_matrix.cpp
mapstaticmethods.cpp
mapstride.cpp Allow for negative strides. 2021-01-27 23:32:12 +01:00
meta.cpp Initialize primitives to fix -Wuninitialized-const-reference. 2020-11-18 20:23:20 +00:00
metis_support.cpp
miscmatrices.cpp
mixingtypes.cpp Eliminate mixingtypes_7 warning. 2021-03-24 11:05:41 -07:00
MovableScalar.h Fix #1911: add benchmark for move semantics with fixed-size matrix 2020-06-11 23:43:25 +00:00
mpl2only.cpp Guard against repeated definition of EIGEN_MPL2_ONLY 2019-08-07 14:19:00 -07:00
nestbyvalue.cpp
nesting_ops.cpp
nomalloc.cpp
nullary.cpp
num_dimensions.cpp
numext.cpp Fix numext::arg return type. 2021-05-07 16:26:57 +00:00
OffByOneScalar.h Replace memset with fill to work for non-trivial scalars. 2021-07-08 18:34:41 +00:00
packetmath_test_shared.h Fix rint SSE/NEON again, using optimization barrier. 2021-03-05 08:54:12 -08:00
packetmath.cpp Add missing NEON ptranspose implementations. 2021-05-25 18:25:35 +00:00
pardiso_support.cpp
pastix_support.cpp
permutationmatrices.cpp Enable CompleteOrthogonalDecomposition::pseudoInverse with non-square fixed-size matrices. 2019-11-13 21:16:53 +01:00
prec_inverse_4x4.cpp Ensure all generated matrices for inverse_4x4 testes are invertible, this fix #2248 . 2021-05-13 15:03:30 +00:00
product_extra.cpp Allow for negative strides. 2021-01-27 23:32:12 +01:00
product_large.cpp Fixed performance issues for complex VSX and P10 MMA in gebp_kernel (level 3). 2021-03-25 11:08:19 +00:00
product_mmtr.cpp bug #1741: fix SelfAdjointView::rankUpdate and product to triangular part for destination with non-trivial inner stride 2019-09-10 23:29:52 +02:00
product_notemporary.cpp
product_selfadjoint.cpp
product_small.cpp Eliminate boolean product warnings by factoring out a 2021-01-05 18:15:30 +00:00
product_symm.cpp bug #1741: fix self-adjoint*matrix, triangular*matrix, and triangular^1*matrix with a destination having a non-trivial inner-stride 2019-09-11 15:04:25 +02:00
product_syrk.cpp bug #1741: fix SelfAdjointView::rankUpdate and product to triangular part for destination with non-trivial inner stride 2019-09-10 23:29:52 +02:00
product_trmm.cpp bug #1741: fix self-adjoint*matrix, triangular*matrix, and triangular^1*matrix with a destination having a non-trivial inner-stride 2019-09-11 15:04:25 +02:00
product_trmv.cpp
product_trsolve.cpp bug #1741: fix self-adjoint*matrix, triangular*matrix, and triangular^1*matrix with a destination having a non-trivial inner-stride 2019-09-11 15:04:25 +02:00
product.h bug #1741: fix C.noalias() = A*C; with C.innerStride()!=1 2019-09-10 16:25:24 +02:00
qr_colpivoting.cpp Enable CompleteOrthogonalDecomposition::pseudoInverse with non-square fixed-size matrices. 2019-11-13 21:16:53 +01:00
qr_fullpivoting.cpp
qr.cpp
qtvector.cpp
rand.cpp Bump up rand histogram threshold. 2021-03-10 22:17:03 -08:00
random_without_cast_overflow.h Fix tensor casts for large packets and casts to/from std::complex 2020-06-30 18:53:55 +00:00
real_qz.cpp
redux.cpp
ref.cpp Fix Ref Stride checks. 2021-01-05 10:41:25 -08:00
reshape.cpp
resize.cpp
rvalue_types.cpp DenseStorage safely copy/swap. 2021-04-22 18:45:19 +00:00
SafeScalar.h DenseStorage safely copy/swap. 2021-04-22 18:45:19 +00:00
schur_complex.cpp
schur_real.cpp
selfadjoint.cpp
simplicial_cholesky.cpp Bug #1910: Make SparseCholesky work for RowMajor matrices 2021-02-19 19:36:18 +01:00
sizeof.cpp
sizeoverflow.cpp
smallvectors.cpp
solverbase.h Use internal::ref_selector to avoid holding a reference to a RHS expression. 2021-06-22 14:31:32 +00:00
sparse_basic.cpp Re-implement move assignments. 2021-03-10 16:55:20 +00:00
sparse_block.cpp
sparse_permutations.cpp
sparse_product.cpp Fix sparse_extra_3, disable counting temporaries for testing DynamicSparseMatrix. 2020-11-18 23:15:33 +00:00
sparse_ref.cpp
sparse_solver.h add specialization of check_sparse_solving() for SuperLU solver, in order to test adjoint and transpose solves 2021-02-08 22:00:31 +00:00
sparse_solvers.cpp
sparse_vector.cpp
sparse.h Modify googlehash use to account for namespace issues. 2021-04-12 19:00:39 -07:00
sparseLM.cpp
sparselu.cpp
sparseqr.cpp
special_numbers.cpp
split_test_helper.h
spqr_support.cpp
stable_norm.cpp Fix stable_norm_1 test. 2021-01-21 09:44:42 -08:00
stddeque_overload.cpp
stddeque.cpp
stdlist_overload.cpp
stdlist.cpp
stdvector_overload.cpp
stdvector.cpp
stl_iterators.cpp Make iterators default constructible and assignable, by making... 2021-04-09 17:03:28 +00:00
superlu_support.cpp
svd_common.h Add an info() method to the SVDBase class to make it possible to tell the user that the computation failed, possibly due to invalid input. 2021-03-31 21:09:19 +00:00
svd_fill.h
swap.cpp
symbolic_index.cpp
triangular.cpp bug #1707: Fix deprecation warnings, or disable warnings when testing deprecated functions 2019-05-10 14:57:05 +02:00
type_alias.cpp
umeyama.cpp
umfpack_support.cpp
unalignedassert.cpp
unalignedcount.cpp
upperbidiagonalization.cpp
vectorization_logic.cpp Fix more enum arithmetic. 2021-06-15 09:09:31 -07:00
vectorwiseop.cpp
visitor.cpp Add NaN propagation options to minCoeff/maxCoeff visitors. 2021-03-16 17:02:50 +00:00
zerosized.cpp