Error using LazySets.plot3d
I even did Pkg.update() to ensure i have the latest versions, but still get t using LazySets, Makie, Polyhedra LazySets.plot3d(10. * rand(Hyperrectangle, dim=3)) MethodError: no method matching...
View ArticleInstallation problem on MacOS Big Sur
I tried to install Julia 1.5 on MacOS Big Sur. For some reason, it did not work. Here is what I did: I downloaded Julia 1.5, and then clicked on the Julia icon to put it in my application folder. A...
View ArticleAnybody had Julia runnig on VMWare ESXi directly?
This is probably a long shot… But has anybody succeeded in running Julia directly on VMWare ESXi (i.e. as against to running Julia on a VM that runs on ESXi)? I tried the Linux version of Julia on...
View ArticleIndexing arrays of strings (finding duplicates)
Hello all, I’m looking to find duplicates within an array (an exercise from the Think Julia text). I’ve got it working for numerical values, but not sure how to generalize to strings as well. Parse?...
View ArticleConstant type semantics
Consider we have some abstract type abstract type Point{T, N} end What is the main difference between Point3{T} = Point{T, 3} and const Point3{T} = Point{T, 3} What is the const modificator meaning...
View ArticleFormatting plots with Makie
With this announcement of a Makie update, I finally pushed myself to try it out and must say, I really love it. Both, the plotting script and the output look beautiful and, finally, I am ready to move...
View ArticleSymbolic computation: ModelingToolkit vs. SymPy?
With ModelingToolkit in development, I’d like to start using it soon – also for my basic CAS needs. I recently played around with SymPy, and wonder whether ModelingToolkit can handle my cases there…...
View ArticleMultithreading
I have 3/several functions taking some parameter(s) and returning Bool. Behind each of them is SQL Query. Currently I am running them sychronously, one after another, and if one of them returns false,...
View ArticleData Structures for 3D mesh
I want to plot 3D triangular mesh in Julia. “JuliaPlots/Makie.jl” package looks good for this purposes and I visited the “JuliaPlots/MakieGallery.jl/blob/master/examples/examples3d.jl” for some...
View ArticleClosure strange behaviour
Hello, I’m experiencing the following unexpected behaviour. Imagine you have a function like: function select_function(p) if p == "a" function a() println("a") end elseif p == "b" function a()...
View ArticleGradient of Neural Network wrapper can't be taken
I use the following wrapper for neural network nn = Chain(Dense(2, 64, relu), Dense(64, 1)) function wrapper_nn(state) q, q_t = state dfdx(x,x_t) = ForwardDiff.derivative(x -> nn([x, x_t]), x) #qtt...
View ArticleSeemingly innoculus change causes code to run 4 times slower
I have a simple script that solves an economic model. It solves my problem quickly but isn’t very readable. On making a small change to the code (to improve readability), essentially defining the...
View ArticleIs package from dependencies avialable for using
Could you please help me to understand the Packages dependencies using. For example, I installed the GLMakie package: Updating `C:\Users\aleck\.julia\environments\v1.5\Project.toml` [e9467ef8] +...
View ArticleIterators.Stateful is not an iterator?
I’m trying to understand iterators better because I’m trying to decide whether I should, for my specific application, define iterate for my type or define a constructor of Iterators.Stateful for my...
View ArticleSample row from array
How do I sample from a two dimensional array by row? Is there a julia specific way and/or build-in function to do this? I am only able to sample elements using StatsBase m = [1 2 3; 4 5 6; 7 8 9]...
View ArticleHow to update learning rate during Flux training in a better manner?
Hi, I am trying to update the training rate during training. I did it with custom training loop like below: using Flux using Flux: @epochs using Flux: Flux.Data.DataLoader M = 10 N = 15 O = 2 X =...
View ArticleError with ForwardDiff Dual numbers (DifferentialEquations, and Turing)
I am trying to estimate parameters for an ODE system using Turing, ForwardDiff, and DifferentialEquations. However, I consistently get the following error: ERROR: LoadError: TypeError: in setfield!,...
View ArticleUnsupported dynamic function invocation (call to pointerref)
%%julia # Load the data println("start") x_train, y_train,x_valid, y_valid=h5open("./data.h5", "r") do file read(file, "tr_X","tr_Y","va_X","va_Y") end|> gpu println("read done") x_train =...
View ArticlePrint the current stacktrace to stdout without throwing an exception
If I throw an exception, it prints the full stacktrace at the current point. Is there a way to print the current stacktrace to stdout without throwing an exception? 6 posts - 3 participants Read full...
View ArticleIntroductory level video tutorials on matrices, linear systems & matrix algebra
Some more introductory level back to basics video tutorials from Juan Klopper using Julia and Pluto notebooks: Tutorial on matrices with help from Julia Solving linear systems using elementary row...
View Article