Skip to content

Expose normalize to skip having to import LinearAlgebra.jl #49

@cvigilv

Description

@cvigilv

The need to import an entire package to do something as simple as normalizing hypervectors is a pain for UX. I'm constantly needing to import LinearAlgebra (even though I'm not using it), which makes coding with the package a little worse than it should be.

I propose exposing LinearAlgebra.normalize directly from within the package, using an alias, e.g.:

# Within some relevant spot in the codebase
using LinearAlgebra

HyperdimensionalComputing.normalize = LinearAlgebra.normalize

Fairly straightforward, but it improves the UX a fair bit if you want to do something with HDC.jl and maintain a project as minimal as possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions