# Latest

**URL:** https://discourse.julialang.org/latest.md?page=316

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

**Page:** 317

---

## [ModelingToolkit -- possible to do "numeric" linearization?](https://discourse.julialang.org/t/modelingtoolkit-possible-to-do-numeric-linearization/118933)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 6\
**Last updated:** [September 2, 2024, 12:00pm UTC](https://discourse.julialang.org/t/modelingtoolkit-possible-to-do-numeric-linearization/118933 "2024-09-02T12:00:22Z")

</div>

I’ve had problems doing linearization with ModelingToolkit \[MTK\] for “complicated” models since May (due to bugs?). I’m wondering whether it is possible to “massage” the MTK model into a form that allows for “old-fashion…

---

## [Matrix equation solution via GenericLinearAlgebra with BigFloat not working](https://discourse.julialang.org/t/matrix-equation-solution-via-genericlinearalgebra-with-bigfloat-not-working/119662)

<div class="topic-metadata">

**Author:** [@thedeyan](https://discourse.julialang.org/u/thedeyan)\
**Replies:** 1\
**Last updated:** [September 21, 2024, 3:45am UTC](https://discourse.julialang.org/t/matrix-equation-solution-via-genericlinearalgebra-with-bigfloat-not-working/119662 "2024-09-21T03:45:03Z")

</div>

I am trying to solve a system of linear equations: A \* x = B where A and B are real symmetric positive definite matrices with type BigFloat. I am trying to do the following: using GenericLinearAlgebra using LinearSol…

---

## [Training Bijectors.jl on samples](https://discourse.julialang.org/t/training-bijectors-jl-on-samples/119661)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 3\
**Last updated:** [September 21, 2024, 2:45am UTC](https://discourse.julialang.org/t/training-bijectors-jl-on-samples/119661 "2024-09-21T02:45:40Z")

</div>

I need to train a Normalizing flow on some samples and then use it as a distribution. @Red-Portal suggested me to use Bijectors.jl. However, when trying to follow the example in the documentation, I noticed there is an …

---

## [Curious about JuliaCon2024](https://discourse.julialang.org/t/curious-about-juliacon2024/116530)

<div class="topic-metadata">

**Author:** [@Cryp-Smart-Alec](https://discourse.julialang.org/u/Cryp-Smart-Alec)\
**Replies:** 13\
**Last updated:** [September 21, 2024, 12:06am UTC](https://discourse.julialang.org/t/curious-about-juliacon2024/116530 "2024-09-21T00:06:50Z")

</div>

Just curious, as an undergraduate, new to Julia. How should I go about this event online? And hopefully, getting inspiration or opportunities A background of myself: Having a Bachelor of system engineering . Trying to t…

---

## [\[ANN, NEW\] OptimalTransportNetworks.jl - Optimal transport networks in spatial equilibrium](https://discourse.julialang.org/t/ann-new-optimaltransportnetworks-jl-optimal-transport-networks-in-spatial-equilibrium/119649)

<div class="topic-metadata">

**Author:** [@SebKrantz](https://discourse.julialang.org/u/SebKrantz)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 11:37pm UTC](https://discourse.julialang.org/t/ann-new-optimaltransportnetworks-jl-optimal-transport-networks-in-spatial-equilibrium/119649 "2024-09-20T23:37:24Z")

</div>

I’m happy to announce the release of OptimalTransportNetworks.jl, a modern Julia translation of the MATLAB OptimalTransportNetworkToolbox implementing the quantitative spatial model and algorithms described in Fajgelbau…

---

## [JuliaCon Global 2025 Announcement](https://discourse.julialang.org/t/juliacon-global-2025-announcement/119656)

<div class="topic-metadata">

**Author:** [@rayegun](https://discourse.julialang.org/u/rayegun)\
**Replies:** 0\
**Last updated:** [September 20, 2024, 7:37pm UTC](https://discourse.julialang.org/t/juliacon-global-2025-announcement/119656 "2024-09-20T19:37:05Z")

</div>

Hey folks! We are happy to announce JuliaCon Global 2025 will be held in Pittsburgh, Pennsylvania at the end of July 2025! In the same blogpost we are also announcing a call for committee members for JuliaCon Global …

---

## [Measure a certain computational base like |0\> or |1\>?](https://discourse.julialang.org/t/measure-a-certain-computational-base-like-0-or-1/119650)

<div class="topic-metadata">

**Author:** [@yao\_novice](https://discourse.julialang.org/u/yao_novice)\
**Replies:** 2\
**Last updated:** [September 20, 2024, 7:31pm UTC](https://discourse.julialang.org/t/measure-a-certain-computational-base-like-0-or-1/119650 "2024-09-20T19:31:56Z")

</div>

Simple qubit state: 1/5\*\[3, 4i\] measurement against |0\> should result in 0.36 against |1\> → 0.64 import Yao reg = Yao.ArrayReg(\[3.0, 4.0im\]) # a unnormalized state Yao.normalize!(reg) shots = 10000 m=Yao.measure(Ya…

---

## [Superscripts in Plots.jl with units](https://discourse.julialang.org/t/superscripts-in-plots-jl-with-units/119652)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 1\
**Last updated:** [September 20, 2024, 7:16pm UTC](https://discourse.julialang.org/t/superscripts-in-plots-jl-with-units/119652 "2024-09-20T19:16:10Z")

</div>

Doing: julia\> using Plots, Unitful julia\> plot(\[1,2,3\]u"s", \[1,2,3\]u"m/s") produces this y-label: Shouldn´t it produce m s^{-1} with a proper superscript?

---

## [Acquiring locks in finalizers](https://discourse.julialang.org/t/acquiring-locks-in-finalizers/119628)

<div class="topic-metadata">

**Author:** [@remysucre](https://discourse.julialang.org/u/remysucre)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 5:05pm UTC](https://discourse.julialang.org/t/acquiring-locks-in-finalizers/119628 "2024-09-20T17:05:56Z")

</div>

The manual has an example with a finalizer that acquires a lock (without blocking). However, in the Locks section it also says: The following are definitely leaf locks (level 1), and must not try to acquire any other l…

---

## [Why is the product of Real and Float64 arrays of eltype Any?](https://discourse.julialang.org/t/why-is-the-product-of-real-and-float64-arrays-of-eltype-any/119219)

<div class="topic-metadata">

**Author:** [@mhauru](https://discourse.julialang.org/u/mhauru)\
**Replies:** 4\
**Last updated:** [September 20, 2024, 3:48pm UTC](https://discourse.julialang.org/t/why-is-the-product-of-real-and-float64-arrays-of-eltype-any/119219 "2024-09-20T15:48:46Z")

</div>

I just discovered that for instance julia\> eltype(LinearAlgebra.Diagonal(Real\[1.0\]) \* \[1.0;;\]) Any and julia\> Real\[1.0;;\] \* \[1.0;;\] 1×1 Matrix{Any}: 1.0 Why is the eltype here Any, rather than Real? Element-wise pr…

---

## [\[Need help with\] GMT Eumap with lines and dots](https://discourse.julialang.org/t/need-help-with-gmt-eumap-with-lines-and-dots/119607)

<div class="topic-metadata">

**Author:** [@Elvander](https://discourse.julialang.org/u/Elvander)\
**Replies:** 2\
**Last updated:** [September 20, 2024, 3:30pm UTC](https://discourse.julialang.org/t/need-help-with-gmt-eumap-with-lines-and-dots/119607 "2024-09-20T15:30:10Z")

</div>

I would like to plot a series of lines and dots on the map of the EU ; I found out how to plot the EU map and plot either (one line) or a bunch of dots, but it is unclear to me how to do both ; I also would like to be ab…

---

## [\[NEW\] NautyGraphs.jl](https://discourse.julialang.org/t/new-nautygraphs-jl/119029)

<div class="topic-metadata">

**Author:** [@mxhbl](https://discourse.julialang.org/u/mxhbl)\
**Replies:** 7\
**Last updated:** [September 20, 2024, 2:42pm UTC](https://discourse.julialang.org/t/new-nautygraphs-jl/119029 "2024-09-20T14:42:39Z")

</div>

NautyGraphs.jl I am excited to announce my first package NautyGraphs.jl, which is now available through the general registry. NautyGraphs is a Julia interface to the famous graph isomorphism library nauty by Brendan McK…

---

## [Distributed computing over SLURM array](https://discourse.julialang.org/t/distributed-computing-over-slurm-array/119574)

<div class="topic-metadata">

**Author:** [@tb877](https://discourse.julialang.org/u/tb877)\
**Replies:** 11\
**Last updated:** [September 20, 2024, 3:04pm UTC](https://discourse.julialang.org/t/distributed-computing-over-slurm-array/119574 "2024-09-20T15:04:14Z")

</div>

Hi, New to Julia, and also new to SLURM. I’m thinking about the following workflow for my project and would like to see if it seems a sensible strategy, especially considering the specificities of the Julia language. I…

---

## [Allocatable Multidimensional Arrays in Fortran](https://discourse.julialang.org/t/allocatable-multidimensional-arrays-in-fortran/119535)

<div class="topic-metadata">

**Author:** [@Jason\_Meziere](https://discourse.julialang.org/u/Jason_Meziere)\
**Replies:** 9\
**Last updated:** [September 20, 2024, 2:43pm UTC](https://discourse.julialang.org/t/allocatable-multidimensional-arrays-in-fortran/119535 "2024-09-20T14:43:06Z")

</div>

I am attempting to wrap a fortran package in Julia. In many of the functions, there are 2D arrays that are specified as ALLOCATABLE. Does Julia have a way to handle this? And what is the proper way to pass these values i…

---

## [Persistent vertex identities for Steiner tree, vertex removal](https://discourse.julialang.org/t/persistent-vertex-identities-for-steiner-tree-vertex-removal/119568)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 7\
**Last updated:** [September 20, 2024, 2:32pm UTC](https://discourse.julialang.org/t/persistent-vertex-identities-for-steiner-tree-vertex-removal/119568 "2024-09-20T14:32:39Z")

</div>

I have a use case for a large graph, from which I iteratively remove vertices, and at each step compute some Steiner trees from its current state. Specifically, my use case requires to know to which vertices in the origi…

---

## [How to determine distribution of real-world data and then apply same distribution to model with Agents.jl](https://discourse.julialang.org/t/how-to-determine-distribution-of-real-world-data-and-then-apply-same-distribution-to-model-with-agents-jl/119617)

<div class="topic-metadata">

**Author:** [@tfranks](https://discourse.julialang.org/u/tfranks)\
**Replies:** 6\
**Last updated:** [September 20, 2024, 12:28pm UTC](https://discourse.julialang.org/t/how-to-determine-distribution-of-real-world-data-and-then-apply-same-distribution-to-model-with-agents-jl/119617 "2024-09-20T12:28:20Z")

</div>

Hello, Goal: trying to determine distribution from 4Q22 data set and apply the same distribution to a network model using Agents.jl. See 4Q22 data on xy-grid. Background: I had an earlier post on Discourse where …

---

## [With \`julia-actions/setup-julia\` you can now specify \`lts\` and \`pre\` named versions](https://discourse.julialang.org/t/with-julia-actions-setup-julia-you-can-now-specify-lts-and-pre-named-versions/116281)

<div class="topic-metadata">

**Author:** [@ianshmean](https://discourse.julialang.org/u/ianshmean)\
**Replies:** 9\
**Last updated:** [September 20, 2024, 11:02am UTC](https://discourse.julialang.org/t/with-julia-actions-setup-julia-you-can-now-specify-lts-and-pre-named-versions/116281 "2024-09-20T11:02:56Z")

</div>

With the release of julia-actions/setup-julia v2.2.0 for GitHub actions it is now possible to use new named version specifiers: 'lts' for the Long Term Support (LTS) julia version (currently v1.6.7) 'pre' for the lates…

---

## [Questions about dependencies between packages](https://discourse.julialang.org/t/questions-about-dependencies-between-packages/119633)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 8\
**Last updated:** [September 20, 2024, 9:15am UTC](https://discourse.julialang.org/t/questions-about-dependencies-between-packages/119633 "2024-09-20T09:15:55Z")

</div>

Suppose we have installed the latest version of a package named PkgB v0.1.0 in our project environment. It has PkgA v0.1.0 as one of its dependencies. Now we find that PkgA v0.1.0 has a new commit on GitHub without rel…

---

## [Help needed for a simple static sum](https://discourse.julialang.org/t/help-needed-for-a-simple-static-sum/99744)

<div class="topic-metadata">

**Author:** [@francis-gagnon](https://discourse.julialang.org/u/francis-gagnon)\
**Replies:** 6\
**Last updated:** [September 20, 2024, 7:52am UTC](https://discourse.julialang.org/t/help-needed-for-a-simple-static-sum/99744 "2024-09-20T07:52:02Z")

</div>

Hi, I’m learning ModelingToolkit.jl and it’s my first experience with acausal modeling. I’m working on modeling a mining circuit. My flow variable is a mass flowrate in t/h (tonnage). I’m starting with a simple example,…

---

## [Parameter estimation in biological network](https://discourse.julialang.org/t/parameter-estimation-in-biological-network/119630)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 7\
**Last updated:** [September 20, 2024, 6:55am UTC](https://discourse.julialang.org/t/parameter-estimation-in-biological-network/119630 "2024-09-20T06:55:37Z")

</div>

I am working on a large signaling pathway and trying to get a rough estimation of the baseline parameters. I have been trying to do the fitting with the Particle Swarm Optimization from Metaheuristics.jl but it does not …

---

## [Where to run CI on GPUs?](https://discourse.julialang.org/t/where-to-run-ci-on-gpus/119619)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 6:16am UTC](https://discourse.julialang.org/t/where-to-run-ci-on-gpus/119619 "2024-09-20T06:16:43Z")

</div>

I have several packages whose tests would benefit from GPUs, but I don’t have funding to pay for dedicated servers. What are the best ways to run CI on GPUs with zero to low costs? My needs in terms of minutes are rather…

---

## [GLMakie and nixOS](https://discourse.julialang.org/t/glmakie-and-nixos/111897)

<div class="topic-metadata">

**Author:** [@Pablo\_Marchant](https://discourse.julialang.org/u/Pablo_Marchant)\
**Replies:** 4\
**Last updated:** [September 20, 2024, 6:08am UTC](https://discourse.julialang.org/t/glmakie-and-nixos/111897 "2024-09-20T06:08:16Z")

</div>

Just a quick question here, sorry if this is not the right place for it. Has anyone managed to use GLMakie in nixos? Wanted to try out this distro but it seems julia has some issues with it, seems they explicitly say som…

---

## [Differentiating through a QP - order of constraints](https://discourse.julialang.org/t/differentiating-through-a-qp-order-of-constraints/119275)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 3\
**Last updated:** [September 20, 2024, 6:04am UTC](https://discourse.julialang.org/t/differentiating-through-a-qp-order-of-constraints/119275 "2024-09-20T06:04:17Z")

</div>

This is a follow-up to this topic. I have a QP that I want to differentiate through using DiffOpt. In contrast to the example from the tutorial, I have two constraints: n = 2 # variable dimension m = 2; # no of inequal…

---

## [Why \`for/if\` syntax is not allowed in loops](https://discourse.julialang.org/t/why-for-if-syntax-is-not-allowed-in-loops/119393)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 6\
**Last updated:** [September 20, 2024, 3:53am UTC](https://discourse.julialang.org/t/why-for-if-syntax-is-not-allowed-in-loops/119393 "2024-09-20T03:53:53Z")

</div>

Hi, I wonder why the combination of for and if is allowed in comprehension like nbe = sum(count(iseven,rv) for rv ∈ rvv if isodd(length(rv));init=0) but has to be written in two separate control flows statement in lo…

---

## [How to nondimensionalize problems with multiple/variable scales?](https://discourse.julialang.org/t/how-to-nondimensionalize-problems-with-multiple-variable-scales/119624)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [September 19, 2024, 9:07pm UTC](https://discourse.julialang.org/t/how-to-nondimensionalize-problems-with-multiple-variable-scales/119624 "2024-09-19T21:07:30Z")

</div>

Even in those purely theoretical-physical problems you are referring to, the own scale of a subsystem may have some arbitrary relations with the “outer” scales. But enter material world, and applying Buckingham’s theore…

---

## [History of \`isapprox\` in languages](https://discourse.julialang.org/t/history-of-isapprox-in-languages/119347)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 56\
**Last updated:** [September 19, 2024, 8:58pm UTC](https://discourse.julialang.org/t/history-of-isapprox-in-languages/119347 "2024-09-19T20:58:20Z")

</div>

Does anyone know why the de-facto standard definition of isapprox intentionally fails when one of the arguments is zero? isapprox(0.0, 0.0 + 1e-10) # false isapprox(1.0, 1.0 + 1e-10) # true It is clear from the formula…

---

## [Issue with installing JuliaUp on compute cluster](https://discourse.julialang.org/t/issue-with-installing-juliaup-on-compute-cluster/119566)

<div class="topic-metadata">

**Author:** [@pacargile](https://discourse.julialang.org/u/pacargile)\
**Replies:** 15\
**Last updated:** [September 19, 2024, 5:59pm UTC](https://discourse.julialang.org/t/issue-with-installing-juliaup-on-compute-cluster/119566 "2024-09-19T17:59:34Z")

</div>

I am new to installing Julia on systems, but recently I needed to install it on our compute cluster. I tried using the standard “curl” approach given on the Julia installation webpage. I get the following error, which I …

---

## [AI bubble: time to panic? Perhaps not yet... maybe now](https://discourse.julialang.org/t/ai-bubble-time-to-panic-perhaps-not-yet-maybe-now/112918)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 64\
**Last updated:** [September 19, 2024, 5:32pm UTC](https://discourse.julialang.org/t/ai-bubble-time-to-panic-perhaps-not-yet-maybe-now/112918 "2024-09-19T17:32:47Z")

</div>

---

## [How to add a tolerance to isapprox](https://discourse.julialang.org/t/how-to-add-a-tolerance-to-isapprox/118711)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [August 28, 2024, 1:18pm UTC](https://discourse.julialang.org/t/how-to-add-a-tolerance-to-isapprox/118711 "2024-08-28T13:18:18Z")

</div>

I have the following line of code: @test all(forces\[i,:\] .≈ kps4.forces\[i\]) I would like to increase the relative tolerance, in other words add the parameter rtol=1e-4 . How can I do that?

---

## [How to define a custom Makie xscale function which needs an extra argument?](https://discourse.julialang.org/t/how-to-define-a-custom-makie-xscale-function-which-needs-an-extra-argument/119580)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 3\
**Last updated:** [September 19, 2024, 4:05pm UTC](https://discourse.julialang.org/t/how-to-define-a-custom-makie-xscale-function-which-needs-an-extra-argument/119580 "2024-09-19T16:05:03Z")

</div>

Hi To apply a custom scaling function in Makie as per the docs we need to overload some functions. The example below is taken from here import Makie function my\_log(x) return log10(x) end function my\_inverse\_log(…

[Previous page](https://discourse.julialang.org/latest.md?page=315)

[Next page](https://discourse.julialang.org/latest.md?page=317)
