Michael Abbott

Results 222 issues of Michael Abbott
trafficstars

Here's something I was trying to do recently, to avoid materializing a huge array just to sum it: ``` V = rand(500); V3 = reshape(V, 1,1,:); @time sum(V .* V'...

This is meant to work with https://github.com/JuliaLang/julia/pull/43552, although I think `mul!` might work without that. Alternative to #146. Since this does not overload `*`, I think it should not encounter...

Closes #1190 Prints the Float32 case most compactly, although perhaps it would be less confusing to write out `cu(Float32[0.7821349, 0.99106485])` in the end? Certainly simpler. ``` julia> x = rand(2)...

The compact printing used within a Tuple etc. doesn't at present distinguish a CuArray from an ordinary Array: ```julia julia> (; x = cu([1f0])) # CUDA v3.4.2 (x = Float32[1.0],)...

enhancement
good first issue

Closes #362 ~~Does not handle keywords, note that `dims` is an error on normal Arrays, but `init` is respected so perhaps should be here too:~~ ``` julia> sum(fill(3), init=99) 102...

stale

```julia julia> using CUDA, GPUArrays julia> v = cu(rand(3)); julia> view(v,2) 0-dimensional CuArray{Float32, 0}: 0.8010128 julia> sum(view(v,2)) ERROR: MethodError: no method matching ndims(::Base.Broadcast.Broadcasted{CUDA.CuArrayStyle{0}, Nothing, typeof(identity), Tuple{CuArray{Float32, 0}}}) julia> reshape(v[2:2]) 0-dimensional...

It would be neat if it wasn't necessary to repeat the name of the columns on which you are joining, when they are the same: ``` @join(foo, bar, _.joincolumn, _.joincolumn,...

enhancement

This proposes to re-organise `show` for `@benchmark`. The idea is: * Put the most important information first -- closes #236 * Put all the numbers above the histogram * Make...

enhancement
needs tests

There is room to show a bit more information with `@btime`, and I think the next number to show after the minimum is the mean. So this PR does this:...

enhancement

As discussed here: https://discourse.julialang.org/t/error-in-mul-c-a-b-if-size-b-n-1/47999 At present `curve_fit(model, xdata::AbstractArray, ydata::AbstractArray, p0::AbstractArray; ...)` looks like it accepts arrays, and claims to accept arrays in its docstring, but in fact seems to only...