This repository was archived by the owner on May 23, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,6 @@ default_obsdim(::Type{<:AbstractArray{<:Any, N}}) where N = N
13
13
default_obsdim (A:: AbstractArray ) = ndims (A)
14
14
default_obsdim (tup:: Tuple ) = map (default_obsdim, tup)
15
15
16
- """
17
- datasubset(data, idx; obsdim = default_obsdim(data))
18
-
19
- Return a lazy subset of the observations in `data` that correspond
20
- to the given `idx`. No data should be copied except of the
21
- indices. Note that `idx` can be of type `Int` or `AbstractVector`.
22
- Both options must be supported by a custom type.
23
-
24
- If it makes sense for the type of `data`, `obsdim` can be used
25
- to indicate which dimension of `data` denotes the observations.
26
- See [`default_obsdim`](@ref) for defining a default dimension.
27
- """
28
- function datasubset end
29
-
30
16
"""
31
17
getobs(data, idx; obsdim = default_obsdim(data))
32
18
@@ -47,6 +33,7 @@ to indicate which dimension of `data` denotes the observations.
47
33
See [`default_obsdim`](@ref) for defining a default dimension.
48
34
"""
49
35
function getobs end
36
+ getobs (data, idx; obsdim) = getobs (data, idx)
50
37
51
38
"""
52
39
getobs!(buffer, data, idx; obsdim = default_obsdim(obsdim))
You can’t perform that action at this time.
0 commit comments