# Specific Domains

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

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

**Page:** 68

---

## [arXiv: "The State of Julia for Scientific Machine Learning" by Berman & Ginesin](https://discourse.julialang.org/t/arxiv-the-state-of-julia-for-scientific-machine-learning-by-berman-ginesin/121413)

<div class="topic-metadata">

**Author:** [@jonasaugust](https://discourse.julialang.org/u/jonasaugust)\
**Replies:** 29\
**Last updated:** [December 15, 2024, 7:01pm UTC](https://discourse.julialang.org/t/arxiv-the-state-of-julia-for-scientific-machine-learning-by-berman-ginesin/121413 "2024-12-15T19:01:57Z")

</div>

The State of Julia for Scientific Machine Learning A brief survey. Considers why Julia isn’t more popular vs. Python & Jax. Finds calling Julia from other languages difficult.

---

## ["gpu\_device" not defined in DDP with Flux](https://discourse.julialang.org/t/gpu-device-not-defined-in-ddp-with-flux/123857)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 2\
**Last updated:** [December 15, 2024, 5:54pm UTC](https://discourse.julialang.org/t/gpu-device-not-defined-in-ddp-with-flux/123857 "2024-12-15T17:54:37Z")

</div>

Hey everybody, when I try to run the example from the Flux website for data distributed parallel training, I get the error that the gpu\_device is not defined, looking suspiciously familiar to a Lux name. Any suggestions …

---

## [Implement feature common to all \`AbstractGPUArrays\` through KernelAbstractions.jl](https://discourse.julialang.org/t/implement-feature-common-to-all-abstractgpuarrays-through-kernelabstractions-jl/123855)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 2\
**Last updated:** [December 15, 2024, 2:20pm UTC](https://discourse.julialang.org/t/implement-feature-common-to-all-abstractgpuarrays-through-kernelabstractions-jl/123855 "2024-12-15T14:20:39Z")

</div>

Hello, Let’s imagine I have a very common function LinearAlgebra.kron(a::VT, b::VT) where VT\<:AbstractGPUArray which can support any AbstractGPUArray since I’m using KernelAbstractions.jl. Where should I implement suc…

---

## [Makie: Linked camera of 3d plots go out of sync on slider change](https://discourse.julialang.org/t/makie-linked-camera-of-3d-plots-go-out-of-sync-on-slider-change/123837)

<div class="topic-metadata">

**Author:** [@sanjeev](https://discourse.julialang.org/u/sanjeev)\
**Replies:** 1\
**Last updated:** [December 15, 2024, 4:26am UTC](https://discourse.julialang.org/t/makie-linked-camera-of-3d-plots-go-out-of-sync-on-slider-change/123837 "2024-12-15T04:26:43Z")

</div>

I have a figure with two LScenes and a slider which is used to change data in the scenes. I have linked the cameras in the two LScenes, using the method shown in this post. The problem is that when I change the slider on…

---

## [Feedback concerning some preliminary design ideas of a cashflow package](https://discourse.julialang.org/t/feedback-concerning-some-preliminary-design-ideas-of-a-cashflow-package/123700)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [December 14, 2024, 1:32pm UTC](https://discourse.julialang.org/t/feedback-concerning-some-preliminary-design-ideas-of-a-cashflow-package/123700 "2024-12-14T13:32:58Z")

</div>

I need to develop a stochastic discounted cash flow package for a project, where the analysis should include both private cost/benefit and public good values. The specific domain is the valuation of forestry investments…

---

## [Integrate convolution symbolically to solve PDE](https://discourse.julialang.org/t/integrate-convolution-symbolically-to-solve-pde/123810)

<div class="topic-metadata">

**Author:** [@B4rtel](https://discourse.julialang.org/u/B4rtel)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 9:32pm UTC](https://discourse.julialang.org/t/integrate-convolution-symbolically-to-solve-pde/123810 "2024-12-13T21:32:41Z")

</div>

I would like to solve a PDE with MethodOfLines.jl and ModellingToolkit.jl similar to the example docs.sciml.ai/MethodOfLines/stable/tutorials/PIDE/. My modification is to change the integral term. Instead of integrating …

---

## [Move "Label" on top of the colorbar using Makie](https://discourse.julialang.org/t/move-label-on-top-of-the-colorbar-using-makie/123813)

<div class="topic-metadata">

**Author:** [@Van\_Sy\_Tnut](https://discourse.julialang.org/u/Van_Sy_Tnut)\
**Replies:** 2\
**Last updated:** [December 13, 2024, 5:39pm UTC](https://discourse.julialang.org/t/move-label-on-top-of-the-colorbar-using-makie/123813 "2024-12-13T17:39:25Z")

</div>

Hello everyone! I would like to move the label to the top of the Colorbar by using Makie. Can anyone help me how to do this ? Thank you so much using Makie using GLMakie fig = Figure() Create an axis Axis(fig\[1, 1…

---

## [DifferentialEquations.jl+MPI.jl+PencilArrays.jl: Lack of scaling observed](https://discourse.julialang.org/t/differentialequations-jl-mpi-jl-pencilarrays-jl-lack-of-scaling-observed/122998)

<div class="topic-metadata">

**Author:** [@mmesiti](https://discourse.julialang.org/u/mmesiti)\
**Replies:** 20\
**Last updated:** [December 13, 2024, 2:43pm UTC](https://discourse.julialang.org/t/differentialequations-jl-mpi-jl-pencilarrays-jl-lack-of-scaling-observed/122998 "2024-12-13T14:43:54Z")

</div>

I am working on a code that use DifferentialEquations (more precisely, just OrdinaryDiffEqLowOrderRK - thanks for splitting that) and I have done some work to parallelize the computation of the derivative on multiple nod…

---

## [Symmetric view of sparse matrix CUDA.jl](https://discourse.julialang.org/t/symmetric-view-of-sparse-matrix-cuda-jl/123811)

<div class="topic-metadata">

**Author:** [@victor\_vhrn](https://discourse.julialang.org/u/victor_vhrn)\
**Replies:** 0\
**Last updated:** [December 13, 2024, 1:32pm UTC](https://discourse.julialang.org/t/symmetric-view-of-sparse-matrix-cuda-jl/123811 "2024-12-13T13:32:46Z")

</div>

What is the best way of adapting Symmetric to the GPU? Can it be done? Should it be done? I currently have the following function Aadj which I would like to create a GPU version of: using CUDA using CUDA.CUSPARSE using…

---

## [Circle comes out oval using Makie](https://discourse.julialang.org/t/circle-comes-out-oval-using-makie/123778)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 2\
**Last updated:** [December 12, 2024, 6:46pm UTC](https://discourse.julialang.org/t/circle-comes-out-oval-using-makie/123778 "2024-12-12T18:46:34Z")

</div>

Hi, I am trying to create circles using CairoMakie. But they turn out oval. What’s up? MWE: using CairoMakie using Makie.GeometryBasics const global inch::Float64 = 96 const global cm::Float64 = inch / 2.54 const glob…

---

## [Custom stuct and Jacobian: Issue with Zygote not understanding custom struct](https://discourse.julialang.org/t/custom-stuct-and-jacobian-issue-with-zygote-not-understanding-custom-struct/123781)

<div class="topic-metadata">

**Author:** [@KapilKhanal](https://discourse.julialang.org/u/KapilKhanal)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 6:35pm UTC](https://discourse.julialang.org/t/custom-stuct-and-jacobian-issue-with-zygote-not-understanding-custom-struct/123781 "2024-12-12T18:35:38Z")

</div>

The function with ‘normals’ input is fine but when it’s inside the struct, Zygote returns (nothing) # MWE struct MeshExample normals::AbstractMatrix other::Float64 end function radiation\_using\_struct(mesh::Mesh…

---

## [Polar heatmap for angles between 0 and 90°?](https://discourse.julialang.org/t/polar-heatmap-for-angles-between-0-and-90/123743)

<div class="topic-metadata">

**Author:** [@dutille](https://discourse.julialang.org/u/dutille)\
**Replies:** 4\
**Last updated:** [December 12, 2024, 5:33pm UTC](https://discourse.julialang.org/t/polar-heatmap-for-angles-between-0-and-90/123743 "2024-12-12T17:33:32Z")

</div>

Using Julia 1.11. In a perfect world I would expect the script below to deliver a heatmap in a quarter of disk. But I get a full disk. I tried to adjust the limits. since specifying ylim will adjust the range for the rad…

---

## [ModelingToolkit, SciMLSensitivity: Computed parameter?](https://discourse.julialang.org/t/modelingtoolkit-scimlsensitivity-computed-parameter/123760)

<div class="topic-metadata">

**Author:** [@filip.cerny](https://discourse.julialang.org/u/filip.cerny)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 2:50pm UTC](https://discourse.julialang.org/t/modelingtoolkit-scimlsensitivity-computed-parameter/123760 "2024-12-12T14:50:00Z")

</div>

I am working on a model of a leaky bucket using ModelingToolkit.jl. I was experimenting with fitting parameters of the model based on randomized data using SciMLSensitivity.jl. In the attached example, I define my consta…

---

## [Slow search fixed points dynamicalsystems.jl](https://discourse.julialang.org/t/slow-search-fixed-points-dynamicalsystems-jl/123757)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 0\
**Last updated:** [December 12, 2024, 1:03pm UTC](https://discourse.julialang.org/t/slow-search-fixed-points-dynamicalsystems-jl/123757 "2024-12-12T13:03:04Z")

</div>

Hello, I am search for fixed points for my discrete system and the search is too long. I have already tried to increase the tol parameter and it does not have any result. I don’t understand what the problem is. More pre…

---

## [Transfer Learning in Lux?](https://discourse.julialang.org/t/transfer-learning-in-lux/123731)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 2:44am UTC](https://discourse.julialang.org/t/transfer-learning-in-lux/123731 "2024-12-12T02:44:56Z")

</div>

Hi, I would like to transfer learn a regression model onto a classification task. This is my regression model: model = Chain( Conv((32, 16), 1 =\> 8), LayerNorm((129, 77, 8), relu, dims=(1, 2, 3)), Conv((32…

---

## [Handling nonlinear objective involving the inverse of a matrix](https://discourse.julialang.org/t/handling-nonlinear-objective-involving-the-inverse-of-a-matrix/123726)

<div class="topic-metadata">

**Author:** [@Cory\_Simon](https://discourse.julialang.org/u/Cory_Simon)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 8:55pm UTC](https://discourse.julialang.org/t/handling-nonlinear-objective-involving-the-inverse-of-a-matrix/123726 "2024-12-11T20:55:40Z")

</div>

so the output of: MOI.get(Ipopt.Optimizer(), MOI.ListOfSupportedNonlinearOperators()) includes inv, so I thought it should handle the inverse of a matrix. however, in my minimal example, it does not: n = 5 model =…

---

## [Write expressions in JuMP model based on condition](https://discourse.julialang.org/t/write-expressions-in-jump-model-based-on-condition/123696)

<div class="topic-metadata">

**Author:** [@mast-lfl](https://discourse.julialang.org/u/mast-lfl)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 8:37pm UTC](https://discourse.julialang.org/t/write-expressions-in-jump-model-based-on-condition/123696 "2024-12-11T20:37:42Z")

</div>

I want to add serval named expressions in a JuMP model that are conditional on the indices p (set P) and t (set T). X and I are the decision variable and set P consists of two subsets, P\_1, P\_2. I want the expressions to…

---

## [How to use Lux with Enzyme](https://discourse.julialang.org/t/how-to-use-lux-with-enzyme/122920)

<div class="topic-metadata">

**Author:** [@odddot](https://discourse.julialang.org/u/odddot)\
**Replies:** 6\
**Last updated:** [December 11, 2024, 6:08pm UTC](https://discourse.julialang.org/t/how-to-use-lux-with-enzyme/122920 "2024-12-11T18:08:51Z")

</div>

Hi, I am trying to use Lux with Enzyme, and I cannot get it to work in a simple example. The only complete (and working) example that I have found is this: Compiling Lux Models using Reactant.jl | Lux.jl Docs, which is …

---

## [ERROR: Tried to remove agent with ID 66 from the space, but that agent is not on the space](https://discourse.julialang.org/t/error-tried-to-remove-agent-with-id-66-from-the-space-but-that-agent-is-not-on-the-space/122674)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 7\
**Last updated:** [December 11, 2024, 5:12pm UTC](https://discourse.julialang.org/t/error-tried-to-remove-agent-with-id-66-from-the-space-but-that-agent-is-not-on-the-space/122674 "2024-12-11T17:12:25Z")

</div>

I was wondering what is most efficient and issue free way to create random positions for agents. At the moment Im using this where sides = \[1e3, 1e2, 5e2\] positions = \[sides .\* rand(SVector{3,Float64}) for \_ in 1:num…

---

## [Nelder Mead requires derivatives?](https://discourse.julialang.org/t/nelder-mead-requires-derivatives/123697)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 6\
**Last updated:** [December 11, 2024, 3:59pm UTC](https://discourse.julialang.org/t/nelder-mead-requires-derivatives/123697 "2024-12-11T15:59:44Z")

</div>

Hello everyone I was playing around with optimizing a problem using some code that looks as follows: using Optimization using OptimizationOptimJL function cost(u,p) # define the cost function here end prob = Opti…

---

## [ModelingToolkit & Fractional Differential Equations?](https://discourse.julialang.org/t/modelingtoolkit-fractional-differential-equations/123705)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 6\
**Last updated:** [December 11, 2024, 3:57pm UTC](https://discourse.julialang.org/t/modelingtoolkit-fractional-differential-equations/123705 "2024-12-11T15:57:35Z")

</div>

I noticed some time ago that someone discussed a new package on Fractional Differential Equation solvers – I had not heard of this before, so I didn’t pay much attention. Now, I see that in electrochemistry, it is relat…

---

## [Compatibility of alternative representation of Expressions with SymbolicUtils.jl](https://discourse.julialang.org/t/compatibility-of-alternative-representation-of-expressions-with-symbolicutils-jl/123707)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 3:50pm UTC](https://discourse.julialang.org/t/compatibility-of-alternative-representation-of-expressions-with-symbolicutils-jl/123707 "2024-12-11T15:50:52Z")

</div>

Hello, with my student we are trying to reproduce this Facebook’s paper (GitHub - facebookresearch/neural-rewriter: Learning to Perform Local Rewriting for Combinatorial Optimization) in Julia. At the moment, we use Met…

---

## [Cannot differentiate through a multivariate log normal probability density with Zygote](https://discourse.julialang.org/t/cannot-differentiate-through-a-multivariate-log-normal-probability-density-with-zygote/123571)

<div class="topic-metadata">

**Author:** [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)\
**Replies:** 4\
**Last updated:** [December 11, 2024, 3:10pm UTC](https://discourse.julialang.org/t/cannot-differentiate-through-a-multivariate-log-normal-probability-density-with-zygote/123571 "2024-12-11T15:10:38Z")

</div>

I’ve built a loss function based on the negative log likelihood of a multivariate log normal distribution. However, when I try to calculate the gradients I hit the following error which I would think stems from the handl…

---

## [Nonlinear program with JuMP not following all constraints](https://discourse.julialang.org/t/nonlinear-program-with-jump-not-following-all-constraints/123691)

<div class="topic-metadata">

**Author:** [@Yuricst](https://discourse.julialang.org/u/Yuricst)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 3:09pm UTC](https://discourse.julialang.org/t/nonlinear-program-with-jump-not-following-all-constraints/123691 "2024-12-11T15:09:20Z")

</div>

Hello! I am trying to solve a nonlinear nonconvex NLP using JuMP. More specifically, I would like to write a wrapper that accepts a somewhat generic objective/constraint evaluation function f\_fitness and generates a JuM…

---

## [How to execute .sql file](https://discourse.julialang.org/t/how-to-execute-sql-file/123675)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 10\
**Last updated:** [December 11, 2024, 2:55pm UTC](https://discourse.julialang.org/t/how-to-execute-sql-file/123675 "2024-12-11T14:55:41Z")

</div>

Hi, I am just getting started with using databases in Julia and am confused how I could read SQL commands from a file (for example, test.sql as below). I am using DuckDB.jl but the question is generic across SQLite.jl, e…

---

## [\[Flux + Yao\] Variable quantum circuits with trainable parameters](https://discourse.julialang.org/t/flux-yao-variable-quantum-circuits-with-trainable-parameters/123706)

<div class="topic-metadata">

**Author:** [@mbm204](https://discourse.julialang.org/u/mbm204)\
**Replies:** 1\
**Last updated:** [December 11, 2024, 2:46pm UTC](https://discourse.julialang.org/t/flux-yao-variable-quantum-circuits-with-trainable-parameters/123706 "2024-12-11T14:46:07Z")

</div>

I’m doing quantum machine learning in Yao and Flux. The construction of the quantum circuits within Yao is fairly straightforward but contains a gate construction that depends on the number of qubits involved. When setti…

---

## [Flux and Metal circular dependencies in 1.10.7](https://discourse.julialang.org/t/flux-and-metal-circular-dependencies-in-1-10-7/123698)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 2\
**Last updated:** [December 11, 2024, 11:25am UTC](https://discourse.julialang.org/t/flux-and-metal-circular-dependencies-in-1-10-7/123698 "2024-12-11T11:25:16Z")

</div>

Dearests, I was inspecting my new MacBook pro M4 GPU capabilities. I created a TestMetal package on a fresh new environment in 1.10.7. I added Metal and Flux but received warnings that a circular dependency was detected…

---

## [dSpace and Julia](https://discourse.julialang.org/t/dspace-and-julia/103209)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [December 11, 2024, 10:58am UTC](https://discourse.julialang.org/t/dspace-and-julia/103209 "2024-12-11T10:58:46Z")

</div>

Today I talked on a social event with a number of professors for control engineering about Matlab and Julia. They all told me, they would love to replace Matlab with Julia, but they have dSpace control hardware that only…

---

## [LazyBridgeOptimizer not working with copy\_to](https://discourse.julialang.org/t/lazybridgeoptimizer-not-working-with-copy-to/123366)

<div class="topic-metadata">

**Author:** [@thibault-vignon](https://discourse.julialang.org/u/thibault-vignon)\
**Replies:** 9\
**Last updated:** [December 11, 2024, 7:52am UTC](https://discourse.julialang.org/t/lazybridgeoptimizer-not-working-with-copy-to/123366 "2024-12-11T07:52:39Z")

</div>

Hi, I’m writing a script in order to convert files from CBF to NL format. See example below: src = MOI.FileFormats.Model(format = MOI.FileFormats.FORMAT\_CBF); MOI.read\_from\_file(src, "path\_to\_file"); dest = MOI.FileForm…

---

## [Universal differential equations (UDE) with modern SciML stack (Lux, Enzyme, ...)](https://discourse.julialang.org/t/universal-differential-equations-ude-with-modern-sciml-stack-lux-enzyme/120869)

<div class="topic-metadata">

**Author:** [@nurban](https://discourse.julialang.org/u/nurban)\
**Replies:** 6\
**Last updated:** [December 10, 2024, 9:59pm UTC](https://discourse.julialang.org/t/universal-differential-equations-ude-with-modern-sciml-stack-lux-enzyme/120869 "2024-12-10T21:59:31Z")

</div>

I am interested in implementing training universal partial differential equation (UPDE) systems. I understand from @ChrisRackauckas that the SciML ecosystem is increasingly moving toward Lux and Enzyme. (And which opti…

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

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