# Specific Domains

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

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

**Page:** 59

---

## [Correct utilisation of CUDA kernel for simulations](https://discourse.julialang.org/t/correct-utilisation-of-cuda-kernel-for-simulations/109882)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 16\
**Last updated:** [February 13, 2025, 9:53am UTC](https://discourse.julialang.org/t/correct-utilisation-of-cuda-kernel-for-simulations/109882 "2025-02-13T09:53:24Z")

</div>

Hello, I am new to julia and GPU computing, before today I didn’t care about optimisation (it was fast enough for me). I use this kind of CUDA kernel (example for 2D diffusion using finite difference with euler forward…

---

## [Tensor in QuantumOptics](https://discourse.julialang.org/t/tensor-in-quantumoptics/125618)

<div class="topic-metadata">

**Author:** [@gustave\_Robichon](https://discourse.julialang.org/u/gustave_Robichon)\
**Replies:** 2\
**Last updated:** [February 12, 2025, 4:21pm UTC](https://discourse.julialang.org/t/tensor-in-quantumoptics/125618 "2025-02-12T16:21:06Z")

</div>

Hello :slight\_smile: I have a program using QuantumOptics. It uses several bosonic modes. While writing the Hamiltonian, I wonder if I should explictly use the tensor product : I\[1\] tensor I\[2\] tensor a\[3\] for exemple, …

---

## [Four-parameter beta distribution](https://discourse.julialang.org/t/four-parameter-beta-distribution/90280)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 6\
**Last updated:** [February 12, 2025, 11:21am UTC](https://discourse.julialang.org/t/four-parameter-beta-distribution/90280 "2025-02-12T11:21:57Z")

</div>

Hi all, The standard Beta distribution has as support the \[0, 1\] interval. However, there is also a four-parameter version, which allows one to specify an arbitrary minimum and maximum. R has the function Beta\_ab for th…

---

## [How to toggle a button with Makie.jl?](https://discourse.julialang.org/t/how-to-toggle-a-button-with-makie-jl/60381)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [February 12, 2025, 7:26am UTC](https://discourse.julialang.org/t/how-to-toggle-a-button-with-makie-jl/60381 "2025-02-12T07:26:03Z")

</div>

I have a 3D viewer written in MakieGL. I have a button “PLAY”, and I want it to change to a “PAUSE” button when clicked and back to a “PLAY” button when clicked again. How can I achieve that?

---

## [RAGTools (from PromptingTools.jl) – Seeking Your Feedback on Next Steps](https://discourse.julialang.org/t/ragtools-from-promptingtools-jl-seeking-your-feedback-on-next-steps/125005)

<div class="topic-metadata">

**Author:** [@svilupp](https://discourse.julialang.org/u/svilupp)\
**Replies:** 8\
**Last updated:** [February 9, 2025, 11:26am UTC](https://discourse.julialang.org/t/ragtools-from-promptingtools-jl-seeking-your-feedback-on-next-steps/125005 "2025-02-09T11:26:49Z")

</div>

Introduction & Audience Hello everyone! I’d like to open this thread to gather real-world feedback on the RAGTools experimental submodule currently included in PromptingTools.jl. Specifically, this is for people who have…

---

## [Time dependent inputs to reaction network in Catalyst](https://discourse.julialang.org/t/time-dependent-inputs-to-reaction-network-in-catalyst/121078)

<div class="topic-metadata">

**Author:** [@contejuz](https://discourse.julialang.org/u/contejuz)\
**Replies:** 5\
**Last updated:** [February 11, 2025, 3:20pm UTC](https://discourse.julialang.org/t/time-dependent-inputs-to-reaction-network-in-catalyst/121078 "2025-02-11T15:20:25Z")

</div>

I’m trying to create a simple reaction network that takes external input. Here is one example (adapted from the docs): # Create model. model = @reaction\_network begin kB\*I(t), S + E --\> SE kD, SE --\> S + E k…

---

## [Minimum Working Example (MWE) showing error in Universal Differential Equation (UDE) implementation](https://discourse.julialang.org/t/minimum-working-example-mwe-showing-error-in-universal-differential-equation-ude-implementation/125366)

<div class="topic-metadata">

**Author:** [@Ashima\_Kalathingal](https://discourse.julialang.org/u/Ashima_Kalathingal)\
**Replies:** 10\
**Last updated:** [February 11, 2025, 3:04pm UTC](https://discourse.julialang.org/t/minimum-working-example-mwe-showing-error-in-universal-differential-equation-ude-implementation/125366 "2025-02-11T15:04:56Z")

</div>

The following code gives a Minimum Working Example for UDE which I wrote. But unfortunately it is showing error. When I run the code in VS Code the terminal crashes. using OrdinaryDiffEq , SciMLSensitivity ,Optimization…

---

## [Arrow's DictEncode to CategoricalArray?](https://discourse.julialang.org/t/arrows-dictencode-to-categoricalarray/112451)

<div class="topic-metadata">

**Author:** [@elenev](https://discourse.julialang.org/u/elenev)\
**Replies:** 18\
**Last updated:** [February 11, 2025, 2:30pm UTC](https://discourse.julialang.org/t/arrows-dictencode-to-categoricalarray/112451 "2025-02-11T14:30:28Z")

</div>

I am using Arrow.jl to store a dataframe to disk. The dataframe has some columns of CategoricalArray{T} type, where T is either String or Int64. When I read the dataframe back in, the categorical-ness of these columns i…

---

## [Save model when training with Distributed Data Parallel](https://discourse.julialang.org/t/save-model-when-training-with-distributed-data-parallel/125790)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 0\
**Last updated:** [February 11, 2025, 1:24pm UTC](https://discourse.julialang.org/t/save-model-when-training-with-distributed-data-parallel/125790 "2025-02-11T13:24:45Z")

</div>

Hey all, I want to parallelize my machine learning model on GPUs using DDP from Flux. I get the code to run with adapting what is written on the Flux GPU Support page, but when I try to save the model I get the error u…

---

## [Is it possible to use CuStaticSharedArray(T, n) with n const?](https://discourse.julialang.org/t/is-it-possible-to-use-custaticsharedarray-t-n-with-n-const/125756)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 2\
**Last updated:** [February 11, 2025, 8:59am UTC](https://discourse.julialang.org/t/is-it-possible-to-use-custaticsharedarray-t-n-with-n-const/125756 "2025-02-11T08:59:19Z")

</div>

Hello, I would like to compare the size of different block to see how the calculation speed-up or not. I use SharedArray of size CuStaticSharedArray(Float64, (B+2,B+2)) with B from 16 to 32, and now I am changing B by …

---

## [Plot Taylor diagrams](https://discourse.julialang.org/t/plot-taylor-diagrams/56406)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 3\
**Last updated:** [February 11, 2025, 7:34am UTC](https://discourse.julialang.org/t/plot-taylor-diagrams/56406 "2025-02-11T07:34:16Z")

</div>

I am looking for a Julia function to create a Taylor diagram (a diagram that compares measured against estimated values for a certain variable), like in: Please, do you have any suggestions? Thanks in advance.

---

## [How to solve an advection-reaction system](https://discourse.julialang.org/t/how-to-solve-an-advection-reaction-system/125719)

<div class="topic-metadata">

**Author:** [@ctessum](https://discourse.julialang.org/u/ctessum)\
**Replies:** 6\
**Last updated:** [February 11, 2025, 2:02am UTC](https://discourse.julialang.org/t/how-to-solve-an-advection-reaction-system/125719 "2025-02-11T02:02:09Z")

</div>

I have a system that I would like to solve which is basically a reaction advection system. The full-size version is here, but the sake of this issue, let’s just say that we have a system state that consists of a number …

---

## [How to use CLArray with OpenCL 0.10](https://discourse.julialang.org/t/how-to-use-clarray-with-opencl-0-10/125757)

<div class="topic-metadata">

**Author:** [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Replies:** 1\
**Last updated:** [February 10, 2025, 7:47pm UTC](https://discourse.julialang.org/t/how-to-use-clarray-with-opencl-0-10/125757 "2025-02-10T19:47:44Z")

</div>

I migrated the GR Mandelbrot example to OpenCL 0.10 (based on this notebook). Unfortunately I could not use the access parameter in CLArray(). Does this feature require special package versions?

---

## [Zygote and ODESolution Manipulation/Indexing Compatibility](https://discourse.julialang.org/t/zygote-and-odesolution-manipulation-indexing-compatibility/125668)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 3\
**Last updated:** [February 10, 2025, 5:07pm UTC](https://discourse.julialang.org/t/zygote-and-odesolution-manipulation-indexing-compatibility/125668 "2025-02-10T17:07:45Z")

</div>

I’m trying to write fairly complicated loss functions which tend to require manipulation of the ODESolution object. I would like to perform reverse mode differentiation using Zygote.jl over my loss function so I can obt…

---

## [Custom loss functions in \`Lux.jl\`](https://discourse.julialang.org/t/custom-loss-functions-in-lux-jl/125661)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 5\
**Last updated:** [February 10, 2025, 4:28pm UTC](https://discourse.julialang.org/t/custom-loss-functions-in-lux-jl/125661 "2025-02-10T16:28:29Z")

</div>

I am currently getting accustomed to the Lux.jl package. I want to use a custom loss function which includes a l\_2-regression term consisting of the model weights. I defined my custom loss function as function loss\_func…

---

## [In search of categorical color scheme families: dark, same perceptual brightness](https://discourse.julialang.org/t/in-search-of-categorical-color-scheme-families-dark-same-perceptual-brightness/109560)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 24\
**Last updated:** [February 10, 2025, 1:58pm UTC](https://discourse.julialang.org/t/in-search-of-categorical-color-scheme-families-dark-same-perceptual-brightness/109560 "2025-02-10T13:58:53Z")

</div>

I frequently want to plot categorical data on a white background (eg a scatterplot, with various colors for each kind). My ideal color scheme would be reasonably dark, as I am plotting on a white background, have more …

---

## [Can't I update velocity AND position of a continuous agent using a custom move\_agent! that is not based on forward euler?](https://discourse.julialang.org/t/cant-i-update-velocity-and-position-of-a-continuous-agent-using-a-custom-move-agent-that-is-not-based-on-forward-euler/125697)

<div class="topic-metadata">

**Author:** [@raylv17](https://discourse.julialang.org/u/raylv17)\
**Replies:** 1\
**Last updated:** [February 10, 2025, 11:32am UTC](https://discourse.julialang.org/t/cant-i-update-velocity-and-position-of-a-continuous-agent-using-a-custom-move-agent-that-is-not-based-on-forward-euler/125697 "2025-02-10T11:32:45Z")

</div>

I am using the latest Agents.jl (v.6.2.4) package and learning it as well. I want to implement a simple movement of different agents by trying out various differential equation solvers (besides the default forward euler …

---

## [Another freezing test CUDA](https://discourse.julialang.org/t/another-freezing-test-cuda/125667)

<div class="topic-metadata">

**Author:** [@togo59](https://discourse.julialang.org/u/togo59)\
**Replies:** 4\
**Last updated:** [February 10, 2025, 11:19am UTC](https://discourse.julialang.org/t/another-freezing-test-cuda/125667 "2025-02-10T11:19:04Z")

</div>

I get no errors at all that I can find. But when I run Pkg.test("CUDA"; test\_args=–verbose --jobs=1) after a while my computer freezes up. I have 6-core Intel CPU with 12GB and I have just installed an Intel A2000, which…

---

## [Reprojecting maps](https://discourse.julialang.org/t/reprojecting-maps/97101)

<div class="topic-metadata">

**Author:** [@mreichMPI-BGC](https://discourse.julialang.org/u/mreichMPI-BGC)\
**Replies:** 14\
**Last updated:** [February 10, 2025, 8:47am UTC](https://discourse.julialang.org/t/reprojecting-maps/97101 "2025-02-10T08:47:57Z")

</div>

Dear community, does anyone have a recipe/example of how to reproject a map, e.g. from lat/lon to Robinson (for my use case just global is enough)? Please note I do not just want to plot (cf. GeoMakie), but get a Raster…

---

## [Choosing between Symmetric and Hermitian programmatically in JuMP](https://discourse.julialang.org/t/choosing-between-symmetric-and-hermitian-programmatically-in-jump/125701)

<div class="topic-metadata">

**Author:** [@araujoms](https://discourse.julialang.org/u/araujoms)\
**Replies:** 9\
**Last updated:** [February 9, 2025, 8:55pm UTC](https://discourse.julialang.org/t/choosing-between-symmetric-and-hermitian-programmatically-in-jump/125701 "2025-02-09T20:55:17Z")

</div>

I want to switch between Symmetric and Hermitian variables depending on the input data. For data I’d like to define a variable a, that can be either and then create the variable, e.g. a = Symmetric model = Model() @vari…

---

## [Using cuBLASDx in Julia](https://discourse.julialang.org/t/using-cublasdx-in-julia/125527)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 6\
**Last updated:** [February 9, 2025, 2:54pm UTC](https://discourse.julialang.org/t/using-cublasdx-in-julia/125527 "2025-02-09T14:54:39Z")

</div>

I am really interested in using cuBLASDx, that is the CUDA API set to perform BLAS calculations inside CUDA kernels. However, since it is not provided in the CUDA Toolkit, but it should be downloaded separately, it seems…

---

## [Nonlinear System of Equations with Bounds/Constraints on Unknowns](https://discourse.julialang.org/t/nonlinear-system-of-equations-with-bounds-constraints-on-unknowns/37257)

<div class="topic-metadata">

**Author:** [@bielim](https://discourse.julialang.org/u/bielim)\
**Replies:** 30\
**Last updated:** [February 8, 2025, 6:12am UTC](https://discourse.julialang.org/t/nonlinear-system-of-equations-with-bounds-constraints-on-unknowns/37257 "2025-02-08T06:12:25Z")

</div>

I am trying to find a numerical solution to the following nonlinear system of equations: M\_1 - w\_1 θ\_1 α\_1 - w\_2 θ\_2 α\_2 = 0 M\_2 - w\_1 θ\_1^2 (α\_1+1) α\_1 - w\_2 θ\_2^2 (α\_2+1) α\_2 = 0 M\_3 - w\_1 θ\_1^3 (α\_1+2) (α\_1+1) α\_1 …

---

## [Selection of Mosek Optimizer in JuMP not respected](https://discourse.julialang.org/t/selection-of-mosek-optimizer-in-jump-not-respected/125623)

<div class="topic-metadata">

**Author:** [@saikrishna-nadella](https://discourse.julialang.org/u/saikrishna-nadella)\
**Replies:** 6\
**Last updated:** [February 7, 2025, 8:35pm UTC](https://discourse.julialang.org/t/selection-of-mosek-optimizer-in-jump-not-respected/125623 "2025-02-07T20:35:38Z")

</div>

Hi, I am using MosekTools with JuMP. I have been facing problem in forcing solver attributes to Mosek. for example, following seems to work set\_attribute(myModel, “MSK\_IPAR\_PRESOLVE\_USE”, 0) but, following does not w…

---

## [What is the recommended way to use Mooncake.jl?](https://discourse.julialang.org/t/what-is-the-recommended-way-to-use-mooncake-jl/125663)

<div class="topic-metadata">

**Author:** [@afleming](https://discourse.julialang.org/u/afleming)\
**Replies:** 1\
**Last updated:** [February 7, 2025, 5:18pm UTC](https://discourse.julialang.org/t/what-is-the-recommended-way-to-use-mooncake-jl/125663 "2025-02-07T17:18:54Z")

</div>

See title. Should I use DifferentiationInterface? The existing (very excellent) documentation for Mooncake doesn’t offer much in the way of usage examples…

---

## [Default linecolor name in Plots.jl?](https://discourse.julialang.org/t/default-linecolor-name-in-plots-jl/125634)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 8\
**Last updated:** [February 7, 2025, 5:10pm UTC](https://discourse.julialang.org/t/default-linecolor-name-in-plots-jl/125634 "2025-02-07T17:10:39Z")

</div>

Hello. I thought that the default linecolor for plotting lines in Plots.jl was :steelblue. But upon close examination, it seems to be different. It’s actually closer to :dodgerblue. Is there any julia function that retur…

---

## [Add point coordinates to a GeoTable](https://discourse.julialang.org/t/add-point-coordinates-to-a-geotable/125126)

<div class="topic-metadata">

**Author:** [@phchavesmaia](https://discourse.julialang.org/u/phchavesmaia)\
**Replies:** 12\
**Last updated:** [February 7, 2025, 3:05pm UTC](https://discourse.julialang.org/t/add-point-coordinates-to-a-geotable/125126 "2025-02-07T15:05:51Z")

</div>

Hello everyone, I am trying to learn Julia and move some of my geostats projects to this language. I found that the GeoStats package is well regarded, hence I am using it. I have a grid and I want to separate the east f…

---

## [Stuck differentiating through multidimensional, potentially large and stiff ODE solution](https://discourse.julialang.org/t/stuck-differentiating-through-multidimensional-potentially-large-and-stiff-ode-solution/125651)

<div class="topic-metadata">

**Author:** [@Vitor\_Patricio\_Canta](https://discourse.julialang.org/u/Vitor_Patricio_Canta)\
**Replies:** 0\
**Last updated:** [February 7, 2025, 11:52am UTC](https://discourse.julialang.org/t/stuck-differentiating-through-multidimensional-potentially-large-and-stiff-ode-solution/125651 "2025-02-07T11:52:36Z")

</div>

Hi, I am solving 1D advective dispersive and reactive transport models as Ordinary Differential Equations. To speed things up, I am using Symbolics to detect the sparsity pattern or modelingtoolkitize to reduce allocati…

---

## [JuMP & Ipopt: failed to converge solution for standard Rosenbrock](https://discourse.julialang.org/t/jump-ipopt-failed-to-converge-solution-for-standard-rosenbrock/125533)

<div class="topic-metadata">

**Author:** [@GY3090](https://discourse.julialang.org/u/GY3090)\
**Replies:** 3\
**Last updated:** [February 7, 2025, 7:58am UTC](https://discourse.julialang.org/t/jump-ipopt-failed-to-converge-solution-for-standard-rosenbrock/125533 "2025-02-07T07:58:54Z")

</div>

Hi everyone, I am new to Julia (and programming in general). I encountered an error while using JuMP and Ipopt to solve unconstrained maximization for a standard Rosenbrock function. It reports that “EXIT: Optimal Soluti…

---

## [Initialization of DAE system after PDE discretization](https://discourse.julialang.org/t/initialization-of-dae-system-after-pde-discretization/125633)

<div class="topic-metadata">

**Author:** [@oswaldo](https://discourse.julialang.org/u/oswaldo)\
**Replies:** 1\
**Last updated:** [February 6, 2025, 9:29pm UTC](https://discourse.julialang.org/t/initialization-of-dae-system-after-pde-discretization/125633 "2025-02-06T21:29:27Z")

</div>

Hi, I’m solving a PDE system using ModelingToolkit.jl, after defining variables, parameters and equations I do @named adsmodel = PDESystem(eq,bcs,domains,\[z,t\],\[cN₂(z,t),cH₂(z,t),cNH₃(z,t),qNH₃(z,t),Tg(z,t),Tw(z,t),P(t)…

---

## [Is it possible to simulate SDDE with modeling toolkit?](https://discourse.julialang.org/t/is-it-possible-to-simulate-sdde-with-modeling-toolkit/125420)

<div class="topic-metadata">

**Author:** [@NinaOmejc](https://discourse.julialang.org/u/NinaOmejc)\
**Replies:** 3\
**Last updated:** [February 6, 2025, 1:31pm UTC](https://discourse.julialang.org/t/is-it-possible-to-simulate-sdde-with-modeling-toolkit/125420 "2025-02-06T13:31:24Z")

</div>

Hi, I’ve come across Chris Rackauckas post that it is possible to simulate DDEs using Modeling Toolkit (ModelingToolkit: (Transport) delay? Example: Inflow to one water reservoir is a delayed outflow from another - #7 b…

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

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