Fredrik Bagge Carlson

Results 317 issues of Fredrik Bagge Carlson

This PR produces the following timings for my `(2, 485156)` testinput ``` 565.305 ms (344 allocations: 37.05 MiB) # baseline 300.948 ms (211 allocations: 37.04 MiB) # inbounds 259.164 ms...

I cannot get `@register` to work with arrays of variables. ```julia julia> foo(x) = 2x foo (generic function with 1 method) julia> @register foo(x) julia> methods(foo) # 3 methods for...

```julia using ModelingToolkit, LinearAlgebra @variables x[1:4] u x = collect(x) ex = Num[0.01x[3] + x[1], 0.01x[4] + x[2], (0.0005u + 5.000000000000001e-5(x[4]^2)*sin(x[2]) + 0.0009810000000000003cos(x[2])*sin(x[2])) / (0.06 - 0.010000000000000002(cos(x[2])^2)) + x[3], (0.001(-u...

Not sure if I'm doing something illegal here, but I get an assertion error from the following set of llops ```julia using LoopVectorization function avxbug(U = randn(2,2), E1 = randn(2))...

On LV v0.8.1 ```julia julia> using StaticArrays, LoopVectorization julia> function softmin_avx(a::T, b, c, γ) where T γ = -γ v = SVector(a, b, c, zero(T)) v = @avx v ./...

I was playing around a bit and noticed some bugs. The first two snippets are attempts at MWE of the final snippet which is the desired calculation ```julia function simulate(x0::Float64;...

bug

I can't figure out what's wrong with the expression below. I've tried replacing `CartesianIndices` with eachindex but the error remains ```julia function ot_cost(u,K,v,β=1) c = 0.0 lu = log.(u) lv...

As predicted, `vmap` gives me a tremendous boost in performance =) I'm hitting an error when mapping over static arrays though ```julia julia> vmap(exp, randn(8)); julia> vmap(exp, @SVector randn(8)); ERROR:...

This PR allows the user to specify a weight vector when fitting trees and forests. There is one oddity, I would every now and then get an out-of-bounds error in...

I would like to use the LLR operator, and am considering making a PR. Reference: "Local Low-Rank Matrix Approximation" Joonseok Lee et al. https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/45235.pdf