Corrected #ifdef for Eigen compatibility

main
Kenneth Jao 2 years ago
parent be5d816140
commit 98582cd8bf
  1. 3
      include/Array.h

@ -693,6 +693,8 @@ template <typename T> 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<T>, "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 <typename T> class Array {
Array<T> inv(shape());
inv.eigenMap() = this->eigenMap().inverse();
};
#endif
/**
* Pins the memory (page locks) for faster memory transfer in concurrent

Loading…
Cancel
Save