diff --git a/src/TiledArray/conversions/btas.h b/src/TiledArray/conversions/btas.h index e093ad7289..329c0b292b 100644 --- a/src/TiledArray/conversions/btas.h +++ b/src/TiledArray/conversions/btas.h @@ -74,7 +74,7 @@ inline void btas_subtensor_to_tensor( } // clang-format off -/// Copy a block of a btas::Tensor into a TiledArray::Tensor +/// Copy a TiledArray::Tensor into a block of a btas::Tensor /// TiledArray::Tensor \c src will be copied into a block of btas::Tensor /// \c dst. The block dimensions will be determined by the dimensions of the range diff --git a/src/TiledArray/external/btas.h b/src/TiledArray/external/btas.h index 294298d50d..7503f9d911 100644 --- a/src/TiledArray/external/btas.h +++ b/src/TiledArray/external/btas.h @@ -53,12 +53,6 @@ struct range_traits { namespace TiledArray { namespace detail { -// these convert any range into TiledArray::Range - -inline const TiledArray::Range& make_ta_range(const TiledArray::Range& range) { - return range; -} - /// makes TiledArray::Range from a btas::RangeNd /// \param[in] range a btas::RangeNd object diff --git a/src/TiledArray/range.h b/src/TiledArray/range.h index eb8ac5cd53..3f4e809d37 100644 --- a/src/TiledArray/range.h +++ b/src/TiledArray/range.h @@ -1311,5 +1311,16 @@ inline bool is_congruent(const Range& r1, const Range& r2) { /// \return true since TiledArray::Range is contiguous by definition inline bool is_contiguous(const Range& range) { return true; } +namespace detail { + +// TiledArray::detail::make_ta_range(rng) converts to its TA equivalent + +/// "converts" TiledArray::Range into TiledArray::Range +inline const TiledArray::Range& make_ta_range(const TiledArray::Range& range) { + return range; +} + +} // namespace detail + } // namespace TiledArray #endif // TILEDARRAY_RANGE_H__INCLUDED