@@ -48,15 +48,15 @@ Params:
4848Returns:
4949 n-dimensional slice
5050+/
51- ContiguousTensor ! (N, T)
51+ ContiguousSlice ! (N, T)
5252 slice(T, size_t N)(size_t [N] lengths... )
5353{
5454 immutable len = lengthsProduct(lengths);
5555 return new T[len].sliced(lengths);
5656}
5757
5858// / ditto
59- ContiguousTensor ! (N, T)
59+ ContiguousSlice ! (N, T)
6060 slice(T, size_t N)(size_t [N] lengths, T init)
6161{
6262 immutable len = lengthsProduct(lengths);
@@ -172,15 +172,15 @@ auto makeSlice(Allocator, size_t N, Iterator)(auto ref Allocator alloc, Slice!(N
172172}
173173
174174// / ditto
175- ContiguousTensor ! (N, T)
175+ ContiguousSlice ! (N, T)
176176makeSlice(T, Allocator, size_t N)(auto ref Allocator alloc, size_t [N] lengths... )
177177{
178178 import std.experimental.allocator : makeArray;
179179 return alloc.makeArray! T(lengthsProduct(lengths)).sliced(lengths);
180180}
181181
182182// / ditto
183- ContiguousTensor ! (N, T)
183+ ContiguousSlice ! (N, T)
184184makeSlice(T, Allocator, size_t N)(auto ref Allocator alloc, size_t [N] lengths, T init)
185185{
186186 import std.experimental.allocator : makeArray;
@@ -190,7 +190,7 @@ makeSlice(T, Allocator, size_t N)(auto ref Allocator alloc, size_t[N] lengths, T
190190}
191191
192192// /// ditto
193- // ContiguousTensor !(N, T)
193+ // ContiguousSlice !(N, T)
194194// makeSlice(T,
195195// Flag!`replaceArrayWithPointer` ra = Yes.replaceArrayWithPointer,
196196// Allocator,
@@ -257,7 +257,7 @@ Params:
257257Returns:
258258 a structure with fields `array` and `slice`
259259+/
260- ContiguousTensor ! (N, T)
260+ ContiguousSlice ! (N, T)
261261makeUninitSlice(T, Allocator, size_t N)(auto ref Allocator alloc, size_t [N] lengths... )
262262{
263263 immutable len = lengthsProduct(lengths);
0 commit comments