# Specific Domains

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

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

**Page:** 237

---

## [Flux.jl: Using CuDNN for RNNs](https://discourse.julialang.org/t/flux-jl-using-cudnn-for-rnns/89988)

<div class="topic-metadata">

**Author:** [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 1:19pm UTC](https://discourse.julialang.org/t/flux-jl-using-cudnn-for-rnns/89988 "2022-11-11T13:19:41Z")

</div>

I have seen that Flux.jl does not use CuDNN for RNNs. Does this have a specific reason? Going through the issues is really confusing, it seems that support for this was removed because tests would fail. There are also o…

---

## [Longer dashes in dashed lines](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104)

<div class="topic-metadata">

**Author:** [@pascal](https://discourse.julialang.org/u/pascal)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 12:55pm UTC](https://discourse.julialang.org/t/longer-dashes-in-dashed-lines/90104 "2022-11-11T12:55:53Z")

</div>

When plotting dashed lines I can use linestyle=:dash. To my taste the individual dashed are a bit short. Is there something like :longdash in CairoMakie? Or how can I increase the dash length?

---

## [Plots: absolute position of axis endpoints?](https://discourse.julialang.org/t/plots-absolute-position-of-axis-endpoints/90055)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [November 11, 2022, 12:28pm UTC](https://discourse.julialang.org/t/plots-absolute-position-of-axis-endpoints/90055 "2022-11-11T12:28:11Z")

</div>

As I understand, the size attribute fixes the physical size of the canvas. (Sorry I don’t know the proper terminology.) But, I wonder how to fix the physical positions of the endpoints of the axes. I’m producing a set …

---

## [Using GPU with NeuralPDE on M1 Mac](https://discourse.julialang.org/t/using-gpu-with-neuralpde-on-m1-mac/90112)

<div class="topic-metadata">

**Author:** [@MilesCB](https://discourse.julialang.org/u/MilesCB)\
**Replies:** 2\
**Last updated:** [November 11, 2022, 10:53am UTC](https://discourse.julialang.org/t/using-gpu-with-neuralpde-on-m1-mac/90112 "2022-11-11T10:53:29Z")

</div>

I’m currently using NeuralPDE.jl to learn the solution to various PDEs. Everything is working well, however I would like to train on GPUs to speed up some of my processing. For building the neural networks I am using Lux…

---

## [Plot: uniform tic marks, numeric labels at every other tic mark](https://discourse.julialang.org/t/plot-uniform-tic-marks-numeric-labels-at-every-other-tic-mark/90052)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [November 11, 2022, 10:11am UTC](https://discourse.julialang.org/t/plot-uniform-tic-marks-numeric-labels-at-every-other-tic-mark/90052 "2022-11-11T10:11:45Z")

</div>

As I understand, minor tic marks are shorter than major ones, and major ones have associated numeric labels. Now, what I want to achieve is to have tic marks with an equal length but the numeric labels are placed at eve…

---

## [How to import low-level API in MPI.jl](https://discourse.julialang.org/t/how-to-import-low-level-api-in-mpi-jl/90086)

<div class="topic-metadata">

**Author:** [@Neo](https://discourse.julialang.org/u/Neo)\
**Replies:** 5\
**Last updated:** [November 11, 2022, 2:16am UTC](https://discourse.julialang.org/t/how-to-import-low-level-api-in-mpi-jl/90086 "2022-11-11T02:16:15Z")

</div>

I wanted to use one of the low-level APIs MPI.API.MPI\_Reduce\_scatter from MPI.jl. But I failed to import it using using MPI: API or using MPI MPI.API.MPI\_Reduce\_scatter(...) Does anyone know how to use it?

---

## [Launch\_configuration() equivalent for AMDGPU.jl](https://discourse.julialang.org/t/launch-configuration-equivalent-for-amdgpu-jl/85464)

<div class="topic-metadata">

**Author:** [@torrance](https://discourse.julialang.org/u/torrance)\
**Replies:** 4\
**Last updated:** [November 10, 2022, 8:32pm UTC](https://discourse.julialang.org/t/launch-configuration-equivalent-for-amdgpu-jl/85464 "2022-11-10T20:32:18Z")

</div>

CUDA has a great feature for sizing threads and blocks, namely launch\_configuration(). I rarely manually size my kernel, instead something like: kernel = @cuda launch=false myfunc(args...) config = launch\_configuration(…

---

## [KernelAbstractions is slower than CUDA](https://discourse.julialang.org/t/kernelabstractions-is-slower-than-cuda/76473)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 8\
**Last updated:** [November 10, 2022, 8:01pm UTC](https://discourse.julialang.org/t/kernelabstractions-is-slower-than-cuda/76473 "2022-11-10T20:01:42Z")

</div>

Hello, For a simple multiplication as in the example below I see that the kernel written with KernelAbstractions is almost twice slower than the one written with pure CUDA. Am I doing something wrong, or KA indeed intro…

---

## [\[Turing.jl\] Warning: The current proposal will be rejected due to numerical error(s)](https://discourse.julialang.org/t/turing-jl-warning-the-current-proposal-will-be-rejected-due-to-numerical-error-s/72396)

<div class="topic-metadata">

**Author:** [@weiqi](https://discourse.julialang.org/u/weiqi)\
**Replies:** 2\
**Last updated:** [November 10, 2022, 4:43pm UTC](https://discourse.julialang.org/t/turing-jl-warning-the-current-proposal-will-be-rejected-due-to-numerical-error-s/72396 "2022-11-10T16:43:26Z")

</div>

I am running MCMC with Turing.jl for an ODE model. The model contains about 111 parameters. I have noticed that the sampler constantly gives the following warning due to the truncated distribution for prior. Wondering i…

---

## [Makie - Observables and removing widgets](https://discourse.julialang.org/t/makie-observables-and-removing-widgets/88485)

<div class="topic-metadata">

**Author:** [@lmshk](https://discourse.julialang.org/u/lmshk)\
**Replies:** 2\
**Last updated:** [November 10, 2022, 4:14pm UTC](https://discourse.julialang.org/t/makie-observables-and-removing-widgets/88485 "2022-11-10T16:14:47Z")

</div>

I am trying to build an interactive figure (GLMakie v0.6.13, Makie v0.17.13) where the specific layout, including the existence of various subplots, depends on the data. I would like to use Makie’s predefined widgets to …

---

## [How to specify vector MTK states or parameters to ODESystem call? (ODESystem(eq,t,var,par))](https://discourse.julialang.org/t/how-to-specify-vector-mtk-states-or-parameters-to-odesystem-call-odesystem-eq-t-var-par/89844)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 2\
**Last updated:** [November 10, 2022, 4:13pm UTC](https://discourse.julialang.org/t/how-to-specify-vector-mtk-states-or-parameters-to-odesystem-call-odesystem-eq-t-var-par/89844 "2022-11-10T16:13:48Z")

</div>

Hey folks, I’m working to implement a simple vectorized step function using callbacks as a learning exercise. I was able to create a simple scalar step function: function step(time;name) x = @variables u(t)=0 \[…

---

## [Shapes from geojson on geo map with Plotly](https://discourse.julialang.org/t/shapes-from-geojson-on-geo-map-with-plotly/89777)

<div class="topic-metadata">

**Author:** [@lgo](https://discourse.julialang.org/u/lgo)\
**Replies:** 5\
**Last updated:** [November 10, 2022, 12:10pm UTC](https://discourse.julialang.org/t/shapes-from-geojson-on-geo-map-with-plotly/89777 "2022-11-10T12:10:55Z")

</div>

I want to plot a geojson with multiple geojsons as a geo map with Plotly. I tried to convert an existing Python example to Julia but without success. The code below is just one example and I’ve also tested the same struc…

---

## [Solve Raytrace ODE with events](https://discourse.julialang.org/t/solve-raytrace-ode-with-events/90022)

<div class="topic-metadata">

**Author:** [@jddorellanao](https://discourse.julialang.org/u/jddorellanao)\
**Replies:** 1\
**Last updated:** [November 10, 2022, 3:08am UTC](https://discourse.julialang.org/t/solve-raytrace-ode-with-events/90022 "2022-11-10T03:08:04Z")

</div>

Hi community: Forgive my boldness. I am new to Julia, and the reason I am using it is because how fast it is. I come from Python, and I have a function for raytracing (below). I need to migrate it to Julia, but I’m not …

---

## [Ignore part of the gradient calculation inside differential equation model](https://discourse.julialang.org/t/ignore-part-of-the-gradient-calculation-inside-differential-equation-model/90011)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 0\
**Last updated:** [November 9, 2022, 11:22pm UTC](https://discourse.julialang.org/t/ignore-part-of-the-gradient-calculation-inside-differential-equation-model/90011 "2022-11-09T23:22:13Z")

</div>

I am trying to differentiate the solution of a differential equation using DifferentialEquation with respect to some parameters but ignoring parts of the calculation of the gradient for being redundant or computationally…

---

## [Error escaping a variable in a module using JuMP](https://discourse.julialang.org/t/error-escaping-a-variable-in-a-module-using-jump/89998)

<div class="topic-metadata">

**Author:** [@Mitch\_Phillipson](https://discourse.julialang.org/u/Mitch_Phillipson)\
**Replies:** 4\
**Last updated:** [November 9, 2022, 9:34pm UTC](https://discourse.julialang.org/t/error-escaping-a-variable-in-a-module-using-jump/89998 "2022-11-09T21:34:47Z")

</div>

I’m working to update a module compatible with JuMP v1.1.1 to the newest version of JuMP. Within the module is code similar to: module HoldBug using JuMP export @mytest macro mytest(m,F) m = esc(m) x = esc(F…

---

## [Flux.jl: Save model and optimizer from gpu](https://discourse.julialang.org/t/flux-jl-save-model-and-optimizer-from-gpu/89982)

<div class="topic-metadata">

**Author:** [@gdkrmr](https://discourse.julialang.org/u/gdkrmr)\
**Replies:** 1\
**Last updated:** [November 9, 2022, 9:06pm UTC](https://discourse.julialang.org/t/flux-jl-save-model-and-optimizer-from-gpu/89982 "2022-11-09T21:06:05Z")

</div>

I am trying to save my Flux.jl model and the optimizer to disk. This seems to work just fine when everything is on the CPU but I cannot get the optimizer out of the GPU. cpu(opt) doesn’t seem to do anything. Is this supp…

---

## [JuMP in julia](https://discourse.julialang.org/t/jump-in-julia/89945)

<div class="topic-metadata">

**Author:** [@thiagoselias](https://discourse.julialang.org/u/thiagoselias)\
**Replies:** 9\
**Last updated:** [November 9, 2022, 9:05pm UTC](https://discourse.julialang.org/t/jump-in-julia/89945 "2022-11-09T21:05:42Z")

</div>

Link: https://gist.githubusercontent.com/thiagoselias/65dd09e675493443493b394bcc136784/raw/c81339907844c6bfb296353ed22269706d46b497/minimizacao.jl I have this problem But specifically in the constraint @constraint(mo…

---

## [Constraints in a stochastic differential equation problem](https://discourse.julialang.org/t/constraints-in-a-stochastic-differential-equation-problem/90004)

<div class="topic-metadata">

**Author:** [@jmg367](https://discourse.julialang.org/u/jmg367)\
**Replies:** 1\
**Last updated:** [November 9, 2022, 8:39pm UTC](https://discourse.julialang.org/t/constraints-in-a-stochastic-differential-equation-problem/90004 "2022-11-09T20:39:54Z")

</div>

I am trying to implement constraints into a spatial chemical langevin equation. I have an array where every two indices corresponds to a spatial location. Every odd/even index corresponds to the number of agents of type …

---

## [Posing constraints on component array optimizations](https://discourse.julialang.org/t/posing-constraints-on-component-array-optimizations/90007)

<div class="topic-metadata">

**Author:** [@RuoyuWang72](https://discourse.julialang.org/u/RuoyuWang72)\
**Replies:** 0\
**Last updated:** [November 9, 2022, 8:33pm UTC](https://discourse.julialang.org/t/posing-constraints-on-component-array-optimizations/90007 "2022-11-09T20:33:06Z")

</div>

I have a component array p I want to optimize, p.ps\_τ and p.ps\_J are parameters of neural nets, and p.ps\_F1 and p.ps\_F2 are two floats (I followed this example: Simultaneous Fitting of Multiple Neural Networks ) The con…

---

## [Conditional constraint if else in JuMP](https://discourse.julialang.org/t/conditional-constraint-if-else-in-jump/6795)

<div class="topic-metadata">

**Author:** [@UserMorocco](https://discourse.julialang.org/u/UserMorocco)\
**Replies:** 14\
**Last updated:** [November 9, 2022, 6:43pm UTC](https://discourse.julialang.org/t/conditional-constraint-if-else-in-jump/6795 "2022-11-09T18:43:33Z")

</div>

Hello, How I can model the conditional constraint if else with JuMP in Julia ? Thank you

---

## [Performing mul!() with Sparse Matrices inside DiffEq.jl model](https://discourse.julialang.org/t/performing-mul-with-sparse-matrices-inside-diffeq-jl-model/89963)

<div class="topic-metadata">

**Author:** [@jarias9](https://discourse.julialang.org/u/jarias9)\
**Replies:** 2\
**Last updated:** [November 9, 2022, 4:04pm UTC](https://discourse.julialang.org/t/performing-mul-with-sparse-matrices-inside-diffeq-jl-model/89963 "2022-11-09T16:04:50Z")

</div>

Hello all, I was trying to improve the runtime of a model I am running in DiffEq.jl I have been going through the optimization steps for an eqnsystem!(du, u, p, t) however I am a bit stuck with regards to how to optimi…

---

## [No console window with Gtk](https://discourse.julialang.org/t/no-console-window-with-gtk/89979)

<div class="topic-metadata">

**Author:** [@tresgrospipo](https://discourse.julialang.org/u/tresgrospipo)\
**Replies:** 0\
**Last updated:** [November 9, 2022, 12:15pm UTC](https://discourse.julialang.org/t/no-console-window-with-gtk/89979 "2022-11-09T12:15:17Z")

</div>

Hi everyone, new in Julia, I need to have a GUI on Julia in WIN11 (can’t choose OS), I choose Gtk.jl and test a simple script using Gtk win = GtkWindow(“My First Gtk.jl Program”, 400, 200) b = GtkButton(“Click Me”) p…

---

## [Print optimization problem using Ipopt](https://discourse.julialang.org/t/print-optimization-problem-using-ipopt/89786)

<div class="topic-metadata">

**Author:** [@Katti](https://discourse.julialang.org/u/Katti)\
**Replies:** 6\
**Last updated:** [November 9, 2022, 1:18pm UTC](https://discourse.julialang.org/t/print-optimization-problem-using-ipopt/89786 "2022-11-09T13:18:57Z")

</div>

Hello all, I am building a pretty complex optimization problem with the Ipopt solver (NLP). Since the results are not as I expected, I guess that I made a mistake in the model definition. Therefore, I would like to prin…

---

## [Mesh Parametric Surface](https://discourse.julialang.org/t/mesh-parametric-surface/84579)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 4\
**Last updated:** [November 9, 2022, 12:04pm UTC](https://discourse.julialang.org/t/mesh-parametric-surface/84579 "2022-11-09T12:04:46Z")

</div>

I have a surface that can be described by f(u,v), and I would like to generate a mesh of this object (so that I can later put it in Blender/Paraview). Any guidelines on how to do it in Julia?

---

## [Help solving coupled differential equations involving complex numbers](https://discourse.julialang.org/t/help-solving-coupled-differential-equations-involving-complex-numbers/89893)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 6\
**Last updated:** [November 9, 2022, 11:13am UTC](https://discourse.julialang.org/t/help-solving-coupled-differential-equations-involving-complex-numbers/89893 "2022-11-09T11:13:36Z")

</div>

Original title: “Some help solving set of differential equations” Hi. I am stuck in doing some homework, and I was hoping I could get some help. The task is to analytically or numerically solve some differential equati…

---

## [Speeding up plotting inside of a loop?](https://discourse.julialang.org/t/speeding-up-plotting-inside-of-a-loop/89942)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 3\
**Last updated:** [November 9, 2022, 10:15am UTC](https://discourse.julialang.org/t/speeding-up-plotting-inside-of-a-loop/89942 "2022-11-09T10:15:52Z")

</div>

I am creating a custom surface plot piece-by-piece inside of a for loop. Here’s a very simplified example: mutable struct MyPlotType{T} x::T end @recipe function f(::Type{MyPlotType{T}}, my\_plot\_type::MyPlotType{T}…

---

## [AD in DiffEqFlux using DiscreteCallback](https://discourse.julialang.org/t/ad-in-diffeqflux-using-discretecallback/89748)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 1\
**Last updated:** [November 9, 2022, 12:07am UTC](https://discourse.julialang.org/t/ad-in-diffeqflux-using-discretecallback/89748 "2022-11-09T00:07:10Z")

</div>

I am trying to implement a callback term in my ODE solver and using Zygote to differentiate with respect to the model parameters. The action that callback uses is very simple and not very different to the one used in Eve…

---

## [JuMP kmeans with constraints](https://discourse.julialang.org/t/jump-kmeans-with-constraints/89906)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 4\
**Last updated:** [November 8, 2022, 8:03pm UTC](https://discourse.julialang.org/t/jump-kmeans-with-constraints/89906 "2022-11-08T20:03:47Z")

</div>

I am solving k-means using JuMP. X = \[ 2.0 2.0; 2.5 2.1; 7.0 7.0; 2.2 2.3; 6.8 7.0; 7.2 7.5;\] k=2 m, n = size(X) W = exp.(-Distances.pairwise(Distances.Euclidean(), X')) I = Matrix(1.0 \* LinearAlgebra.I, m, m) mo…

---

## [Parameter estimation ODEs](https://discourse.julialang.org/t/parameter-estimation-odes/64053)

<div class="topic-metadata">

**Author:** [@NickJ](https://discourse.julialang.org/u/NickJ)\
**Replies:** 6\
**Last updated:** [November 8, 2022, 7:10pm UTC](https://discourse.julialang.org/t/parameter-estimation-odes/64053 "2022-11-08T19:10:43Z")

</div>

Hi all, I am a beginner in both Julia and Bayesian inference, and I am interested in Turing.jl to learn about both. I am a mechanical engineer who typically works with deterministic ODEs, i.e. given some parameters as i…

---

## [Selecting arbitrary columns from DataFrameRow](https://discourse.julialang.org/t/selecting-arbitrary-columns-from-dataframerow/89950)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 2\
**Last updated:** [November 8, 2022, 7:02pm UTC](https://discourse.julialang.org/t/selecting-arbitrary-columns-from-dataframerow/89950 "2022-11-08T19:02:51Z")

</div>

EDIT: Disregard this, I don’t know why I wasn’t getting the results I expected before… I want to replicate finding duplicate composite primary keys in an sql database to some arbitrary dataframe. Let’s set up some dumm…

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

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