Jerry Ling

Results 162 issues of Jerry Ling

`````md # some title :::::::::::::: {.columns} ::: {.column width="49%"} ## Julia ```julia function go_faster(a) trace = 0.0 for i in axes(a, 1) trace += tanh(a[i, i]) end return a .+...

what's the status and what's the plan

Right now we have to download the .jl file and open it, how hard would it be to just give Pluto a `.html` URL and make it work?

```julia using WGLMakie begin N = 10 δ = 0.05 cs = repeat([1,2], N÷2) heights = rand(N) * 10 meshscatter(Point3f.(rand(N), rand(N), 0.00001rand(N)); color = cs, markersize = Vec3f.(δ, δ, heights),...

So we have this code to convert a Pattern into a RGBA matrix: https://github.com/JuliaPlots/Makie.jl/blob/fffcac6d5b101134b553ed23492f3e69794821bb/CairoMakie/src/utils.jl#L268 which works as intended, the white pixels in the pattern goes to `(1.0f0, 1.0f0, 1.0f0, 0.0f0)`,...

CairoMakie

remove unnecessary `()`

I know `fit!()` works with an iterator, but what if I need to return multiple pairs of `(value, weight)` from the iterator because I want to make many weighted histograms...

See: - https://github.com/root-project/root/blob/master/tree/ntuple/v7/doc/specifications.md#stl-types-and-collections And similar existing tests for TTree: - https://github.com/scikit-hep/uproot5/blob/main/tests/test_0031-test-stl-containers.py - https://github.com/scikit-hep/uproot5/blob/main/tests/test_0033-more-interpretations-2.py

https://github.com/EnzymeAD/Enzyme.jl/issues/298 MWE: ```julia julia> using Optim, Enzyme, LinearAlgebra julia> function f(x) y1 = zeros(eltype(x), 3) y2 = ones(eltype(x), 3) y1 .+= (3 - sin(x[1]))^2 y2 .+= (x[2] - 3)^4 dot(y1,...