Undefs

Documentation for Undefs.

Undefs.UndefsModule
Undefs

See [`undefs`](@ref) which is a convenience method for
`Array{T}(undef, dims...)` which is recommended over using this package.

Also consider alternatives such as
[ArrayAllocators.jl](https://github.com/mkitti/ArrayAllocators.jl] which
provides as `ArrayAllocators.zeros` method offering similar performance.
source
Undefs.undef!Function
undef!(array::Array, index=1)

Reset an element of an array to be #undef.

The method is highly experimental and uses undocumented internal details which may change.

source
Undefs.undef!Method
undef!(ref::Base.RefValue{T}) where T

Reset the target of a Ref to be #undef.

The method is highly experimental and uses undocumented internal details which may change.

source
Undefs.undefsMethod
undefs([A=Array], [T=Float64], dims::Tuple)
undefs([A=Array], [T=Float64], dims::Integer...)

Create an Array, with element type T, of undefined elements with size specified by dims. See also fill, ones, zero.

julia> undefs(3, 2)
3×2 Matrix{Float64}:
...

julia> undefs(Int, 4, 5)
4×5 Matrix{Int64}:
...

julia> undefs(Int8, (1,2,3))
1×2×3 Array{Int8, 3}:
...

julia> undefs(Int8, (2,3))
2×3 Matrix{Int8}:
...

julia> fill!(undefs(Int8, (2,3)), 0)
2×3 Matrix{Int8}:
 0  0  0
 0  0  0

This is a convenience method for Array{T}(undef, dims). It is recommended to use the above invocation since it allows array types other than Array to be constructed via similar syntax.

See also fill!, zeros, ones, ArrayAllocators.zeros

source
Undefs.@undef!Macro
@undef! array[i]
@undef! ref[]

Reset the indexed element to be #undef.

The underlying method is highly experimental and uses undocumented internal details which may change.

source