Skip to content

Commit 2038d50

Browse files
committed
Update docs text
1 parent d03c857 commit 2038d50

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

docs/src/index.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ There is a full duality between the nested and the flat view of the data. `A_fla
7575
`AbstractVectorOfSimilarArrays` supports the functions `sum`, `mean` and `var`, `AbstractVectorOfSimilarVectors` additionally support `cov` and `cor`.
7676

7777
Methods for these function are defined both without and with weights (via `StatsBase.AbstractWeights`). Because of this, `ArraysOfArrays` currently requires `StatsBase`. It's possible that this requirement can be dropped in the future, though (see
78-
[Julia issue #29974](https://github.com/JuliaLang/julia/issues/29974)).
78+
[Julia Statistics issue #4](https://github.com/JuliaLang/Statistics.jl/issues/4)).
7979

8080
## [VectorOfArrays](@id section_VectorOfArrays)
8181

@@ -133,25 +133,3 @@ resize!(VA, 4)
133133
will fail.
134134

135135
Note: The vector returned by `flatview(VA)` *must not* be resized directly, doing so would break the internal consistency of `VA`.
136-
137-
138-
## Allocation free element access
139-
140-
Element access via `getindex` returns (possibly reshaped) instances of `SubArray` for both `ArrayOfSimilarArrays` and `VectorOfArrays`. Usually this is not a problem, but frequent allocation of a large number of views can become a limiting factor in multi-threaded applications.
141-
142-
Both types support `UnsafeArrays.@uviews` for allocation-free getindex:
143-
144-
```julia
145-
using UnsafeArrays
146-
147-
A = nestedview(rand(2,3,4,5), 2)
148-
149-
isbits(A[2,2]) == false
150-
151-
@uviews A begin
152-
isbits(A[2,2]) == true
153-
end
154-
```
155-
156-
As always, `UnsafeArray`s should be used with great care: The pointer-based bitstype
157-
views *must not* be allowed to escape the `@uviews` scope, and internal data of `A` *must not* be reallocated (e.g. due to a `push!` or `append!` on `A`) while the `@uviews` scope is active.

0 commit comments

Comments
 (0)