Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/TiledArray/conversions/btas.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions src/TiledArray/external/btas.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,6 @@ struct range_traits<TiledArray::Range> {

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
Expand Down
11 changes: 11 additions & 0 deletions src/TiledArray/range.h
Original file line number Diff line number Diff line change
Expand Up @@ -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