From 98582cd8bf6a02b2711ffc4b779b4253884d9f2b Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sun, 2 Jul 2023 13:21:52 -0500 Subject: [PATCH] Corrected #ifdef for Eigen compatibility --- include/Array.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/Array.h b/include/Array.h index cd6e646..12db6e0 100644 --- a/include/Array.h +++ b/include/Array.h @@ -693,6 +693,8 @@ template class Array { * Its self assigning version is transpose. This is restricted to numerical types. * \brief Host only */ + +#ifdef CUDATOOLS_USE_EIGEN Array transposed() const { static_assert(is_host_num, "Function only available on host-compatible numeric types."); CT_ERROR_IF(shape().axes(), !=, 2, "Tranpose can only occur on two-dimensional arrays"); @@ -722,6 +724,7 @@ template class Array { Array inv(shape()); inv.eigenMap() = this->eigenMap().inverse(); }; +#endif /** * Pins the memory (page locks) for faster memory transfer in concurrent