Skip to content

Commit

Permalink
Removed unused function from range.h.
Browse files Browse the repository at this point in the history
  • Loading branch information
justusc committed May 6, 2015
1 parent befd103 commit 1a35e77
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/TiledArray/range.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,6 @@ namespace TiledArray {
// Forward declaration of TiledArray components.
class Permutation;

namespace detail {

template <typename Index, typename WeightArray, typename StartArray>
inline std::size_t calc_ordinal(const Index& index, const WeightArray& weight, const StartArray& start) {
// Check that the dimensions of the arrays are equal.
const std::size_t n = detail::size(index);
TA_ASSERT(detail::size(weight) == n);
TA_ASSERT(detail::size(start) == n);

// Compute ordinal
std::size_t o = 0ul;
for(std::size_t i = 0ul; i < n; ++i)
o += (index[i] - start[i]) * weight[i];

return o;
}

} // namespace detail

/// Range data of an N-dimensional tensor.
class Range {
public:
Expand Down

0 comments on commit 1a35e77

Please sign in to comment.