Skip to content

Commit 1a35e77

Browse files
committed
Removed unused function from range.h.
1 parent befd103 commit 1a35e77

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/TiledArray/range.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,25 +29,6 @@ namespace TiledArray {
2929
// Forward declaration of TiledArray components.
3030
class Permutation;
3131

32-
namespace detail {
33-
34-
template <typename Index, typename WeightArray, typename StartArray>
35-
inline std::size_t calc_ordinal(const Index& index, const WeightArray& weight, const StartArray& start) {
36-
// Check that the dimensions of the arrays are equal.
37-
const std::size_t n = detail::size(index);
38-
TA_ASSERT(detail::size(weight) == n);
39-
TA_ASSERT(detail::size(start) == n);
40-
41-
// Compute ordinal
42-
std::size_t o = 0ul;
43-
for(std::size_t i = 0ul; i < n; ++i)
44-
o += (index[i] - start[i]) * weight[i];
45-
46-
return o;
47-
}
48-
49-
} // namespace detail
50-
5132
/// Range data of an N-dimensional tensor.
5233
class Range {
5334
public:

0 commit comments

Comments
 (0)