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

Why Pmap() skipping a combination in the function arguments

@Saptarshi_Ghosh wrote: Hi! I am new to Julia and wondering about a simple implementation of the julia pmap function. Here is the sample code using Distributed; addprocs(6) #adding workers io =...

View Article


How to batch data for Flux for nonlinear system identification?

@Volker wrote: Hi, I´m little bit confused by the batching topic of the documentation of Flux. So here is what I would like to do: E.g. I have a nonlinear dynamic system y[k] = 0.4 * atan(2.0 *...

View Article


Defining method for type before declaring that type

@cojua8 wrote: Hi, For some reason (I know that it can be bad architecture), I need to write functions for a type that is not yet declared. Is there a way to do this? Posts: 4 Participants: 4 Read...

View Article

Solving a second order coupled BVP with boundaries at infinity using...

@JonathanLoz wrote: I’m trying to solve the following coupled differential equations in Julia by using DifferentialEquations.jl and BoundaryValueDiffEq.jl \begin{align}...

View Article

Where is the path `@v#.#` and `@stdlib`?

@xiaodai wrote: When I type LOAD_PATH I get 3-element Array{String,1}: "@" "@v#.#" "@stdlib" I read in the environment variable documentation that If the variable is set to @. then Julia tries to find...

View Article


What does inlineanonymous function do?

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

View Article

How to "delete" a key from NamedTuple

@xiaodai wrote: I know tuples are meant to be immutable, but I am interested in a way to create a new named tuple B that is the same as A except that it has :key1 deleted. I was hoping something like...

View Article

How to create a @ntuple-like macro but can hundle arbitrary number of nested...

@QUANG_VU_NGUY_N_PH_M wrote: I would like to create a macro that can hundle arbitrary number of nested loops: julia> @ntuple 3 i -> 2i (2, 4, 6) julia> FEM.@ntuple 2 3 (i,j) -> (2i,j) ((2,...

View Article


Modified an array

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

View Article


Image may be NSFW.
Clik here to view.

Changing grid in Plots.jl?

@Ahmed_Salih wrote: Hello! Basically I have something like this: image536×512 11.4 KB I want to make it into something like this, where the grey grid lines (so I want them removed as well) are...

View Article

How to create an array consists of indices of elements in one array that...

@QUANG_VU_NGUY_N_PH_M wrote: I firstly declared 2 arrays: coord1 = [[0.0, 0.0], [1.0, 0.0], [0.0, 1.0], [1.0, 1.0], [0.0, 2.0], [1.0, 2.0]] coord2 = [[1.0, 0.0], [2.0, 0.0], [1.0, 1.0], [2.0, 1.0]] I...

View Article

Image may be NSFW.
Clik here to view.

Julia against Maple

@ameresv wrote: Hi! More than a question, I am looking for a piece of advice for a project that I have. Most of the optimization and equations that I have to resolve for my paper requires the usage of...

View Article

How to remove irrelevant array entries?

@Ahmed_Salih wrote: Hello! In this case I have: idc 2×9 Array{Int64,2}: 1 2 0 1 1 2 0 0 2 1 1 1 2 0 2 2 0 0 I only care about columns, in which 0 does not appear. Therefore, coming from Matlab, I...

View Article


Find types of arguments of a function's method

@Albert_Zevelev wrote: Suppose I wanna compute the mean of every distribution in Distributions.jl. I create a vector w/ all distributions then loop through each & compute the mean. Thanks to...

View Article

Problems with juno

@asb wrote: I installed JuliaPro on a system running Ubuntu 16.04 LTS. When I typed at the terminal prompt JuliaPro the Juno interface opened, and if I pressed “Enter” in the correct window, Julia...

View Article


Pkg.add doesn't work

@EmmyJ wrote: Hi, I’ve just done a fresh install of Julia (tried multiple versions already, but I need v0.6) and whenever I try Pkg.add, I get the same error: I’m on a Windows 10. julia>...

View Article

Auto-Installing Dependencies

@themadprogramer wrote: So let’s say I have a project with dependencies. I could them to install with Pkg.add() But I’ve also read a bit about Project.toml and Manifest.toml , which seem a lot...

View Article


Name That Tune: I Can Code That In One Step

@blackeneth wrote: A highly fascinating function I’m writing requires, at one point, I create a vector of length nv that contains the result of this calculation: abs(2*mod(q[i-1]+rand(),1)-1) That is,...

View Article

I want to implement a normal log in julia and i'm new in and don't know how...

@Rezvious wrote: hi all; i want to implement a normal log in Julia, I used “using Distributions” and i’m trying to run in it in Jupiter notebook but when I press TAB and write LogNormal it doesn’t...

View Article

Need recommended packages?

@hafez_ahmad wrote: I am new to Julia’s programming. I am searching for Julia packages, tutorial and books in a few fields. would you tell me please most stable and enriched packages in the following...

View Article
Browsing all 2795 articles
Browse latest View live