You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Julia explicitly uses Int as index type (See Base.Dims). For some indices-related functions, there might be fallback methods for Integer types, but many functions don't.
julia> x =rand(8, 8);
julia>reshape(x, 4, :)
4×16 Matrix{Float64}:0.6906370.5556450.8218860.4065860.539375…0.09981330.5465010.9133810.7788480.1896250.5590870.8494380.1635020.01328320.7699460.9510780.204590.387230.9016380.484590.4714410.4400430.2567320.239220.5063840.4820370.1201170.3776340.1618350.8419390.7228280.8776130.07402760.0665850.8202780.807347
julia>reshape(x, Int32(4), :)
ERROR: MethodError: no method matching reshape(::Matrix{Float64}, ::Int32, ::Colon)
The StackOverFlow is not good, so definitely needs improvement.
The text was updated successfully, but these errors were encountered: