Can you make this shorter, more elegant, and more julia-esque
Hi Can you make this code more elegant flag1 = (0,1) flag2 = (0,1) flag3 = (0,1) flag4 = (0,1) flag5 = (0,1) for i1 in flag1 for i2 in flag2 for i3 in flag3 for i4 in flag4 for i5 in flag5...
View ArticleMaking julia 1.5 fails on a debian
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticlePerformance of sparse matrix multiplied with a reshaped view
Hello everybody, this question is very similar to other performance questions with sparse matrix multiplications where performance hits boil down to julia falling back to unoptimized methods. Still, I...
View ArticleInitialising typed array of tuples of ints
Hi, I’m coming from Python so I’m not too hot on static types. I want an array of tuples of Ints. The number of elements in the array will change depending on the data set used, but the tuples will...
View ArticleHow to extract a time series from an image?
Hi everybody, I’d like to obtain a time series from the image of a signal. I have a really old paper that includes a Figure from where I need to extract and analyse a 10[s] epoch that became gold...
View ArticleTextAnalysis.jl Naive Bayes Error
I am trying to use TextAnalysis.jl for some text classification using the Naive Bayes Classifier. However, I’ve been unable to begin as I’m getting an error before I can even load the classifier....
View Article@time is off by at least 10x
f1 calls f2 and f3. (this trivial logic will help with parallelization later) f2 and f3 both mutate struct1 and struct2. function f1!(int1,int2,struct1,struct2) println("\n running f2: ") @time...
View ArticleArray conversion
How can we convert a 2-element array where each element is a row vector of size N to an array of size 2 by N? Thanks 5 posts - 4 participants Read full topic
View ArticleJulia Portable Mode o Standalone
Hello, How to correctly configure Julia standalone, For everything to happen from the external storage USB drives: Add, update packages !!!? In the site VSC portable, you can read how to configure VSC...
View ArticleBetter support for running external commands
Currently, in Julia the run function is not as stable as the rest of the Julia. You can’t run external commands with special characters. The different behavior of Cmd from String makes using it...
View ArticleFitting a dynamic system with an exogenous input via DiffEqFlux
Hello, I´m trying to fit a dynamic system (a hammerstein system, implemented below) with an exogenous input via DiffEqFlux, but actually I don´t know how to put the input excitation into the...
View ArticleEEG.jl -> Present and Future
Hi everybody, Present Today I tried to use the EEG.jl package but I could not add it. Is anybody using it? (@v1.5) pkg> add https://github.com/rob-luke/EEG.jl Updating git-repo...
View ArticleUse of getindex.(L,1) in a for loop
I am converting some old Julia 0.5 code into Matlab. I know broadcasting uses the dot notation but I don’t understand why you would want to use: L = getindex.(L,1) inside a for or while loop in Julia...
View ArticleAccessing an element of a structure based off of a string
I want to be able to access and change an element of a structure based off a string that has been read in from a text file and then change the value of that element. The element that is being changed...
View ArticleParameters in DiffEqFlux
I’m having trouble understanding how to enter the trainable parameters into DiffEqFlux. In order to understand how DiffEqFlux works, I set myself the following exercise: Replace p = [1.5, 1.0, 3.0,...
View ArticleBin behaviour in fit( Histogram, (x,y) ) |> Plots.heatmap
Hi, I would to ask for your support with this one. I am fitting an 2d-histrogram to a tuple of vectors. Then, I try to heatmap it but I cannot make it work. Interestingly, for random data it works as...
View ArticleDisplay values from Distributions
I’m trying to assign values of Beta(a,b) function in Distributions package to x but the value is not printing in console. using Distributions x = Beta(1,2) Gives me julia> x Beta{Float64}(α=1.0,...
View ArticleProblems to build PyCall
Dear all, I am with serious problem. I cannot to build the package PyCall to use the Package SymPy. I am with Julia 1.5, recently installed. I have run: Pkg.add(“PyCall”) import Pkg; Pkg.add(“Conda”)...
View ArticleCan't compile DiffEqParamEstim
Hi, I can’t compile DiffEqParamEstim in my PC. when I typed using DiffEqParamEsitm for the first time, I got [ Info: Precompiling DiffEqParamEstim [1130ab10-4a5a-5621-a13d-e4788d82bd4c] WARNING: could...
View ArticleCuArray find first negative value along columns
I have the following which gives the correct result, but I need to keep the result on the device. diffs = CuArray([-0.1 0.2 0.1;-0.2 -0.2 -0.3]) firstmatch =...
View Article