Skip to content

Improve performance of eachslice #34

Open
@oxinabox

Description

@oxinabox

We should add eachslice
in julia 1.1 this can be an overload for Base.eachslice
and in earlier we can just export it.

Right now can kinda fake it via; vec(mapslices(nda; dim=dim))

Example

outputs = NamedDimsArray{(:variates, :observations)}(outputs)
table = mapslices(outputs, dims=:variates) do row
        NamedTuple{colnames, coltypes}(Tuple(row))
end |> vec

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions