Question about performance when iterating
@jokasimr wrote: Hi! Really like julia and want to learn how to debug performance better. I’m doing a project on iterated maps, and started writing in python and then decided to try julia. But when...
View ArticleScattergram
@erlebach wrote: I am making a simple scatterplot: using Plots tk = [1,2,3,5,8] y = [1. for i in 1:length(tk)] pl = scatter(tk, y, title="Poisson train tk") display(pl) This works. However, I feel...
View ArticleMultiplication times for complex matrices: julia vs Matla
@kw_martin wrote: I’ve been looking at some different filter approaches for analyzing ECG signals using Matlab and have recently implemented them in julia in order to get a speed improvement. I have...
View ArticleInterger Division
@Lee wrote: I’m trying to divide between two integers, but a Float is returning. I just need an Int return. Any ideas? Appreciate. Posts: 4 Participants: 3 Read full topic
View ArticleJulia can process text similar to Perl
@Marks wrote: Does Julia have the same word processing functions as Perl? Posts: 4 Participants: 4 Read full topic
View ArticleGetting all types defined in a module
@Bastien wrote: Hi, Is there a way to get all the types defined in a module? For instance I am using DifferentialEquations.jl a lot and I’d like to have a list of all the types defined in that module....
View ArticleConstruct Julia Dataframe from row data
@nnn wrote: When I have data in columns, I can construct a DataFrame like this: using Dataframes nameData = ["Alice", "Bob"] surnameData = ["Smith", "Jones"] df = DataFrame(name = nameData, surname =...
View ArticleUnknown error with norm() function
@iamsuddhasattwa wrote: I am having trouble with using the basic norm() function after having loaded using LinearAlgebra; In the lines below, Phi is a matrix created in the middle of a larger program....
View ArticleHELP! Can not install packages... Git can not clone...
@benibilme wrote: Hello, I have a manjaro installed pc. I installed julia through manjaro package management system (pacman). The installed julia version is 1.3.1. I tried to install several packages...
View ArticleUse of constant types
@erlebach wrote: I am struggling with the issue of changing the type of a global variable. I keep a set of functions I am working on in a file “global_functions.jl”, which I include in my main...
View ArticleHow to impose ordered constraints to model variables
@takuizum wrote: Hi, everyone. Lately, I have been learning Bayesian inference with Julia and Turing and trying to implement IRT(Item response model; logistic regression with latent variables). Today,...
View ArticleFunction argument Array{Array{ComplexF64,2},1} seems to be ignored
@kw_martin wrote: I have a function definition: function simBiquad(xin::Array{ComplexF64,1}, A::Array{Array{Complex{Float64},2},1}, B::Array{Array{Complex{Float64},2},1},...
View ArticleUnable to generate random tuples
@mindaslab wrote: Can some one explain why I am unable to generate random tuples. The code is here: https://gitlab.com/snippets/1955383 Thank you. Posts: 3 Participants: 3 Read full topic
View ArticleDifferentialEquations Parameters
@jacob-roth wrote: When passing parameters p to the function f of an ODEProblem (or any problem type in the DiffEq universe), does p always have to be an array? Is there a “best practices” reason for...
View ArticleSaving Audio with Correct Sample Rate
@ambiso wrote: Hay! I’m trying to generate and save a very simple 440Hz waveform. Unfortunately, the generated file does not inherit the 44100Hz sample rate that I assigned. Instead it has a 8000Hz...
View ArticleOverriding methods with closures?
@gleyland wrote: Hi, Is it possible to override a method with a closure? function add(x, y) x + y end function test() add(y) = add(1, y) add(2) end test() ERROR: MethodError: no method matching...
View ArticleTimerOutputs.jl
@erlebach wrote: I am trying to time a piece of code. Here is a MWE: using TimerOutputs function x() @timeit to "Timing" a = 3 + 4 end x() I get the error: “to” is not defined. What is my error?...
View ArticleJulia on remote RedHat cluster
@LysandrosAn wrote: Dear all, in order to conduct numerical calculations I have been granted access to a remote high-performance cluster running on Redhat linux. So far, I can run a batch script that...
View ArticleSpeed difference when storing annonymous function in variable vs. function
@moustachio-belvedere wrote: Apologies if I am making a mistake with my benchmarking here, but I am wondering why there is such a significant speed difference between using an annonymous function...
View ArticleHow to take slice of array without it turning into vector
@kw_martin wrote: Background, I am realizing a filter bank of FIR filters that involve matrix operations on Array{ComplexF64,2}. Every time I take a slice, it turns into an Array{ComplexF64,1} and I...
View Article