julia Questions

3

Problem: I would like to make julia available for our developers on our corporate network, which has no internet access at all (no proxy), due to sensitive data. As far as I understand julia is d...
Koblenz asked 14/1, 2015 at 10:28

2

Solved

Booleans in Julia, when used in calculations, have numeric values (false = 0, true = 1). All of the following have expected results: true + false # 1 false - true # -1 false / true # 0.0 true ÷ fal...
Occidentalize asked 12/12, 2022 at 17:33

1

Solved

I am aware there are a multitude of questions about running parallel for loops in Julia, using @threads, @distributed, and other methods. I have tried to implement the solutions there with no luck....
Evaporation asked 10/12, 2022 at 19:1

2

Solved

I very (very!) often do this routine in my daily work: $ j7 # (alias for Julia version 1.7) julia> julia> ] activate . (or similarly) (@v1.8) pkg> activate . Activating project at `~/MyMW...
Utter asked 9/12, 2022 at 11:13

2

Solved

I'm able to run the following code just fine and it provides the expected result: julia> using DataFrames, DataFramesMeta julia> expr = "2*:a+:b" "2*:a+:b" julia> df ...
Edik asked 9/12, 2022 at 1:7

2

I have a local module that i wrote in my machine, I am using julia 1.7 and when I want to use this module I write something like this: @everywhere include("Foo.jl") using .Foo this is th...
Wavawave asked 7/12, 2022 at 18:13

3

Solved

I'm debugging a script (which use Plots.jl with GKS QtTerm backend). So I run the script many times. When I run it from terminal like bash> julia pointPlacement.jl it takes for ages to initializ...
Nonmetal asked 16/10, 2019 at 14:19

2

Solved

I'm looking for a way to replace values in Dataframe column with random numbers. They should be different in every row where the substitution was performed. For example replacing "X" with...
Greenheart asked 7/12, 2022 at 13:37

2

Solved

In my code mutable struct frame Lx::Float64 Ly::Float64 T::Matrix{Float64} #I think the error is here function frame( Lx::Float64, Ly::Float64, T::Matrix{Float64} ) return new(Lx, Ly, T) ...
Cullet asked 6/12, 2022 at 15:31

2

Solved

I wonder why operating on Float64 values is faster than operating on Float16: julia> rnd64 = rand(Float64, 1000); julia> rnd16 = rand(Float16, 1000); julia> @benchmark rnd64.^2 Benchmark...
Bussard asked 6/12, 2022 at 14:6

4

Solved

I aim to divide elements of two different interval vectors, alpha, and gamma, and want to store the resultant intervals in a vector form. I am trying to run this code in Pluto-Julia but not getting...
Somniferous asked 5/12, 2022 at 11:9

2

Solved

I want to extract some information from a .osm.pbf file. I looked through OpenStreetMapX.jl package but didn't find a function to read this data. I am wondering if anyone know a method to read this...
Larisalarissa asked 17/2, 2021 at 9:32

3

Solved

I have a data file data.txt a 5 b 3 c 7 which I would like to load and have as julia> loaded_data 3×3 Matrix{Any}: "" "a" "" 5 "b" "" 3 ...
Norse asked 5/12, 2022 at 9:39

4

Solved

I want to obtain the execution time of a function in Julia. Here is a minimum working example: function raise_to(n) for i in 1:n y = (1/7)^n end end How to obtain the time it took to execute ...
Followthrough asked 26/3, 2020 at 12:48

2

Solved

Julia REPL tells me that the output of 'c'+2 is 'e': ASCII/Unicode U+0065 (category Ll: Letter, lowercase) but that the output of 'c'+2-'a' is 4. I'm fine with the fact that Chars are identified ...
Araujo asked 3/12, 2022 at 15:57

2

Solved

I am using the PyPlot package in Julia to generate and save several figures. My current approach is to display the figure and then save it using savefig. using PyPlot a = rand(50,40) imshow(a) sav...
Protozoal asked 18/9, 2016 at 20:44

6

Solved

How can I get the version number for a specific package? The obvious way is to get the dictionary with all installed packages, and then filter for the one of interest: pkgs = Pkg.installed(); pkg...
Argot asked 3/9, 2014 at 2:54

1

I have a Dicitionary where the values are lists. I want to sort these lists inside the Dict. Dict("Income" => ["Top 10%", "Lower 50%", "31 - 40%", "2...
Octavie asked 29/11, 2022 at 14:11

3

I am totally new to Julia! I would like to install a large number of packages for a project I'm joining. The project comes with a "Project.toml" file It seems like there should be a nice ...
Foreglimpse asked 29/4, 2022 at 17:9

5

Solved

I want to create a random Matrix with values of zeros and ones. With this presumption, there will be more zeros instead of ones! So I guess there should be something like a weighted Bernoulli distr...
Darbies asked 26/11, 2022 at 17:35

1

Solved

I am very confused about the purpose of copy. As illustrated in this post, copy creates a shallow copy whereas deepcopy creates an independent object. If you used copy, the underlying references re...
Lakeesha asked 24/11, 2022 at 15:7

0

I have a function with a lot of if/elseif statements. I'm looking for a way to improve the code of this function, replacing IF/ELSEIF. I`m trying to use dictionaries, but I am not sure if it is the...
Eudy asked 22/11, 2022 at 13:5

2

Solved

The annotation attribute in Julia Plots seems to only take tuples of x,y coordinates and a label according to the documentation. Is there any way to do this on a 3D plot? For example: tvec=0:0.1:4...
Excisable asked 26/12, 2016 at 16:44

4

Solved

Suppose I have a curve y, and two other curves u and l in the form of vectors. How to plot: plot(y, lab="estimate") plot!(y-l, lab="lower bound") plot!(y+u, lab="upper bound") That is, an asymme...
Nagari asked 19/1, 2018 at 4:14

3

Solved

What is the best way to merge a dictionary in Julia? > dict1 = Dict("a" => 1, "b" => 2, "c" => 3) > dict2 = Dict("d" => 4, "e" => 5, "f" => 6) # merge both dicts > dict3...
Bureaucratize asked 26/3, 2016 at 20:34

© 2022 - 2024 — McMap. All rights reserved.