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

Symbolic differential geometry on Julia

I like Pluto.jl reactive notebook paradigm and I miss it when I use Python for symbolic work on differential geometry. More precisely, I use the SageManifolds package. I am looking for an alternative...

View Article


Julia either very fast or very slow, with little in between?

I have the impression that Julia commands are often execute very fast (as advertised), but when they are not, it takes ages (up to the point where I’d have to kill it–and system monitor shows that a...

View Article


What is julia lang equivalent to R's %in%?

Hello, I have a vector: b = ["NC_001422", "NZ_CP008698", "NZ_CP016318" , "NZ_CP010905", "NZ_CP019649", "NZ_CP029707" , "NZ_CP011102", "NC_006905", "NC_006905", "NC_009142", "NC_006322", "NC_013971",...

View Article

How to convert 1-element Array{String,1} to string?

Hello, I have this array: unique(w.Hit) 1-element Array{String,1}: "AC_000006.1 Human adenovirus D" I would like to get the letters from position 13 to the end but: julia>...

View Article

StaticArrays field values printed as undef?

I’m using a StaticArrays.jl FieldVector for a 3-vector that can be both accessed by field name (v.x) as well as by index (v[1]). I also added a length function to get the vector length: using...

View Article


Find array elements not present in another array

hello, I have two arrays with the elements julia> h = unique(he.ID) 1421-element Array{String,1}: "AC_000011" "AC_000019" "AC_000189" "AC_000190" ⋮ "NC_039209" "NC_039212" "NC_039213" "NC_039236"...

View Article

Image may be NSFW.
Clik here to view.

Flux does not update weights only biases

After the training step if I display the weights they are the same as at the initialization of the network. image971×462 57.8 KB image936×425 45.6 KB image923×278 27.6 KB image929×316 39.7 KB...

View Article

Image may be NSFW.
Clik here to view.

Location of juliarc.jl file

Based on this, from the Plots.jl docs : image1026×196 16.3 KB I was wondering where the juliarc.jl file is located. I am starting to suspect that I actually want to make changes in the...

View Article


Operations on small matrices and BLAS in 1.6.0 RC1

With some code that uses only 4x4 matrices and that did nothing multi-threaded I was surprised to see CPU usage go up to all 4 cores on my machine (with a large percentage of system time) when using...

View Article


Building simple sequence-to-one RNN with Flux

Can anyone please help with my sequence-to-one RNN. Here is where I am: Each of my sequences consists of seq_length vectors (with zero padding if necessary for shorter sequences), each of size...

View Article

How to change row's values of a column matching pattern in Julia?

Hello, I have a dataframe where some rows of a given column (‘group’) have a certain value (‘normal’). I would like to change such a value to something else. What would be the syntax? In other words,...

View Article

Understand Base.similar in doc section Customizing broadcasting

I am trying to customizing broadcasting my own type. However, I found the Julia doc section is little bit hard to follow. Can here someone tell me what is the use of the ElType argument in...

View Article

Show data on hover in Plotly 3D plot

Hello! I am trying to display data when I hover over a surface using Plots. Although “Toggle show closest data on hover” is activated, it still does not show a point. This only happens in a 3D plot,...

View Article


How to construct structs with implicitly typed fields?

From the documentation it is not clear to me how to achieve something like the following: mutable struct foo {T<:Int64, S<:Array{Float64}} size::T matrix::S function foo(size::T) where {T}...

View Article

Interpolate a 3D curve?

Hi everyone, I know this must be very simple using Interpolations.jl but I can’t get it to work. I have a 3D curve in an array (example bellow) and I need to have 10 times more points. Linear or...

View Article


Good practice for subset in Julia/JuMP

Hello everyone, I have some questions about good practice in Julia/JuMP to manipulate subset of elements in a model. In my usage, I want to do a model using graph, so I have my graph G=(V, E). All...

View Article

Error building `IJulia` on initial install and package update

I solved my issues installing but wanted to put them here in case others had the same issues. I am running Windows 10 Home on an Intel Core i7. I have previously installed Visual Studio 2019 Community...

View Article


Can Fortran subroutines be passed as argument to the function called in ccall

I searched and saw documentation and discussions on passing different types of variables but nothing on passing subroutines or functions as argument in ccall. We are in the process of converting our...

View Article

Setting environment and instantiating packages in one step?

Hi, Is it possible to use a single command to activate an environment and instantiate all of its packages? It’s been a while since I played with rust, but I seem to remember that I could check out a...

View Article

Reduce "overweighted" collection entries to a given weight

Hi, I’ve been searching around (statsbase, linearalgebra) for a solution to the following (which I believe is some form of normalisation but I dont know the name) and a Julia implementation. Note that...

View Article
Browsing all 2795 articles
Browse latest View live