diff options
| author | Tom Smeding <tom@tomsmeding.com> | 2025-11-15 22:48:06 +0100 |
|---|---|---|
| committer | Tom Smeding <tom@tomsmeding.com> | 2025-11-15 22:48:06 +0100 |
| commit | e9a0873ceb5c2140dc3331aa8239d511675d55c4 (patch) | |
| tree | 4101ee16a5f0a0005376008a0956bfbca313b362 /src/Data/Array | |
| parent | 965ea2fd5aa21e1570f97957ae5613894fe8795d (diff) | |
README: Document array buffer sharing policy
Diffstat (limited to 'src/Data/Array')
| -rw-r--r-- | src/Data/Array/XArray.hs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Data/Array/XArray.hs b/src/Data/Array/XArray.hs index 6ad48cc..29154f1 100644 --- a/src/Data/Array/XArray.hs +++ b/src/Data/Array/XArray.hs @@ -308,7 +308,6 @@ toListOuter (XArray arr@(ORS.A (ORG.A _ t))) = 0 : _ -> [] -- using orthotope's functions here would entail using rerank, which is slow, so we don't [_] | Refl <- (unsafeCoerceRefl :: sh :~: '[]) -> coerce (map S.scalar $ S.toList arr) - -- TODO: this shares the backing array among all the results; is that what we want? n : sh -> coerce $ map (ORG.A sh . OI.indexT t) [0 .. n - 1] fromList1 :: Storable a => StaticShX '[n] -> [a] -> XArray '[n] a |
