mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Eigen types must always be passed by reference in order to retain memory alignment.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user