Compare commits

..

2 Commits

  1. 3
      include/Array.h

@ -699,6 +699,8 @@ template <typename T> class Array {
* Its self assigning version is transpose. This is restricted to numerical types. * Its self assigning version is transpose. This is restricted to numerical types.
* \brief Host only * \brief Host only
*/ */
#ifdef CUDATOOLS_USE_EIGEN
Array transposed() const { Array transposed() const {
static_assert(is_host_num<T>, "Function only available on host-compatible numeric types."); 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"); CT_ERROR_IF(shape().axes(), !=, 2, "Tranpose can only occur on two-dimensional arrays");
@ -728,6 +730,7 @@ template <typename T> class Array {
Array<T> inv(shape()); Array<T> inv(shape());
inv.eigenMap() = this->eigenMap().inverse(); inv.eigenMap() = this->eigenMap().inverse();
}; };
#endif
/** /**
* Pins the memory (page locks) for faster memory transfer in concurrent * Pins the memory (page locks) for faster memory transfer in concurrent

Loading…
Cancel
Save