Quantcast
Channel: First steps - JuliaLang
Browsing all 2795 articles
Browse latest View live

Multiplying an array by the individual elements of a vector

@samantp wrote: So, I have an array, seed_dvh, and a vector, dvh_coeff, corresponding to some coefficients I’d like to multiply seed_dvh by. seed_dvh is of size 1718x2 and dvh_coeff is of length 1000....

View Article


Disable IOStream buffering or replace by unbuffered IO

@Henrique_Becker wrote: I have a script written in Julia. It is written in Julia and not bash because: (1) the script will call Julia anyway, and I want to warm-start the JIT to avoid measuring...

View Article


Why does a function wait for a loop to finish before printing something...

@wpkzz wrote: I have been using Julia since 0.4 and this is the first time that something like that happens. I have a function with a loop inside it and a print inside the loop. Usually I use this...

View Article

Histogram from a set of values from EnsembleProblem

@Frederic_Gilt wrote: Dear All, I have a system of six SDEs I solved with prob_sde = SDEProblem(qdelta,qsigma,u0,(0.0,600.0),noise=W) ensembleprob = EnsembleProblem(prob_sde,prob_func=prob_func) sol =...

View Article

Multiply the first column of a matrix by several different scalars

@samantp wrote: I have a matrix, A, which is of size nx2 and a vector, v, of 1000 coefficients. I would like to create a vector of arrays, A_mult which has 1000 elements, such that every entry in...

View Article


Image may be NSFW.
Clik here to view.

Channels and Conditions: How to do notify channel is ready

@prototact wrote: Hi all, I am doing an exercise with Julia and the Task related primitives. This is a function that adds an array of integers from the left. There is also one symmetrical adding from...

View Article

Python __call__ equivalent in Julia

@HiroIshida wrote: In python, one can use an instance as a function by defining __call__ as following code. I want to do the similar thing in Julia by using a struct instead of a class. Could anyone...

View Article

Converting .jl file to any kind of markdown

@erlebach wrote: How do I convert a jl file (julia source file) to markdown from within Atom, or from the command line? Once I do that, I can use Pandoc to print the file. It is more complex than...

View Article


Install of ThinkJulia.jl

@aquarelle332 wrote: Hello, System: Kubuntu-18.04.4 LST Julia: JuliaPro_v1.4.0-1 For my first steps in Julia, I am using Ben Lauwens book. I would like to install ThinkJulia using the command as...

View Article


Is it possible to name slices of arrays as functions?

@peterj wrote: A common use case for me, and lots of people I would think, is to have large systems of DEs such as dx_i / dt = … dy_i / dt = … where i \in [1, n] and x_i, y_i represents the ith class...

View Article

Flip a weighted coin

@samantp wrote: I am looking for a function/package that will let me flip a weighted coin in Julia, where I can specify the weight. e.g. some adjustable probability p, that determines the probability...

View Article

Image may be NSFW.
Clik here to view.

Issue with Upgrading to 1.4 on MacOS Catalina

@themadprogramer wrote: I decided to finally upgrade from 1.3 to 1.4 on my computer today and ran into a few issues. The first was fairly easy to handle, the usual notarization stuff. But after that,...

View Article

Computing log liklihood given a probability function

@samantp wrote: I am a bit overwhelmed with regard to all the information out there about this and would like some guidance with regard to how to evaluate the log liklihood (or cross entropy) function...

View Article


Compiling 1.3.1 fails with undefined LLVM error

@jaynick wrote: About 2 months ago I compiled Julia1.3.1 from source, there was no problem. Now, Julia1.4.0 compiles from source, however checking out the 1.3.1 and compiling (same steps as before)...

View Article

Module Keyword Usage

@Obtuya7 wrote: I’m new to programming in general so please excuse my ignorance. So, I’m trying to get acclimated to module/package building by studying projects on github. I found that JuliaFEM.jl is...

View Article


Print on a separate Blink window, or elsewhere than STOUT

@Dario_Sarra wrote: I am writing UI using blink and Interact. I am fairly new to the use of tasks and CSS, so maybe my problem is actually fairly easy. During different operations, I use print to...

View Article

Image may be NSFW.
Clik here to view.

JSON in Julia

@JeffLYU wrote: When i tried to install JSON, error message pop up, not sure how to fix it. JSON in Julia979×512 234 KB Posts: 2 Participants: 2 Read full topic

View Article


Where is the compiler?

@Charles_Parker wrote: Installed JuliaPro 1.4.0-1 on Mac. I wish to run from the command line and don’t like IDEs. I need to add the path to the julia command to my bash_profile. Where is it (the...

View Article

Help! how to remove all packages for Julia1.4?

@jaynick wrote: I installed Julia1.4 and was adding various needed packages, but CMake failed – it could not find wget/curl. In trying to fix this, I seemed to have broken things badly: following...

View Article

Is there something similar to R's pmap in Julia?

@ameresv wrote: Hi! I am new with Julia (being an R-guy) I have a question: Is something similar to pmap here in Julia? Why I am asking this, because I have this dataframe: m = DataFrame( x = [1,2,3],...

View Article
Browsing all 2795 articles
Browse latest View live