# Latest

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

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

**Page:** 501

---

## [Fit a dynamical system to a 2 variables time series](https://discourse.julialang.org/t/fit-a-dynamical-system-to-a-2-variables-time-series/109003)

<div class="topic-metadata">

**Author:** [@ManuelFossa](https://discourse.julialang.org/u/ManuelFossa)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 2:57pm UTC](https://discourse.julialang.org/t/fit-a-dynamical-system-to-a-2-variables-time-series/109003 "2024-01-26T14:57:16Z")

</div>

Hello, I have data that consists of an N=1000 observations \* 3 columns matrix. the first two columns are 2 variables that condition the third one. I used DynamicalSystems.jl to estimate the phase space portrait via de…

---

## [NonlinearSolve.jl - sol.stats returns nothing](https://discourse.julialang.org/t/nonlinearsolve-jl-sol-stats-returns-nothing/109301)

<div class="topic-metadata">

**Author:** [@jcass](https://discourse.julialang.org/u/jcass)\
**Replies:** 5\
**Last updated:** [January 26, 2024, 2:03pm UTC](https://discourse.julialang.org/t/nonlinearsolve-jl-sol-stats-returns-nothing/109301 "2024-01-26T14:03:49Z")

</div>

I’m struggling to locate the solver stats in NonlinearSolve.jl. After running the basic example from the docs, using NonlinearSolve function f(u, p) u .\* u .- p end u0 = \[1.0, 1.0\] p = 2.0 prob = NonlinearProblem(f…

---

## [How to install packages on an offline cluster?](https://discourse.julialang.org/t/how-to-install-packages-on-an-offline-cluster/109293)

<div class="topic-metadata">

**Author:** [@baizhan](https://discourse.julialang.org/u/baizhan)\
**Replies:** 7\
**Last updated:** [January 26, 2024, 2:00pm UTC](https://discourse.julialang.org/t/how-to-install-packages-on-an-offline-cluster/109293 "2024-01-26T14:00:16Z")

</div>

I’m trying to use julia on a cluster, which does not have usual network, so I have to install the packages offlinely. I have read several post regarding this problem, it seems that I should upload the entire ~/.julia …

---

## [Julia vs C++ for Automated Reasoning](https://discourse.julialang.org/t/julia-vs-c-for-automated-reasoning/109268)

<div class="topic-metadata">

**Author:** [@Rajaram\_Venkataraman](https://discourse.julialang.org/u/Rajaram_Venkataraman)\
**Replies:** 3\
**Last updated:** [January 26, 2024, 1:21pm UTC](https://discourse.julialang.org/t/julia-vs-c-for-automated-reasoning/109268 "2024-01-26T13:21:41Z")

</div>

Hello - I have to develop an automated reasoning system that combines the power of f language models and graph processing rather than HoQ, Isabelle or LEAN type approach. It requires new development and plan to use eithe…

---

## [Who uses Dates.adjust?](https://discourse.julialang.org/t/who-uses-dates-adjust/109030)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [January 26, 2024, 11:56am UTC](https://discourse.julialang.org/t/who-uses-dates-adjust/109030 "2024-01-26T11:56:21Z")

</div>

Dates.adjust is exported but has no docstring and no manual entry. I’m wondering if we can remove the export before it gets locked in with a docstring in 1.11. Who uses Dates.adjust?

---

## [Plots.jl in a docker container](https://discourse.julialang.org/t/plots-jl-in-a-docker-container/109254)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 11:49am UTC](https://discourse.julialang.org/t/plots-jl-in-a-docker-container/109254 "2024-01-26T11:49:42Z")

</div>

I am trying to use Plots.jl in a docker container (FROM julia:1.9.4-bookworm). I think I am able to create the plots, but I get various warnings and errors from qt. Examples include: qt.core.plugin.factoryloader: Got …

---

## [Variational Inference for Gaussian Mixture models](https://discourse.julialang.org/t/variational-inference-for-gaussian-mixture-models/109116)

<div class="topic-metadata">

**Author:** [@simonsteiger](https://discourse.julialang.org/u/simonsteiger)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:58am UTC](https://discourse.julialang.org/t/variational-inference-for-gaussian-mixture-models/109116 "2024-01-26T10:58:15Z")

</div>

I’ve been trying to replicate the results from @rikh great blog post on Bayesian Latent Profile Analysis and the related post on this forum. This was my attempt using Turing x = randn(200); x\[1:100\] .+= 10 @model fun…

---

## [Multiple user cut](https://discourse.julialang.org/t/multiple-user-cut/109080)

<div class="topic-metadata">

**Author:** [@Fabrizio](https://discourse.julialang.org/u/Fabrizio)\
**Replies:** 6\
**Last updated:** [January 26, 2024, 9:26am UTC](https://discourse.julialang.org/t/multiple-user-cut/109080 "2024-01-26T09:26:39Z")

</div>

Hi, I am using a solver indipendent callback to add user cut withing a for loop, in a bilevel opt model. They are of the form: function MyUsercutRelaxedSD(cb\_data) #Get var ... for t in T SDrelcon = @build\_co…

---

## [A discrepancy in self-attention between python and Julia (Transformers)](https://discourse.julialang.org/t/a-discrepancy-in-self-attention-between-python-and-julia-transformers/109195)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 7\
**Last updated:** [January 26, 2024, 7:27am UTC](https://discourse.julialang.org/t/a-discrepancy-in-self-attention-between-python-and-julia-transformers/109195 "2024-01-26T07:27:00Z")

</div>

Hi, I am continuing the porting of microsoft Phi model to the Transformers.jl. The most complicated is the self-attention, where I am lost, but gradually removing abstraction layers of Neuralattentionlib.jl to get to th…

---

## [Polyfit (in Polynomials.jl ?) not working in new Julia version?](https://discourse.julialang.org/t/polyfit-in-polynomials-jl-not-working-in-new-julia-version/108815)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 17\
**Last updated:** [January 26, 2024, 7:00am UTC](https://discourse.julialang.org/t/polyfit-in-polynomials-jl-not-working-in-new-julia-version/108815 "2024-01-26T07:00:38Z")

</div>

Hi, has the Polynomials.polyfit command been discontinued or changed? I recently updated from Julia (JuliaPro) 1.4.2-1 to Julia 1.10.0, and ran a large simulation program in the new version, which crashed with an error …

---

## [zeros(Float64, 2) or zeros(2, Float64)](https://discourse.julialang.org/t/zeros-float64-2-or-zeros-2-float64/109283)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 5\
**Last updated:** [January 26, 2024, 6:56am UTC](https://discourse.julialang.org/t/zeros-float64-2-or-zeros-2-float64/109283 "2024-01-26T06:56:56Z")

</div>

julia\> a = zeros(Float64, 2) 2-element Vector{Float64}: 0.0 0.0 julia\> a = zeros(2, Float64 ) ERROR: MethodError: no method matching zeros(::Int64, ::Type{Float64}) Closest candidates are: zeros(::Union{Integer,…

---

## [\`munmap\_chunk(): invalid pointer\` when wrapping a C++ package](https://discourse.julialang.org/t/munmap-chunk-invalid-pointer-when-wrapping-a-c-package/109205)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 1\
**Last updated:** [January 26, 2024, 5:00am UTC](https://discourse.julialang.org/t/munmap-chunk-invalid-pointer-when-wrapping-a-c-package/109205 "2024-01-26T05:00:48Z")

</div>

Hello community, I’ve been trying to wrap a C++ package using CxxWrap.jl. My wrapper code and CMakeList.txt are available here, and they seem to work locally. Then, using this build\_tarballs.jl I created a jll package g…

---

## [Problem with Language Server Protocol in VS Code and Sublime Text](https://discourse.julialang.org/t/problem-with-language-server-protocol-in-vs-code-and-sublime-text/109264)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 11\
**Last updated:** [January 26, 2024, 12:11am UTC](https://discourse.julialang.org/t/problem-with-language-server-protocol-in-vs-code-and-sublime-text/109264 "2024-01-26T00:11:08Z")

</div>

First off: I am impressed with the LSP in VS Code, and I think the maintainers of the Julia integration with LSP are doing a great job. Thank you! Also, the maintainers of LSP-julia who are integrating Julia with the LS…

---

## [BetaBinomial: the condition α \> zero(α) is not satisfied](https://discourse.julialang.org/t/betabinomial-the-condition-zero-is-not-satisfied/109076)

<div class="topic-metadata">

**Author:** [@yahrMason](https://discourse.julialang.org/u/yahrMason)\
**Replies:** 6\
**Last updated:** [January 26, 2024, 2:02am UTC](https://discourse.julialang.org/t/betabinomial-the-condition-zero-is-not-satisfied/109076 "2024-01-26T02:02:33Z")

</div>

Hello, I have some code where I am trying to model the uncertainty in an a probabilistic prediction as a function of some independent variable. A general use case would be if I had an ML model in production (say logisti…

---

## [Include deterministic variables in the chain](https://discourse.julialang.org/t/include-deterministic-variables-in-the-chain/108047)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 11:35pm UTC](https://discourse.julialang.org/t/include-deterministic-variables-in-the-chain/108047 "2024-01-25T23:35:23Z")

</div>

This is a very basic question, but how can I include deterministic variables in the chain when sampling from a Turing.jl model?

---

## [Issue with Float32 Precision in Turing Model Sampling](https://discourse.julialang.org/t/issue-with-float32-precision-in-turing-model-sampling/108160)

<div class="topic-metadata">

**Author:** [@Can\_Bozdogan](https://discourse.julialang.org/u/Can_Bozdogan)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 11:33pm UTC](https://discourse.julialang.org/t/issue-with-float32-precision-in-turing-model-sampling/108160 "2024-01-25T23:33:36Z")

</div>

I’m encountering an issue when trying to use Float32 precision in a Turing.jl model. Despite ensuring all my data, neural network outputs, and model parameters are in Float32, I’m getting a type mismatch error during sam…

---

## [Get indices of unique rows in 2D array](https://discourse.julialang.org/t/get-indices-of-unique-rows-in-2d-array/109208)

<div class="topic-metadata">

**Author:** [@dalarev](https://discourse.julialang.org/u/dalarev)\
**Replies:** 12\
**Last updated:** [January 25, 2024, 11:07pm UTC](https://discourse.julialang.org/t/get-indices-of-unique-rows-in-2d-array/109208 "2024-01-25T23:07:04Z")

</div>

MWE: A = \[1 2 ; 3 4 ; 1 2 \] I want as output the row indices 1, 2. Using unique, one can access the indices of unique values by using i = unique(i -\> A\[i\], eachindex(A)), however I don’t know how to modify this for …

---

## [GLMakie remote animations through ssh](https://discourse.julialang.org/t/glmakie-remote-animations-through-ssh/109270)

<div class="topic-metadata">

**Author:** [@lpv](https://discourse.julialang.org/u/lpv)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 10:26pm UTC](https://discourse.julialang.org/t/glmakie-remote-animations-through-ssh/109270 "2024-01-25T22:26:27Z")

</div>

Hello! I am trying to create an animation with the results from a simulation remotely through “ssh -X”. When doing locally, it is quite fast. Through the ssh, it get extremely slow. It would be easier for me to simply g…

---

## [Huge memory allocation](https://discourse.julialang.org/t/huge-memory-allocation/109273)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 17\
**Last updated:** [January 25, 2024, 10:16pm UTC](https://discourse.julialang.org/t/huge-memory-allocation/109273 "2024-01-25T22:16:15Z")

</div>

Hi, I am trying to do some calculation which involves large array (float64 arrays with length 2^30). The array is large but I think still acceptable. However, when I tried to run the codes within some loops, the memory …

---

## [\[Workgroup\] JuliaHealth Meeting (Americas/Europe/Africa) -- January 25th, 2024](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-americas-europe-africa-january-25th-2024/109181)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 9:40pm UTC](https://discourse.julialang.org/t/workgroup-juliahealth-meeting-americas-europe-africa-january-25th-2024/109181 "2024-01-25T21:40:49Z")

</div>

Hi folks and Happy New Year! :partying\_face: Welcome to 2024! I hope the year so far has been off to a great start for you all! I am excited to announce the first monthly meeting for the JuliaHealth Americas/Europe/Afric…

---

## [Create an implicit environment with package directories](https://discourse.julialang.org/t/create-an-implicit-environment-with-package-directories/109207)

<div class="topic-metadata">

**Author:** [@francis-gagnon](https://discourse.julialang.org/u/francis-gagnon)\
**Replies:** 15\
**Last updated:** [January 25, 2024, 8:53pm UTC](https://discourse.julialang.org/t/create-an-implicit-environment-with-package-directories/109207 "2024-01-25T20:53:18Z")

</div>

The manual mention that it’s possible to create an implicit environnement with package directories (i.e. directories without Project.toml files). Like @plafer in this post, I tried to replicate the example in the manual …

---

## [Worked tutorial on low-level AbstractNLPEvaluator interface?](https://discourse.julialang.org/t/worked-tutorial-on-low-level-abstractnlpevaluator-interface/109210)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 4\
**Last updated:** [January 25, 2024, 8:23pm UTC](https://discourse.julialang.org/t/worked-tutorial-on-low-level-abstractnlpevaluator-interface/109210 "2024-01-25T20:23:10Z")

</div>

I have a very old lab-internal package that performs a variety of image registration tasks. It was written against MathProgBase, and clearly it’s well past time to rewrite it for MathOptInterface. While the documentation…

---

## [Nastran OP2 and BDF](https://discourse.julialang.org/t/nastran-op2-and-bdf/108425)

<div class="topic-metadata">

**Author:** [@Jacob53101](https://discourse.julialang.org/u/Jacob53101)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 8:17pm UTC](https://discourse.julialang.org/t/nastran-op2-and-bdf/108425 "2024-01-25T20:17:39Z")

</div>

I’m trying to work with nx nastran bdf and op2 files using julia. There’s a library in python called pyNastran that can parse these nastran files really well and save them as hdf5 files. My plan is to read these hdf5 fil…

---

## [Constructing a sparse variable for optimization](https://discourse.julialang.org/t/constructing-a-sparse-variable-for-optimization/109269)

<div class="topic-metadata">

**Author:** [@legio](https://discourse.julialang.org/u/legio)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 8:15pm UTC](https://discourse.julialang.org/t/constructing-a-sparse-variable-for-optimization/109269 "2024-01-25T20:15:39Z")

</div>

I want to optimize over a matrix X. While I specify in my model constraints the indices at which X must be zero (according to the specifications I provide in a binary matrix A): @variable(model, X\[1:n\_rows, 1:n\_cols\]) …

---

## [GPU memory in Julia](https://discourse.julialang.org/t/gpu-memory-in-julia/109216)

<div class="topic-metadata">

**Author:** [@Wenbo\_Li](https://discourse.julialang.org/u/Wenbo_Li)\
**Replies:** 5\
**Last updated:** [January 25, 2024, 6:02pm UTC](https://discourse.julialang.org/t/gpu-memory-in-julia/109216 "2024-01-25T18:02:03Z")

</div>

I am training unet with 3d input size 512512128. However, with the same model, same loss function, same size of input and label in float32, python indeed can fit and train while julia not. Also, julia need much longer ti…

---

## [Intransitivities in subtyping](https://discourse.julialang.org/t/intransitivities-in-subtyping/109266)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 8\
**Last updated:** [January 25, 2024, 5:00pm UTC](https://discourse.julialang.org/t/intransitivities-in-subtyping/109266 "2024-01-25T17:00:16Z")

</div>

I think the WAT on subtyping is julia\> Direct = Tuple{String,String} Tuple{String, String} julia\> SubStr = Tuple{T,T} where T\<:String Tuple{T, T} where T\<:String julia\> SupStr = Tuple{T,T} where T\>:String Tuple{T, T} …

---

## [Forcing Lux to use Enzyme instead of Zygote?](https://discourse.julialang.org/t/forcing-lux-to-use-enzyme-instead-of-zygote/109193)

<div class="topic-metadata">

**Author:** [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Replies:** 10\
**Last updated:** [January 25, 2024, 3:35pm UTC](https://discourse.julialang.org/t/forcing-lux-to-use-enzyme-instead-of-zygote/109193 "2024-01-25T15:35:10Z")

</div>

Hi everyone. I’m confused. The example that used to work @GitHub - SciML/NeuralPDE.jl: Physics-Informed Neural Networks (PINN) and Deep BSDE Solvers of Differential Equations for Scientific Machine Learning (SciML) acc…

---

## [How to set the random seed using GLPK.jl?](https://discourse.julialang.org/t/how-to-set-the-random-seed-using-glpk-jl/109231)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 2:40pm UTC](https://discourse.julialang.org/t/how-to-set-the-random-seed-using-glpk-jl/109231 "2024-01-25T14:40:06Z")

</div>

I have asked my students to set a fixed random seed in their experiments with a formulation implementation. Many have used Julia/JuMP as I have incentivized them to do so. However, I was not able to tell them how to set …

---

## [ChunkSplitters.jl: Simple parallel chunk splitter](https://discourse.julialang.org/t/chunksplitters-jl-simple-parallel-chunk-splitter/87945)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 10\
**Last updated:** [January 25, 2024, 2:02pm UTC](https://discourse.julialang.org/t/chunksplitters-jl-simple-parallel-chunk-splitter/87945 "2024-01-25T14:02:33Z")

</div>

I have just put up this small package that provides a chunks function to be used within threaded loops. It is something that I find useful and appears somewhat often here: This is so basic that I have always the impre…

---

## [{} in function names](https://discourse.julialang.org/t/in-function-names/109240)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 11:05am UTC](https://discourse.julialang.org/t/in-function-names/109240 "2024-01-25T11:05:24Z")

</div>

I see many functions or constructors with {} in their names. julia\> NTuple{4,Int64}((1,2,3,4)) (1, 2, 3, 4) julia\> function myfun{2}(x,y) return x + y end ERROR: UndefVarError: \`myfun\` not defined Stacktr…

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

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