-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Why does the constructor not refer to the type of the element of raw
?
The lines
Line 152 in 704f7c8
NIVolume(header::NIfTI1Header, extensions::Vector{NIfTI1Extension}, raw::AbstractArray{T,N}) where {T<:Number,N} = |
Line 153 in 704f7c8
NIVolume{typeof(one(T)*1f0+1f0),N,typeof(raw)}(header, extensions, raw) |
create the volume of type
Float32
instead of T
. Shouldn't this be
NIVolume(header::NIfTI1Header, extensions::Vector{NIfTI1Extension}, raw::AbstractArray{T,N}) where {T<:Number,N} = let
NIVolume{T,N,typeof(raw)}(header, extensions, raw)
# Why is this not using T? That is the type of the `raw` array elements!?
#NIVolume{typeof(one(T)*1f0+1f0),N,typeof(raw)}(header, extensions, raw)
end
?
Metadata
Metadata
Assignees
Labels
No labels