# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=125

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 126

---

## [CUDNNError: CUDNN\_STATUS\_NOT\_SUPPORTED (code 9) with Transformers.jl](https://discourse.julialang.org/t/cudnnerror-cudnn-status-not-supported-code-9-with-transformers-jl/103453)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 5\
**Last updated:** [March 19, 2024, 6:27am UTC](https://discourse.julialang.org/t/cudnnerror-cudnn-status-not-supported-code-9-with-transformers-jl/103453 "2024-03-19T06:27:26Z")

</div>

Hi, I am optimizing prompt for llama2 model with Transformers.jl and I occasionally see this error. CUDNNError: CUDNN\_STATUS\_NOT\_SUPPORTED (code 9) Stacktrace: \[1\] throw\_api\_error @ ~/.julia/packages/cuDNN/YkZhm/…

---

## [ModelingToolkit stepping through simulation manually](https://discourse.julialang.org/t/modelingtoolkit-stepping-through-simulation-manually/111736)

<div class="topic-metadata">

**Author:** [@rg2](https://discourse.julialang.org/u/rg2)\
**Replies:** 3\
**Last updated:** [March 19, 2024, 2:19am UTC](https://discourse.julialang.org/t/modelingtoolkit-stepping-through-simulation-manually/111736 "2024-03-19T02:19:55Z")

</div>

Hi! I created a system with modelingtoolkit, which I’m now trying to expose to python through PythonCall.jl in order to simulate the system and learn a controller using reinforcement learning. For that to work as I imag…

---

## [GTK4 compound widget](https://discourse.julialang.org/t/gtk4-compound-widget/111584)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 11:13pm UTC](https://discourse.julialang.org/t/gtk4-compound-widget/111584 "2024-03-18T23:13:01Z")

</div>

Hello, I’m struggling to make a compound widget using struct under GTK4, does anyone have an example ? Thanks

---

## [Weird phase result between two simple sine curves](https://discourse.julialang.org/t/weird-phase-result-between-two-simple-sine-curves/111769)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 12\
**Last updated:** [March 18, 2024, 7:32pm UTC](https://discourse.julialang.org/t/weird-phase-result-between-two-simple-sine-curves/111769 "2024-03-18T19:32:41Z")

</div>

Hi all, I’m trying to get the relative phase between two simple sine series: I’m trying to use FFTW to get their angle from the dominant frequency and calculate the relative phase: function FFT\_phase\_rel(sig1, sig2,…

---

## [Hamiltonian Monte Carlo gets stuck at tiny local maxima](https://discourse.julialang.org/t/hamiltonian-monte-carlo-gets-stuck-at-tiny-local-maxima/108389)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 14\
**Last updated:** [March 18, 2024, 6:22pm UTC](https://discourse.julialang.org/t/hamiltonian-monte-carlo-gets-stuck-at-tiny-local-maxima/108389 "2024-03-18T18:22:40Z")

</div>

Hello! This is my first time trying to perform Bayesian inference, and I have found some problematic behavior when using Hamiltonian Monte Carlo. I’d like some help in figuring out what may be going wrong. I have a like…

---

## [Implementing Laplacian operator acting on a 2D array](https://discourse.julialang.org/t/implementing-laplacian-operator-acting-on-a-2d-array/111615)

<div class="topic-metadata">

**Author:** [@matt1](https://discourse.julialang.org/u/matt1)\
**Replies:** 6\
**Last updated:** [March 18, 2024, 5:41pm UTC](https://discourse.julialang.org/t/implementing-laplacian-operator-acting-on-a-2d-array/111615 "2024-03-18T17:41:03Z")

</div>

Hello, I’m interested in implementing the laplacian operator \\nabla^2=\\partial\_x^2+\\partial\_y^2, such that I can apply it to a matrix A\_{ij} and obtain the corresponding matrix: B\_{ij}=(\\nabla^2A)\_{i,j}. For example, th…

---

## [Solving nonlinear constrained optimization problem](https://discourse.julialang.org/t/solving-nonlinear-constrained-optimization-problem/111255)

<div class="topic-metadata">

**Author:** [@rtapia](https://discourse.julialang.org/u/rtapia)\
**Replies:** 35\
**Last updated:** [March 18, 2024, 5:32pm UTC](https://discourse.julialang.org/t/solving-nonlinear-constrained-optimization-problem/111255 "2024-03-18T17:32:29Z")

</div>

Hello, I am trying to solve the following nonconvex problem in Julia using Optim.jl: min x’Px s.t: 1 -x’\*x \<=0 where P is a positive definite matrix. I have defined the following using JuMP, Optim n = 1500; A = 10…

---

## [Multiplication of matrix expression and variables leads to stack overflow and matmul error](https://discourse.julialang.org/t/multiplication-of-matrix-expression-and-variables-leads-to-stack-overflow-and-matmul-error/111760)

<div class="topic-metadata">

**Author:** [@Rahul\_Narwar](https://discourse.julialang.org/u/Rahul_Narwar)\
**Replies:** 2\
**Last updated:** [March 18, 2024, 12:00pm UTC](https://discourse.julialang.org/t/multiplication-of-matrix-expression-and-variables-leads-to-stack-overflow-and-matmul-error/111760 "2024-03-18T12:00:10Z")

</div>

I have an optimal orbital transfer problem: h = 2 n = 6 m = 3 model = Model(NLopt.Optimizer) set\_optimizer\_attribute(model, "algorithm", :AUGLAG) local\_optimizer = NLopt.Opt(:LD\_LBFGS, n\*(h+1) + m\*h) local\_optimizer.xt…

---

## [How to handle floating point observable to keep rounding at two digits?](https://discourse.julialang.org/t/how-to-handle-floating-point-observable-to-keep-rounding-at-two-digits/111764)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 0\
**Last updated:** [March 18, 2024, 11:14am UTC](https://discourse.julialang.org/t/how-to-handle-floating-point-observable-to-keep-rounding-at-two-digits/111764 "2024-03-18T11:14:46Z")

</div>

I am trying to draw an interactive plot of a SIV model with GLMakie. I have added the sliders and forced the values associated to these sliders to two decimal digits. While the sliders for the parameters mu and omega wor…

---

## [Is \`cumsum\` differentiable with Zygote when used in a Flux model?](https://discourse.julialang.org/t/is-cumsum-differentiable-with-zygote-when-used-in-a-flux-model/111738)

<div class="topic-metadata">

**Author:** [@MattSainsbury-Dale](https://discourse.julialang.org/u/MattSainsbury-Dale)\
**Replies:** 2\
**Last updated:** [March 18, 2024, 10:24am UTC](https://discourse.julialang.org/t/is-cumsum-differentiable-with-zygote-when-used-in-a-flux-model/111738 "2024-03-18T10:24:16Z")

</div>

I have a call to cumsum in my Flux model that works as intended in the forward pass, but throws an error when I try to differentiate it. A minimum working example: using Flux n = 5 x = \[rand(1, n), rand(1, n)\] # dumm…

---

## [Creating variables using JuMP](https://discourse.julialang.org/t/creating-variables-using-jump/111562)

<div class="topic-metadata">

**Author:** [@heiwie](https://discourse.julialang.org/u/heiwie)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 9:40am UTC](https://discourse.julialang.org/t/creating-variables-using-jump/111562 "2024-03-18T09:40:35Z")

</div>

I am trying to define variables corresponding to nodes in a lattice consisting of one root node and two other time steps with two nodes each. I have defined a 2D list with all the nodes which I want to use for the indexi…

---

## [Is “repeat“ mousebutton action implemented in Makie?](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 2\
**Last updated:** [March 18, 2024, 9:15am UTC](https://discourse.julialang.org/t/is-repeat-mousebutton-action-implemented-in-makie/111647 "2024-03-18T09:15:02Z")

</div>

I got a bit confused by one of the examples provided on the Makie web page on events (Events · Makie). In the code example that illustrates the implementation of dragging a point, one of the conditions checks whether the…

---

## [Trying to put together our own MARL environment](https://discourse.julialang.org/t/trying-to-put-together-our-own-marl-environment/111732)

<div class="topic-metadata">

**Author:** [@artisakov](https://discourse.julialang.org/u/artisakov)\
**Replies:** 0\
**Last updated:** [March 17, 2024, 7:47pm UTC](https://discourse.julialang.org/t/trying-to-put-together-our-own-marl-environment/111732 "2024-03-17T19:47:03Z")

</div>

Hi, I’m from a university student RL team and we are going to make a new multi-agent cooperative-adversarial environment for learning optimal strategies for short-term scheduling of incoming bids (surgical procedures in …

---

## [An error occurred when I \`add JuMPeR\`](https://discourse.julialang.org/t/an-error-occurred-when-i-add-jumper/111726)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [March 18, 2024, 3:48am UTC](https://discourse.julialang.org/t/an-error-occurred-when-i-add-jumper/111726 "2024-03-18T03:48:49Z")

</div>

I add JuMPeR after add JuMP, but it reported an error (P.S. JuMP is correctly installed): (myenv) pkg\> add JuMPeR Resolving package versions... Updating \`D:\\myenv\\Project.toml\` \[707a9f91\] + JuMPeR v0.6.0 Up…

---

## [Is there any overview of current solvers compatible with \`JuMP\`?](https://discourse.julialang.org/t/is-there-any-overview-of-current-solvers-compatible-with-jump/111720)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [March 18, 2024, 3:47am UTC](https://discourse.julialang.org/t/is-there-any-overview-of-current-solvers-compatible-with-jump/111720 "2024-03-18T03:47:56Z")

</div>

The JuMP documentation enumerates several optional optimization solvers. I am curious if this represents the complete collection of optional solvers currently compatible with JuMP, and whether there exists a consolidated…

---

## [Unstablities when solving initial value problem with Julia DifferentialEquations.jl](https://discourse.julialang.org/t/unstablities-when-solving-initial-value-problem-with-julia-differentialequations-jl/110910)

<div class="topic-metadata">

**Author:** [@paho](https://discourse.julialang.org/u/paho)\
**Replies:** 3\
**Last updated:** [March 18, 2024, 12:05am UTC](https://discourse.julialang.org/t/unstablities-when-solving-initial-value-problem-with-julia-differentialequations-jl/110910 "2024-03-18T00:05:23Z")

</div>

I’m trying to numerically determine the stationary solution of Fokker-Plank equations \\frac{\\partial P}{\\partial t}(x,t) = -\\frac{\\partial }{\\partial x}\\left\[A(x,t) P(x,t)\\right\]+\\frac{1}{2}\\frac{\\partial^2}{\\partial^2 x…

---

## [Gurobi and non linear](https://discourse.julialang.org/t/gurobi-and-non-linear/111665)

<div class="topic-metadata">

**Author:** [@Fabrizio](https://discourse.julialang.org/u/Fabrizio)\
**Replies:** 7\
**Last updated:** [March 17, 2024, 10:47pm UTC](https://discourse.julialang.org/t/gurobi-and-non-linear/111665 "2024-03-17T22:47:33Z")

</div>

Hi, the (python) inteface of Gurobi, since 9.0 ver, enables to consider non linear/non convex OF/cns. Notably square roots of variables in the form \\sum\_i \\sqrt(z\_i) \\leq k . This by means of the function that let y…

---

## [Creating nodes with the same variables/constraints in Plasmo](https://discourse.julialang.org/t/creating-nodes-with-the-same-variables-constraints-in-plasmo/111651)

<div class="topic-metadata">

**Author:** [@evrenmturan](https://discourse.julialang.org/u/evrenmturan)\
**Replies:** 1\
**Last updated:** [March 17, 2024, 8:26pm UTC](https://discourse.julialang.org/t/creating-nodes-with-the-same-variables-constraints-in-plasmo/111651 "2024-03-17T20:26:07Z")

</div>

I posted this on Slack, and was recommended to also post it here. I am setting up a problem in Plasmo, in which some nodes have (some of) the same variables & constraints as other nodes. So I wanted to write a function …

---

## [\`using JuMP\` reports an ERROR](https://discourse.julialang.org/t/using-jump-reports-an-error/111700)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [March 17, 2024, 8:16pm UTC](https://discourse.julialang.org/t/using-jump-reports-an-error/111700 "2024-03-17T20:16:34Z")

</div>

It reports an ERROR when I using JuMP (version: JuMP v1.20.0): \[ Info: Precompiling JuMP \[4076af6c-e467-56ae-b986-b466b2749572\] ERROR: LoadError: ArgumentError: Package JuMP does not have SnoopPrecompile in its dependen…

---

## [How to create an user-function?](https://discourse.julialang.org/t/how-to-create-an-user-function/111702)

<div class="topic-metadata">

**Author:** [@Coral](https://discourse.julialang.org/u/Coral)\
**Replies:** 1\
**Last updated:** [March 17, 2024, 8:13pm UTC](https://discourse.julialang.org/t/how-to-create-an-user-function/111702 "2024-03-17T20:13:50Z")

</div>

Hello everyone, I am trying to do a trajectory optimization using Julia. To begin to familiarize myself with the environment I have tried to implement a simpler problem such as maximizing the height of ascent of a rocke…

---

## [How to sort an array based on another on GPU (CUDA) efficiently?](https://discourse.julialang.org/t/how-to-sort-an-array-based-on-another-on-gpu-cuda-efficiently/111693)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 3\
**Last updated:** [March 17, 2024, 7:44pm UTC](https://discourse.julialang.org/t/how-to-sort-an-array-based-on-another-on-gpu-cuda-efficiently/111693 "2024-03-17T19:44:49Z")

</div>

Hello! I have the following toy-example below: using CUDA using BenchmarkTools function reorder\_vectors!(sorted\_indices, vec1, vec2, vec3) CUDA.sortperm!(sorted\_indices, vec1) vec1 .= vec1\[sorted\_indices\] …

---

## [@cuda max\_registers not registered as a key word argument?](https://discourse.julialang.org/t/cuda-max-registers-not-registered-as-a-key-word-argument/111695)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [March 17, 2024, 7:24pm UTC](https://discourse.julialang.org/t/cuda-max-registers-not-registered-as-a-key-word-argument/111695 "2024-03-17T19:24:47Z")

</div>

ERROR: LoadError: ArgumentError: Unsupported keyword argument 'max\_registers' And I am applying it as shown in the documentation: @cuda max\_registers=32 Kind regards

---

## [Fail to precompiling JuMP](https://discourse.julialang.org/t/fail-to-precompiling-jump/111618)

<div class="topic-metadata">

**Author:** [@Kaiming\_Zhang](https://discourse.julialang.org/u/Kaiming_Zhang)\
**Replies:** 3\
**Last updated:** [March 17, 2024, 6:31pm UTC](https://discourse.julialang.org/t/fail-to-precompiling-jump/111618 "2024-03-17T18:31:37Z")

</div>

I’m using these packages: using JuMP, Distributions, MathProgBase, Ipopt, JuMPChance using Gurobi \[ Info: Precompiling JuMP \[4076af6c-e467-56ae-b986-b466b2749572\] ERROR: LoadError: UndefVarError: \`Grisu\` not defined…

---

## [Updating Makie plot based on button action](https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 6\
**Last updated:** [March 17, 2024, 6:11pm UTC](https://discourse.julialang.org/t/updating-makie-plot-based-on-button-action/111706 "2024-03-17T18:11:23Z")

</div>

I’m currently discovering interactions with on in GLMakie. I’ve tried to make an example where I can start an animation by clicking on a button The animation performed as a loop however, it seems intermediate frames …

---

## [MethodError: no method matching getindex(::Float64, ::Colon, ::Int64)](https://discourse.julialang.org/t/methoderror-no-method-matching-getindex-float64-colon-int64/111727)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 8\
**Last updated:** [March 17, 2024, 5:03pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-getindex-float64-colon-int64/111727 "2024-03-17T17:03:17Z")

</div>

I am getting error when runing code :point\_down: function alfven\_surface(N\_r, N\_theta, theta, v\_r, v\_theta, B\_r, B\_theta, rho, tracer) """ Given poloidal velocity field (vp) and poloidal magnetic field (bp), th…

---

## [Score function Mittag-Leffler pdf](https://discourse.julialang.org/t/score-function-mittag-leffler-pdf/111724)

<div class="topic-metadata">

**Author:** [@aner-sanchez](https://discourse.julialang.org/u/aner-sanchez)\
**Replies:** 0\
**Last updated:** [March 17, 2024, 2:53pm UTC](https://discourse.julialang.org/t/score-function-mittag-leffler-pdf/111724 "2024-03-17T14:53:44Z")

</div>

Good sunday to everyone, I’ve been trying to compute the score function of the Mittag-Leffler distribution given by the pdf f(t;\\alpha,d)=d t^{\\alpha -1}E\_{\\alpha,\\alpha}(-dt^\\alpha);\\quad d,t\>0,\\quad \\alpha\\in(0,1) w…

---

## [Callbacks causing wrong solution mixed ODE and Linear system](https://discourse.julialang.org/t/callbacks-causing-wrong-solution-mixed-ode-and-linear-system/111648)

<div class="topic-metadata">

**Author:** [@Lode](https://discourse.julialang.org/u/Lode)\
**Replies:** 3\
**Last updated:** [March 17, 2024, 12:47pm UTC](https://discourse.julialang.org/t/callbacks-causing-wrong-solution-mixed-ode-and-linear-system/111648 "2024-03-17T12:47:15Z")

</div>

Hello, I am new in Julia and tried to model a system with a discrete stepping feedback controller. The system was modelled using ‘ModelingToolkit’ and thereafter converter to an ‘ODEProblem’. The discrete feedback con…

---

## [Expressing multivariate repsonse with StatsModels.@formula](https://discourse.julialang.org/t/expressing-multivariate-repsonse-with-statsmodels-formula/111705)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 0\
**Last updated:** [March 16, 2024, 7:08pm UTC](https://discourse.julialang.org/t/expressing-multivariate-repsonse-with-statsmodels-formula/111705 "2024-03-16T19:08:03Z")

</div>

Hi all, I’m trying to model a multivariate response variable using GLM.jl (and potentially MixedModels.jl at a later point). I know that there isn’t first-class support for this, but people usually suggest introducing a…

---

## [How to re-draw a plot with PyPlot](https://discourse.julialang.org/t/how-to-re-draw-a-plot-with-pyplot/111701)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 5:42pm UTC](https://discourse.julialang.org/t/how-to-re-draw-a-plot-with-pyplot/111701 "2024-03-16T17:42:25Z")

</div>

I can create a plot with PyPlot: using PyPlot fig=figure("first") X = 0:0.1:2pi Y = sin.(X) p = plot(X, Y) But after closing the PyPlot window I cannot get it back. I tried: p display(p) show(p) fig display(fig) sho…

---

## [Allocation-less, perhaps planned, Constant Q transform](https://discourse.julialang.org/t/allocation-less-perhaps-planned-constant-q-transform/111694)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 1:40pm UTC](https://discourse.julialang.org/t/allocation-less-perhaps-planned-constant-q-transform/111694 "2024-03-16T13:40:57Z")

</div>

I’m reading up on FFTs and STFTs again for 1D real data, and eliminating startup work and allocations with rFFT plans looks promising. I’m also interested in spacing the frequency bins logarithmically like how musical pi…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=124)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=126)
