SciML / LabelledArrays.jl

Arrays which also have a label for each element for easy scientific machine learning (SciML)
https://docs.sciml.ai/LabelledArrays/stable/
Other
120 stars 21 forks source link

docstring example for `@LVector` appears to be incorrect #93

Closed pcjentsch closed 7 months ago

pcjentsch commented 3 years ago

The example given in the docstring does not seem to work.

help?> @LVector
  @LVector Type Names

  Creates an LArray of dimension 1 with eltype and undefined values. Length is via
  the number of names given.

  For example:

  b = @LVector [1,2,3] (:a,:b,:c)

julia> b = @LVector [1,2,3] (:a,:b,:c)
ERROR: TypeError: in Type, in parameter, expected Type, got a value of type Vector{Int64}
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/LabelledArrays/ti1TC/src/larray.jl:177
ChrisRackauckas commented 3 years ago

Yes it needs an update.