ENCCS / julia-for-hpc

Lesson material for "Julia for high-performance scientific computing" workshops
https://enccs.github.io/julia-for-hpc/
Creative Commons Attribution 4.0 International
40 stars 13 forks source link

specify that T should be subtype of Real in struct #50

Closed wikfeldt closed 1 year ago

wikfeldt commented 2 years ago

i.e. replace with

struct Point{T<:Real}
    x::T
    y::T
end
wikfeldt commented 1 year ago

done in julia-intro