Leandro Martínez

Results 43 issues of Leandro Martínez

The identation lines get copied with the code. For example: ```julia function f(x) if x == 1 │ println(x) end end ``` Of course, this invalidates the code when pasting...

Followup of: https://github.com/JuliaDynamics/Agents.jl/issues/659 I included here the files for the `CellListMap.jl` integration example. I tried to follow the style of the other examples (but included a SVG figure in the...

Is there any preferred or standard way to cite Unitful.jl in academic papers?

Is this expected to work? (related to https://github.com/PainterQubits/Unitful.jl/issues/46): ```julia julia> using LinearSolve, Unitful julia> A = rand(3,3)u"nm"; x = rand(3)u"nm"; julia> solve(init(LinearProblem(A, x))) ERROR: DimensionError: nm and false are not...

```julia julia> using Plots, LsqFit julia> x = collect(1:10); y = x.^2; scatter(x,y) julia> @. model(x,p) = p[1]*x^2 + p[2] model (generic function with 1 method) julia> p0 = [...

Just for clarity: structure /Users/Nemo/RESP/Octocrylene/octocrylene.pdb leads to Fortran runtime error: Cannot open file '/Users/Nemo/RESP/Octocrylene/octocrylene.': No such file or directory Somehow, when specifying the path, the extensions gets dropped while it...

Maybe multiple dispatch is being abused for `UpdateCellLIst!`. The code is getting somewhat hard to follow. Additionally, the `parallel` flag and the passing of `AuxThreaded` became in some sense redundant,...

enhancement

The `Box` constructor is type-unstable, because of the two types of unit cells and the two dimensions that are possible. This type instability is benign, as it does not propagate...

enhancement

This can be useful for a self-avoiding random walk simulation, for example. See here: https://discourse.julialang.org/t/celllistmap-jl-is-it-suitable-for-detecting-collision-of-particles/

enhancement

``` julia> using StaticArrays, FastPow, BenchmarkTools julia> function forces!(x,f,d,idxs) @inbounds for id in axes(idxs,1) i = idxs[id,1] j = idxs[id,2] r = x[j] - x[i] @fastpow dudr = -12*(1/d^7 -...

enhancement
performance