Simen Gaure
Simen Gaure
Just a question, or a suggestion, or a speculation. I know that there is a parallel reduce and a tcollect, and some such global parallelism, but would it be possible...
The docs say ``` binomial(n::Integer, k::Integer) The binomial coefficient \binom{n}{k}, being the coefficient of the kth term in the polynomial expansion of (1+x)^n. ``` which isn't strictly true. When `n`...
I sometimes need all subsets of a particular size of some small integers. Moreover, I need them as bit masks, all bit patterns of a particular weight, e.g. `0b011`, `0b101`,...
I'm using a `Bus 002 Device 002: ID 2357:0106 TP-Link Archer T9UH v1 [Realtek RTL8814AU]` on Ubuntu 23.04, and get a kernel Oops when trying to connect to my wifi-network....
It turns out that bounds checking cannot be programmatically elided in `deleteat!` and `keepat!`, but it can be elided in `keepat!` by starting julia with `--check-bounds=no`. _MWE may lead to...
This is my desktop computer, and I would very much like to be able to profile programs I write. From `/proc/cpuinfo`: ``` processor : 0 vendor_id : AuthenticAMD cpu family...
(@c42f edit:) Upstream syntax discussion: https://github.com/JuliaLang/julia/issues/54915 There are several ways to create functions in julia. One of them is the `do` syntax. You can't dispatch on `do` functions, but now...
``` using Optim f(x) = cos(prod(x)) + (sum(x)-0.5)^2 opt = Optim.optimize(f, [-pi,-pi], [pi,pi], [0.3,0.4], SAMIN(verbosity=1), Optim.Options(iterations=1000000)) ``` yields "normal convergence" from `SAMIN`, but convergence failure from `optimize`: ``` ================================================================================ SAMIN...
#1124 This PR enhances `ParticleSwarm` with a new keyword `parallel::Bool = false`. If set to `true`, the objective function will be called with a vector to fill in, and a...
I have a problem which benefits greatly by evaluating the function on the swarm in parallel. I have a local version of `Optim` which simply adds a `parallel` field in...