Multilayer Networs
Has anybody heard of a Julia implementation of Multilayer networks? These are networks formed of multiple graphs over the same set of nodes, with different edges for the different graphs. Finally,...
View ArticleHelp me extend this solution for high dimensional matrices in Julia
stackoverflow.com Extend this solution for high dimensional matrices in Julia matrix, julia asked by your_boy_gorja on 04:39AM - 30 May 20 UTC 4 posts - 2 participants Read full topic
View ArticleHow to switch ODE from DifferentialEquations to OrdinaryDiffEq?
Hello, I am using a ChromeBook and I can’t install DifferentialEquations; but I can run OrdinaryDiffEq. I set a function and the solver based on the DifferentialEquations’s syntax but: julia> prob...
View ArticleWrong use of asymptotic notation in the Multi-dimensional Arrays page
I’m learning Julia and, reading the documentations in the past days, I wrote down few comments on typos, unclear sentences, etc. I’m new to the community and I’m unsure whether I should directly open...
View ArticleIs there a weave live preview server?
I want to write a document using weave, but currently I have to manually rerun the “save to file” or “show preview” commands in vscode. Is there a server which watches the file and recompiles the...
View ArticleGet Vector of filenames in directory matching regex. But has the language...
I want to do something similar to what this 2017 StackOverflow person wanted: Get a Vector of all filenames in a directory matching a certain regular expression. This answer says the following was...
View ArticleMacro for optional threading not working
macro optthreads(switch,code) :( if $(esc(switch)) esc(:(Threads.@threads $$code)) else $(esc(code)) end ) end function test(par) @optthreads par for i in 1:80 print(Threads.threadid()) end end...
View ArticleAppending arrays in @threads
What’s the correct way to achieve three arrays of size 10 related to the following? A = []; B = []; C = []; Threads.@threads for i = 1:10 append!(A,i) append!(B,i) append!(C,i) end The above either...
View ArticleSIR on networks with LightGraphs
I am creating the simplest and lowest level SIR simulation with LightGraphs and ModelingToolkit (I am a beginner). For now, I have a simple network of 10 nodes and 7 edges. And it is a directed graph....
View ArticleUsing multiple modules in a single line
Is using Module1, Module2 equivalent to using Module1 using Module2 ? Is the order significant in single line version? 9 posts - 4 participants Read full topic
View ArticleHow to test an app at the REPL
Say, I want to develop a standalone, compiled application; after reading about various options, I settled on creating a project via Pkg.generate. Now, I have a project structure with Manifest.toml and...
View ArticleSrc\cpu_info.jl
I was using v1.3.1. Then I upgrade for v1.4.2 and reinstalled some packages. Now, I have both versions. However, in v1.4.2 I cannot use some packages. E.g., when I type “using DifferentialEquations” I...
View ArticlePkg> test Atom errors
I had Atom already installed, then installed Julia. Juno appears to operate properly inside Atom but all I’ve done up to this point is some tutorials in it. Where I got the errors was running Julia in...
View ArticleRead CSVs. Build DataFrame with column identifying the original CSV
I’ve been trying to learn Julia (1.4) by doing something I commonly do with R or Python: Have a bunch of CSVs, each with a year (YYYY) in the filename. Some datasets have columns that aren’t in the...
View ArticleHow to create an unevaluated block for scratch expressions?
Hey guys! I’m used to littering the code with copious amounts of top-level blocks, serving as evaluation history, like here: Clojure: #_ (do (stuff-and-things) (more-stuff-and-more-things)) Common...
View ArticleNot clear what 0.01f0x is in the Flux docs
I searched a bit, but it remains unclear to me what 0.01f0x is in the Flux docs: While one could change the activation function (e.g. to use 0.01f0x ), the idiomatic (and safe way) … Perhaps a typo? 5...
View ArticleHow to handle weakrefstrings when importing a CSV file
I am using Julia 1.4 and CSV 0.62. I have a CSV file that has a column with some JSON in it (e.g. {"type":"Point","coordinates":[-3.73610686,58.3917902]})`. When I look at the data type I am told it...
View ArticleWhen does macro expansion take place/use macro inside hot loop?
I have a function inside a nested loop, and I’m cleaning it up with @unpack from UnPack.jl for about 20 parametrs/pre-allocated matrix: @unpack a,b,c = p #parameters... @unpack m1,m2,m3 = p...
View ArticleStubborn 1-based LinearIndices for the custom type with non-zero based indexing
Greetings and apologies if this is very basic. I am trying to create a custom type subtyped from AbstractArray to dispatch on it in place of a dense array at times. I’ve been following instructions in...
View ArticleQuadgk not working for potential convert from MATLAB to Julia?
In MATLAB, quadgk(@(s) (exp(-s.^2)-1)./s.^2,0,1) gives me 0.8615, consistent with the correct answer, 1 - 1/e -sqrt(pi) erf(1). In Julia, quadgk(s-> exp(-s.^2-1.0)./s.^2,0.0,1.0) gives me ERROR:...
View Article