Category "julia"

DifferentialEquations.jl multithreading

The code below is solving an ODE with different variables, and PAs corresponding to diffrent Δs the only data I'm interested in after each loop. Since the

LMS beamforming Julia Programming

I have been trying to implement a simple LMS adaptive beamforming code. Since I don't have a Matlab license I decided to use Julia since they are quite similar.

How to see what package a function comes from?

How can see from which package a function (or some other object) originates? For example the function take!()

Distibuted Computing in Julia Slower than Serial

I have a julia function that seems very amenable to optimization. Each iteration only manipulates the stuff in its particular index. Yet this function, when imp

Run Julia codes on a HPC server

I aim to run some Julia codes on a server (no complicated parallel processing involved) using a .pbs file (and qsub). It seems that I should first load module

Why two styles of executing Juilia programs are giving different results?

If a run a program written in julia as sachin@localhost:$ julia mettis.jl then it runs sucessfully, without printing anything, though one print statement is in

Linear combinations of Zygote.Grads

I am building and training a neural network model with Flux, and I am wondering if there is a way to take linear combinations of Zygote.Grads types. Here is a m

Generate all unordered pairs from vector in Julia

I have a vector (a Base.KeySet to be precise) and I would like to iterate over all pairs of items in the vector. The simplest attempt is a nested loop for y1 in

How to draw a 'proportion graph' in Julia?

Here is an example of what I am looking for: I've looked at all of the examples in the documentation and could not find a similar graph. Any help would be app

Instead of defining an objective function, gradient, and hessian function seperatley, can you have one function return all?

Is there a way in JuMP to define a function that returns for example a tuple containing the objective function and the gradient, which you can pass to register?

How do I insert text into MySQL with Julia?

I'm struggling to get text from an input file into MySQL with Julia. Using this code: using CSV using MySQL conn = DBInterface.connect(MySQL.Connection, "local

How can i put a function into a function in Julia?

I want to run a code from a paper by Julia. There is a function about data storage. The function need to insert a function called oracle. I create a c vector an

Ctrl+C does not interrupt optimize!() regardless of solver

The problem pertains to JuMP, an optimization package for Julia. I realize this problem is likely specific to my machine; however, I have tried many of the obvi

Julia plot hline! doesn't work with multiple threads

I have a simple simulation and I want to plot errors on 3 distinct figures. To speed things up I wanted to introduce a little bit of parallel computing. Threads

Route in Genie.jl 404's despite being defined in routes.jl

In Genie, I have the following code in routes.jl: using Genie.Router route("/") do serve_static_file("welcome.html") end I ran the server by typing up(). Ho

Parallelism of Using and include, or at least, faster ways?

I am starting to have a big project and I am currently using and including many of packages and .jl files: a = time() @info "Loading JuMP" using JuMP @info "Loa

Can Julia input Unicode characters in Vscode?

From the Julia command line, typing \pi and pressing Tab gives you $\pi$. Is this possible in vsocde or jupyter? enter image description here

Storing all nonzero elements of a 2-D array via slicing

for extracting all nonzero elemnts of an one dimentional array, we do the following: One_D = [1,4,5,0,0,4,7,0,2,6] One_D[One_D .> 0] How to do a similar thi

Create a generator which returns two values at once in Julia

Given a generator: myVec1 = rand(0:4, 2) myVec2 = rand(0:4, 8) myGen = (val1 + val2 for val1 in myVec1, val2 in myVec2) This is basically a matrix with 2 colu

ModelingToolKit - PDESystem: Boundary conditions and Domain for arbitrary geometry

I am quite new to Julia so I maybe missed the proper documentation. Is it possible to define a PDESystem in ModelingToolKit with symbolic BCs and Domain for arb