File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments