mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-02-17 18:09:55 +08:00
Eigen types must always be passed by reference in order to retain memory alignment.
This commit is contained in:
parent
4b5d359c3a
commit
2a64fa4947
@ -368,7 +368,7 @@ inline bool test_isUnitary(const MatrixBase<Derived>& m)
|
||||
}
|
||||
|
||||
template<typename T, typename U>
|
||||
bool test_is_equal(T actual, U expected)
|
||||
bool test_is_equal(const T& actual, const U& expected)
|
||||
{
|
||||
if (actual==expected)
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user