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

Clearing a variable?

@amca01 wrote: I believe this has been asked and answered before; however I’ve gone through many of the related posts and I still can’t find how to do it. In my case, I had an array called T, which...

View Article


What is the splatting penalty?

@yuxi.liu wrote: I know what “splatting” is, but what is the “splatting penalty”, as seen here? Posts: 2 Participants: 2 Read full topic

View Article


Usage of keyword `const` in the context of types. (code from Julia...

@reumle wrote: Hi, I read this in Julia doc (https://docs.julialang.org/en/v1/manual/types/#UnionAll-Types-1) julia> const T1 = Array{Array{T,1} where T, 1} Array{Array{T,1} where T,1} What is the...

View Article

@which not working on .+

@yuxi.liu wrote: Why is this failing? julia> @which [2 3] .+ [1 2] ERROR: UndefVarError: .+ not defined Posts: 4 Participants: 3 Read full topic

View Article

How to I test a macro

@dfioravanti wrote: (topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) Posts: 1 Participants: 1 Read full topic

View Article


Errors in Travis-CI for building a new package

@rakshit_naidu wrote: My github repo link is: https://github.com/r0cketr1kky/Dogsay.jl I have more than 40 builds and I still can’t figure out my error. It would be great if someone could assist me in...

View Article

Package cannot be installed on Julia 1.0.4

@rakshit_naidu wrote: I cannot install my Package in Julia. Github link for my package: https://github.com/r0cketr1kky/Dogsay.jl I tried to install it by using Pkg; Pkg.add(“Dogsay”) and I keep...

View Article

Automerge.run error when registering for package

@rakshit_naidu wrote: I have followed the instructions to register my package using Registrator.jl I face an error in the last step of the Automerge.run I have also added CompatHelper.jl to my repo....

View Article


Learning JuMP and Julia through Kaggle

@tog wrote: Hi All I am learning Julia & JuMP by trying to solve the Kaggle Santa Klaus problem of the year. My current model of the problem is posted below. It does not seem fully legit. My...

View Article


Julia startup error during initialization of module GMP

@SocksNSandals wrote: With a fresh installation of julia on my mac (running High Sierra version 10.13.6), I am getting a “Error during initialization of module GMP” message on startup. I get the same...

View Article

Workflow for converting Python scripts

@drhouse82 wrote: Hi, I have a rather vague question about your typical workflows to convert python scripts to Julia. First off all, I’m amazed how nice and performant PyCall works and this has really...

View Article

Using pycall from threads

@drhouse82 wrote: I have a potentially stupid question: Is it possible to use pycall / pyplot from several threads at the same time? I would guess it is not, but I want to be sure… (I could imagine...

View Article

Permutation / combination of elements of a matrix per row

@tog wrote: Hi I have created a M x N matrix from which I want to create all elements resulting from i.e. if I have A = [ 11 12 13 14; 21 22 23 24; 31 32 33 34], I want to create: [11; 21; 31] [11;...

View Article


DL_LOAD_PATH cleared outside of module

@dmillard wrote: I am writing a module Foo, which depends on ccalling some code in another part of my source tree. In my module, I push!(Libdl.DL_LOAD_PATH, "path/to/file"), and I’m able to find the...

View Article

Generating a type inheritance diagram

@yuxi.liu wrote: I want to see a type inheritance diagram of Julia’s classes, such as Base. Is there a tool to view it? Posts: 4 Participants: 4 Read full topic

View Article


What does Tuple{3} mean in StaticArrays?

@yuxi.liu wrote: In StaticArrays example, there is this line: similar_type(m3) == SArray{Tuple{3,3},Int64,2,9} What is Tuple{3,3}? I thought Tuple, as a parameterized concrete type constructor, can’t...

View Article

Image may be NSFW.
Clik here to view.

Difference between f(1.0e-7) & f(1.0e-8)

@Stephen wrote: the limit of the following function at 0 is 1, yet f(1.0e-8) gives 0 while f(1.0e-7) gives the correct answer, why? julia> f(x)=2*(1-x*exp(-x)-exp(-x))/(1-exp(-x))^2 f (generic...

View Article


Why does rand() in threads slowdown speed in Julia 1.3

@Sijun wrote: In Julia 1.3 each thread has its own default global RNG. Calling rand() in each thread is safe. So the following code that calculates pi returns correct result: function par_pi(n::Int)...

View Article

What library do you suggest to parse HTML page and additionally navigate...

@BMval wrote: What library do you suggest to parse a HTML page and additionally navigate through the page? Posts: 3 Participants: 3 Read full topic

View Article

Using PyCall to call iminuit

@zwwi wrote: Hello, I’m working in high energy physics, and there is a package called MINUIT, https://seal.web.cern.ch/seal/snapshot/work-packages/mathlibs/minuit/, that is commonly used in the field...

View Article
Browsing all 2795 articles
Browse latest View live