# Latest

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

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

**Page:** 451

---

## [\[ANN\] NearestCorrelationMatrix.jl v1](https://discourse.julialang.org/t/ann-nearestcorrelationmatrix-jl-v1/112035)

<div class="topic-metadata">

**Author:** [@Alexander\_Knudson](https://discourse.julialang.org/u/Alexander_Knudson)\
**Replies:** 4\
**Last updated:** [March 24, 2024, 7:46pm UTC](https://discourse.julialang.org/t/ann-nearestcorrelationmatrix-jl-v1/112035 "2024-03-24T19:46:32Z")

</div>

NearestCorrelationMatrix.jl is a package that does exactly what the name implies. This library finds the nearest correlation matrix in the Frobenius norm to an input correlation matrix; a problem that is common in financ…

---

## [New package: B+, a 3D OpenGL game framework](https://discourse.julialang.org/t/new-package-b-a-3d-opengl-game-framework/112045)

<div class="topic-metadata">

**Author:** [@heyx3](https://discourse.julialang.org/u/heyx3)\
**Replies:** 0\
**Last updated:** [March 24, 2024, 5:41pm UTC](https://discourse.julialang.org/t/new-package-b-a-3d-opengl-game-framework/112045 "2024-03-24T17:41:14Z")

</div>

The readme goes into detail about everything it offers, as well as example projects. Also check out the open-source game project I started to go with it: GitHub - heyx3/MantleDiver.jl: An open-source game written in J…

---

## [ANN: Documenter 1.0](https://discourse.julialang.org/t/ann-documenter-1-0/103888)

<div class="topic-metadata">

**Author:** [@mortenpi](https://discourse.julialang.org/u/mortenpi)\
**Replies:** 13\
**Last updated:** [March 24, 2024, 6:36pm UTC](https://discourse.julialang.org/t/ann-documenter-1-0/103888 "2024-03-24T18:36:33Z")

</div>

I am very pleased to announce the release of Documenter 1.0. It finally unleashes a bunch of great improvements and excellent contributions that have been “locked up” on master for the past year or so. I am slightly les…

---

## [Python pcolormesh() alternative in JULIA --\`Makie.convert\_arguments\` for the plot type MakieCore.Heatmap and its conversion trait MakieCore.CellGrid() was unsuccessful](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia-makie-convert-arguments-for-the-plot-type-makiecore-heatmap-and-its-conversion-trait-makiecore-cellgrid-was-unsuccessful/111959)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 17\
**Last updated:** [March 24, 2024, 6:00pm UTC](https://discourse.julialang.org/t/python-pcolormesh-alternative-in-julia-makie-convert-arguments-for-the-plot-type-makiecore-heatmap-and-its-conversion-trait-makiecore-cellgrid-was-unsuccessful/111959 "2024-03-24T18:00:40Z")

</div>

I am using x,z as shown below in heatmap() input. I am getting error Makie.convert\_arguments for the plot type MakieCore.Heatmap and its conversion trait MakieCore.CellGrid() was unsuccessful. My code is :point\_down: …

---

## [NN Getting Same Training and Testing Accuracies?](https://discourse.julialang.org/t/nn-getting-same-training-and-testing-accuracies/111952)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 20\
**Last updated:** [March 24, 2024, 5:22pm UTC](https://discourse.julialang.org/t/nn-getting-same-training-and-testing-accuracies/111952 "2024-03-24T17:22:13Z")

</div>

Hi folks, Background: I am having a bit of trouble training a deep neural network. My data is comprised of grayscale images with a dimension of 128x128. For training data, I have 128x128x5116 images and for testing data…

---

## [Makie, how to move \`xlabel\` to the right?](https://discourse.julialang.org/t/makie-how-to-move-xlabel-to-the-right/93793)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 10\
**Last updated:** [March 24, 2024, 5:17pm UTC](https://discourse.julialang.org/t/makie-how-to-move-xlabel-to-the-right/93793 "2024-03-24T17:17:00Z")

</div>

For example: the X \[GeV\]

---

## [Performance of persistent variables](https://discourse.julialang.org/t/performance-of-persistent-variables/112044)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 0\
**Last updated:** [March 24, 2024, 4:33pm UTC](https://discourse.julialang.org/t/performance-of-persistent-variables/112044 "2024-03-24T16:33:09Z")

</div>

Hello, I have a simple toy example in which I compare two methods of creating persistent variables. In my case, both methods exhibit identical performance. Are there any differences to consider regarding safety, compil…

---

## [Optimize Monte Carlo Simulation](https://discourse.julialang.org/t/optimize-monte-carlo-simulation/112032)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 4\
**Last updated:** [March 24, 2024, 3:15pm UTC](https://discourse.julialang.org/t/optimize-monte-carlo-simulation/112032 "2024-03-24T15:15:23Z")

</div>

I have a monte carlo simulation that runs in an external program that I can call using julia. I would like to optiize the simulation result with respect to parameters in the simulation input. The values I get out of it,…

---

## [Call different functions depending on input](https://discourse.julialang.org/t/call-different-functions-depending-on-input/112042)

<div class="topic-metadata">

**Author:** [@phyxmeow](https://discourse.julialang.org/u/phyxmeow)\
**Replies:** 3\
**Last updated:** [March 24, 2024, 2:55pm UTC](https://discourse.julialang.org/t/call-different-functions-depending-on-input/112042 "2024-03-24T14:55:45Z")

</div>

Hello! I’m writing some code including call different functions depend on whether the input string match certain pattern. Currently I’m writing code like this: struct MyOperation fun::Symbol re::Regex end const…

---

## [Why does sortperm! allocate here?](https://discourse.julialang.org/t/why-does-sortperm-allocate-here/112028)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [March 24, 2024, 1:47pm UTC](https://discourse.julialang.org/t/why-does-sortperm-allocate-here/112028 "2024-03-24T13:47:39Z")

</div>

Hello! I think I am missing something really simple, I just don’t get why allocations occur, when I have preallocated index array. function main() Cartesians = Vector{CartesianIndex{2}}(undef, 100) SortedInd…

---

## [How to place a menu in GLMakie?](https://discourse.julialang.org/t/how-to-place-a-menu-in-glmakie/112025)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 7\
**Last updated:** [March 24, 2024, 11:56am UTC](https://discourse.julialang.org/t/how-to-place-a-menu-in-glmakie/112025 "2024-03-24T11:56:41Z")

</div>

I have the following code: using GLMakie const running = Observable(false) fig = Figure(size=(400, 400), backgroundcolor=RGBf(0.7, 0.8, 1)) sub\_fig = fig\[1,1\] fig\[2, 1\] = buttongrid = GridLayout(tellwidth=true) btn\_…

---

## [Using TimerOutputs, registers allocs, where @allocated does not?](https://discourse.julialang.org/t/using-timeroutputs-registers-allocs-where-allocated-does-not/111995)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 2\
**Last updated:** [March 24, 2024, 11:17am UTC](https://discourse.julialang.org/t/using-timeroutputs-registers-allocs-where-allocated-does-not/111995 "2024-03-24T11:17:44Z")

</div>

Hello! I have a bit of a complex code, where I use TimerOutputs to track progress. I have the following code bit: In Line 343 I am updating the position variable. Position, Velocity, Acceleration are SVectors inside…

---

## [Using findfirst with for multiple values and columns in a Dataframe?](https://discourse.julialang.org/t/using-findfirst-with-for-multiple-values-and-columns-in-a-dataframe/111953)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 21\
**Last updated:** [March 24, 2024, 10:38am UTC](https://discourse.julialang.org/t/using-findfirst-with-for-multiple-values-and-columns-in-a-dataframe/111953 "2024-03-24T10:38:18Z")

</div>

Is there a way to extend the findfirst(==(val1), df.col1) for more than one value over more than column in a dataframe. Something like findfirst(==(\[ val1, val2\]) , \[df.col1, df.col2\]) I tried findfirst(row -\> (row\[1…

---

## [How do you speed up the linear sparse solver in Zygote?](https://discourse.julialang.org/t/how-do-you-speed-up-the-linear-sparse-solver-in-zygote/111801)

<div class="topic-metadata">

**Author:** [@ToPo](https://discourse.julialang.org/u/ToPo)\
**Replies:** 44\
**Last updated:** [March 24, 2024, 7:18am UTC](https://discourse.julialang.org/t/how-do-you-speed-up-the-linear-sparse-solver-in-zygote/111801 "2024-03-24T07:18:47Z")

</div>

I have confirmed that the standard Julia solver (backslash) can be used in the automatic differentiation of Zygote. Below is a sample program. (This program calculates the gradient.) However, while the forward computat…

---

## [Any Way to Track Variable Conversion When Writing JuMP Models to File?](https://discourse.julialang.org/t/any-way-to-track-variable-conversion-when-writing-jump-models-to-file/111996)

<div class="topic-metadata">

**Author:** [@rbassett3](https://discourse.julialang.org/u/rbassett3)\
**Replies:** 4\
**Last updated:** [March 24, 2024, 3:50am UTC](https://discourse.julialang.org/t/any-way-to-track-variable-conversion-when-writing-jump-models-to-file/111996 "2024-03-24T03:50:04Z")

</div>

I’ve created a JuMP model, which I wrote to conic benchmark format (cbf) and then solved with a solver that has a cbf input mechanism but isn’t a solver utilized in JuMP. I now have the solution to the cbf format as per…

---

## [Term for minor revisions breaking dependents due to non-API usage?](https://discourse.julialang.org/t/term-for-minor-revisions-breaking-dependents-due-to-non-api-usage/112006)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 4\
**Last updated:** [March 24, 2024, 12:30am UTC](https://discourse.julialang.org/t/term-for-minor-revisions-breaking-dependents-due-to-non-api-usage/112006 "2024-03-24T00:30:33Z")

</div>

When a patch or minor revision occurs for a v1+ dependency, we expect our project to keep working. If every package only used public API from dependencies, that is easily true. However, some packages intentionally access…

---

## [Modeling deformation in Julia](https://discourse.julialang.org/t/modeling-deformation-in-julia/111941)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 4\
**Last updated:** [March 23, 2024, 11:58pm UTC](https://discourse.julialang.org/t/modeling-deformation-in-julia/111941 "2024-03-23T23:58:50Z")

</div>

Hi everyone, a general question here about Finite elements in Julia. I am trying to do something rather “simple”. Imaging a large body (3D), fully constrained. In side there is a fault/fracture/weak zone inside. There …

---

## [Deepcopy() of Dict has same mallocs as deepcopy() of Vector inside mutable Struct](https://discourse.julialang.org/t/deepcopy-of-dict-has-same-mallocs-as-deepcopy-of-vector-inside-mutable-struct/53420)

<div class="topic-metadata">

**Author:** [@bsuwal](https://discourse.julialang.org/u/bsuwal)\
**Replies:** 1\
**Last updated:** [March 23, 2024, 11:03pm UTC](https://discourse.julialang.org/t/deepcopy-of-dict-has-same-mallocs-as-deepcopy-of-vector-inside-mutable-struct/53420 "2024-03-23T23:03:22Z")

</div>

I had a struct that had a Dict as one of its fields. I deepcopy the struct objects a lot, and that was the bottleneck in the program. I then realized that I could replace the Dict with a Vector, which I know has a smalle…

---

## [Nice macro errors with JuliaSyntax](https://discourse.julialang.org/t/nice-macro-errors-with-juliasyntax/112017)

<div class="topic-metadata">

**Author:** [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Replies:** 2\
**Last updated:** [March 23, 2024, 9:32pm UTC](https://discourse.julialang.org/t/nice-macro-errors-with-juliasyntax/112017 "2024-03-23T21:32:08Z")

</div>

Now with the introduce of JuliaSyntax in newer versions of julia, we get much more friendly syntax error messages. For example: julia\> foo () ERROR: ParseError: # Error @ REPL\[28\]:1:4 foo () # ╙ ── whitespace is not al…

---

## [DimensionMismatch error in creating semidefinite constraint in JuMP.jl](https://discourse.julialang.org/t/dimensionmismatch-error-in-creating-semidefinite-constraint-in-jump-jl/111969)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [March 23, 2024, 8:46pm UTC](https://discourse.julialang.org/t/dimensionmismatch-error-in-creating-semidefinite-constraint-in-jump-jl/111969 "2024-03-23T20:46:19Z")

</div>

Dear all, I have encountered a somewhat unintuitive error in creating the following semidefinte constraint in JuMP.jl. Sample code is as follows: # Create a JuMP model model = Model(optimizer\_with\_attributes(Mosek.Opt…

---

## [Reading ROOT file with Branches](https://discourse.julialang.org/t/reading-root-file-with-branches/112014)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 3\
**Last updated:** [March 23, 2024, 8:27pm UTC](https://discourse.julialang.org/t/reading-root-file-with-branches/112014 "2024-03-23T20:27:16Z")

</div>

I have a root file with a tree, branches and leaves, like this: When I try to read it like using UnROOT like this: using UnROOT f = ROOTFile("out\_files/pienu00000-00.root") tree = LazyTree(f,"sim") I get a bounds …

---

## [How to build typed StructArrays from NTuples](https://discourse.julialang.org/t/how-to-build-typed-structarrays-from-ntuples/112023)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 0\
**Last updated:** [March 23, 2024, 4:34pm UTC](https://discourse.julialang.org/t/how-to-build-typed-structarrays-from-ntuples/112023 "2024-03-23T16:34:52Z")

</div>

In the documentation of StructArrays, the Advanced techniques · StructArrays section describes how custom structs could be passed to a StructArray constructor by overloading component, createinstance and staticschema. H…

---

## [How to construct a \`Mesh\` from faces containing \`TriangleFace\` and \`QuadFace\` with GeometryBasics](https://discourse.julialang.org/t/how-to-construct-a-mesh-from-faces-containing-triangleface-and-quadface-with-geometrybasics/112001)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 5\
**Last updated:** [March 23, 2024, 3:38pm UTC](https://discourse.julialang.org/t/how-to-construct-a-mesh-from-faces-containing-triangleface-and-quadface-with-geometrybasics/112001 "2024-03-23T15:38:17Z")

</div>

I am trying to do read/write of a simple Wavefront .obj file without triangulation. However, the following will result in an error. julia\> using GeometryBasics # v0.4.10 julia\> vertices = Point3f\[(0, 0, 0), (1, 0, 0),…

---

## [Julians, are you interested in wargame?](https://discourse.julialang.org/t/julians-are-you-interested-in-wargame/106394)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [March 23, 2024, 3:37pm UTC](https://discourse.julialang.org/t/julians-are-you-interested-in-wargame/106394 "2024-03-23T15:37:50Z")

</div>

After several ideas and considering the viability of finishing in the short term, I’m planning to make my next package as a hex-based sci-fi wargame (so I can get used to Gamezero or other Julia game library). Are you in…

---

## [Surprising type result with @](https://discourse.julialang.org/t/surprising-type-result-with/112012)

<div class="topic-metadata">

**Author:** [@CM1](https://discourse.julialang.org/u/CM1)\
**Replies:** 5\
**Last updated:** [March 23, 2024, 11:18am UTC](https://discourse.julialang.org/t/surprising-type-result-with/112012 "2024-03-23T11:18:36Z")

</div>

Hi everyone, I am quite confused about the resulting types in below snippet: N = 5 T = Float32 # edit, forgot to mention these variables μ = rand(T, N\_states, 1) σ = rand(T, N\_states, 1) E₀ = fill(T(0.5), N, 1) …

---

## [Error while using Optimization.jl](https://discourse.julialang.org/t/error-while-using-optimization-jl/112002)

<div class="topic-metadata">

**Author:** [@npsasikumar](https://discourse.julialang.org/u/npsasikumar)\
**Replies:** 7\
**Last updated:** [March 23, 2024, 9:29am UTC](https://discourse.julialang.org/t/error-while-using-optimization-jl/112002 "2024-03-23T09:29:45Z")

</div>

function errorfunction(data, p1) \*\* ddprob, ddprob\_response = data\*\* \*\* error = 0.0\*\* \*\* for i in 1:length(ddprob)\*\* \*\* error += sum(abs2, ddprob\_response\[i\]\[:\] - ddprob\[i\]\[:\])\*\* \*\* end\*\* \*\* retu…

---

## [Convert a tuple of matrix Float64 data to Float32](https://discourse.julialang.org/t/convert-a-tuple-of-matrix-float64-data-to-float32/112005)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 1\
**Last updated:** [March 23, 2024, 4:34am UTC](https://discourse.julialang.org/t/convert-a-tuple-of-matrix-float64-data-to-float32/112005 "2024-03-23T04:34:10Z")

</div>

I have a tuple of matrices data of type Float64 . But when i want to convert it to Float32 it gives error How to convert a tuple of matrix Float64 data to Float32 ?

---

## [Github actions deprecated](https://discourse.julialang.org/t/github-actions-deprecated/111630)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [March 23, 2024, 2:47am UTC](https://discourse.julialang.org/t/github-actions-deprecated/111630 "2024-03-23T02:47:23Z")

</div>

I get the following warnings: Julia 1 - ubuntu-latest - x64 - push Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, julia-actions/setup-julia@v1, actions/ca…

---

## [Formatting code examples in text with Franklin.jl](https://discourse.julialang.org/t/formatting-code-examples-in-text-with-franklin-jl/111960)

<div class="topic-metadata">

**Author:** [@mnemnion](https://discourse.julialang.org/u/mnemnion)\
**Replies:** 5\
**Last updated:** [March 23, 2024, 1:36am UTC](https://discourse.julialang.org/t/formatting-code-examples-in-text-with-franklin-jl/111960 "2024-03-23T01:36:16Z")

</div>

This looks great! What system are you using to write it, if you don’t mind my asking? I like the tabbed code bars in particular, that’s a rather clear way to illustrate small differences in example code.

---

## [\[ANN\] MultiPrecisionArrays.jl: Algorithms and data structures for iterative refinement](https://discourse.julialang.org/t/ann-multiprecisionarrays-jl-algorithms-and-data-structures-for-iterative-refinement/111993)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 0\
**Last updated:** [March 22, 2024, 8:35pm UTC](https://discourse.julialang.org/t/ann-multiprecisionarrays-jl-algorithms-and-data-structures-for-iterative-refinement/111993 "2024-03-22T20:35:35Z")

</div>

I just tagged v0.1.0 of MultiPrecisionArrays.jl. This package provides data structures and solvers for several variants of iterative refinement (IR) for solving linear systems A x= b. IR reduces matrix factorization c…

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

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