3 ms·
Nice article! One can you also use reduce(hcat,n) instead of hcat(n...). The function reduce(hcat,n) should be faster as there is optimized implementation of i
by kwertzzz 5y ago
Nice article!
One can you also use reduce(hcat,n) instead of hcat(n...).
The function reduce(hcat,n) should be faster as there is optimized implementation of it:
https://github.com/JuliaLang/julia/blob/89a51fb98485219680c7106e94cf75fd8069f3f8/base/abstractarray.jl#L1375-L1379 https://github.com/JuliaLang/julia/blob/89a51fb98485219680c7...
This feature was discussed here:
https://github.com/JuliaLang/julia/issues/21672 https://github.com/JuliaLang/julia/issues/21672