# Latest

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

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

**Page:** 299

---

## [ForwardDiff with Matrix of Vector as input argument](https://discourse.julialang.org/t/forwarddiff-with-matrix-of-vector-as-input-argument/121049)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 37\
**Last updated:** [October 17, 2024, 6:52am UTC](https://discourse.julialang.org/t/forwarddiff-with-matrix-of-vector-as-input-argument/121049 "2024-10-17T06:52:23Z")

</div>

Greetings. Consider the small function function foo(v) return \[v; v\] end Then the following works v0 = \[1;1\] out = ForwardDiff.jacobian(v -\> foo(v), v0) The following works as well A0 = \[1 2; 3 4\] out = Forwar…

---

## [Integral over an irregular triangle mesh](https://discourse.julialang.org/t/integral-over-an-irregular-triangle-mesh/121298)

<div class="topic-metadata">

**Author:** [@sofiane](https://discourse.julialang.org/u/sofiane)\
**Replies:** 10\
**Last updated:** [October 17, 2024, 6:10am UTC](https://discourse.julialang.org/t/integral-over-an-irregular-triangle-mesh/121298 "2024-10-17T06:10:53Z")

</div>

Hi everyone, lately I’ve been using Julia to solve a stochastic partial differential equation for a 2D problem. I used a refined triangular mesh for my mesh generation, but I encountered some issues while implementing my…

---

## [Julia JuMP model scope](https://discourse.julialang.org/t/julia-jump-model-scope/121400)

<div class="topic-metadata">

**Author:** [@cby](https://discourse.julialang.org/u/cby)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 11:29pm UTC](https://discourse.julialang.org/t/julia-jump-model-scope/121400 "2024-10-16T23:29:43Z")

</div>

I want to define a function that creates a JuMP model that then calls a function to add a set of additional constraints to that model. That set of constraints would be the same across a number of different models. The f…

---

## [Different solution if solving a differential equation in chunks or for full time at once](https://discourse.julialang.org/t/different-solution-if-solving-a-differential-equation-in-chunks-or-for-full-time-at-once/121351)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 5\
**Last updated:** [October 16, 2024, 9:56pm UTC](https://discourse.julialang.org/t/different-solution-if-solving-a-differential-equation-in-chunks-or-for-full-time-at-once/121351 "2024-10-16T21:56:30Z")

</div>

Hi! I’m trying a simulate an orbit in the chaotic 3 body dynamics, and perform two different simulations: one for full time (0, nT) where n is an integer and T is the time period of the orbit. On the other hand, I also p…

---

## [Documenting identical methods: unexpected change to @doc in 1.11.0](https://discourse.julialang.org/t/documenting-identical-methods-unexpected-change-to-doc-in-1-11-0/121309)

<div class="topic-metadata">

**Author:** [@brainandforce](https://discourse.julialang.org/u/brainandforce)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 9:14pm UTC](https://discourse.julialang.org/t/documenting-identical-methods-unexpected-change-to-doc-in-1-11-0/121309 "2024-10-16T21:14:05Z")

</div>

In CliffordNumbers.jl, Base.reverse implements the reverse operation on a Clifford number or indexing object (BitIndex). For convenience, I’ve also overloaded the adjoint operator '. Because the documentation for adjoin…

---

## [Makie outputs nothing and is sensitive to some argument changes](https://discourse.julialang.org/t/makie-outputs-nothing-and-is-sensitive-to-some-argument-changes/121348)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 10\
**Last updated:** [October 16, 2024, 8:13pm UTC](https://discourse.julialang.org/t/makie-outputs-nothing-and-is-sensitive-to-some-argument-changes/121348 "2024-10-16T20:13:40Z")

</div>

Hello, I’m trying to use CairoMakie to plot some data, but there is no output or error message for my plotting. I have tried my best to reduce my problem to a MWE, but since I’m working with a particular set of data, th…

---

## [How to get BenchmarkTools times in the same unit?](https://discourse.julialang.org/t/how-to-get-benchmarktools-times-in-the-same-unit/121395)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 7:30pm UTC](https://discourse.julialang.org/t/how-to-get-benchmarktools-times-in-the-same-unit/121395 "2024-10-16T19:30:56Z")

</div>

I use BenchmarkTools like this to save and compare performance: using BenchmarkTools b = @benchmark sum(0:2:1\_000\_000) t = sum(b.times)/length(b.times) println(t) The issue is that for some functions it returns times i…

---

## [Julia v1.11.1 has been released](https://discourse.julialang.org/t/julia-v1-11-1-has-been-released/121398)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 0\
**Last updated:** [October 16, 2024, 7:29pm UTC](https://discourse.julialang.org/t/julia-v1-11-1-has-been-released/121398 "2024-10-16T19:29:55Z")

</div>

Julia version 1.11.1, the first patch release in the 1.11 series of releases, is now available. Binaries are available via JuliaUp and at https://julialang.org/downloads/ for macOS (Intel and M-series processors), Window…

---

## [Gurobi fails to precompile](https://discourse.julialang.org/t/gurobi-fails-to-precompile/121198)

<div class="topic-metadata">

**Author:** [@bjhamli](https://discourse.julialang.org/u/bjhamli)\
**Replies:** 5\
**Last updated:** [October 16, 2024, 1:45pm UTC](https://discourse.julialang.org/t/gurobi-fails-to-precompile/121198 "2024-10-16T13:45:18Z")

</div>

I am trying to run a file, but when I try to run the code Gurobi fails to precompile. The error output is at the end of the post. I have tried the suggested fix in the output: using Pkg; Pkg.instantiate() but I still r…

---

## [Parallelized calls to Optim.optimize use the same number of threads as a single threaded call](https://discourse.julialang.org/t/parallelized-calls-to-optim-optimize-use-the-same-number-of-threads-as-a-single-threaded-call/121388)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 4:56pm UTC](https://discourse.julialang.org/t/parallelized-calls-to-optim-optimize-use-the-same-number-of-threads-as-a-single-threaded-call/121388 "2024-10-16T16:56:18Z")

</div>

To investigate how sample size affects uncertainty in parameter inference, I do something like: Θ\_example = something #Θ is a vector of the parameters I'm trying to infer Θvec = zeros(numSamples, size(Θ\_example)) for …

---

## [What information does extended trace give in nlsolve jl](https://discourse.julialang.org/t/what-information-does-extended-trace-give-in-nlsolve-jl/121391)

<div class="topic-metadata">

**Author:** [@usaer](https://discourse.julialang.org/u/usaer)\
**Replies:** 0\
**Last updated:** [October 16, 2024, 4:40pm UTC](https://discourse.julialang.org/t/what-information-does-extended-trace-give-in-nlsolve-jl/121391 "2024-10-16T16:40:11Z")

</div>

Hi, I am interested in what info does extended trace give in NLsolve.jl. A particular trace reads as Iter f(x) inf-norm Step 2-norm ------ -------------- -------------- 0 1.000000e-01 …

---

## [VSCode & local image in markdown](https://discourse.julialang.org/t/vscode-local-image-in-markdown/121291)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 3:31pm UTC](https://discourse.julialang.org/t/vscode-local-image-in-markdown/121291 "2024-10-16T15:31:48Z")

</div>

I asked about this a year ago, but there was not really a solution to my problem… I’m trying to insert an image into a markdown cell of a Jupyter Notebook in VSCode. The following code does not work, for some weird reas…

---

## [Literate.jl release announcements](https://discourse.julialang.org/t/literate-jl-release-announcements/112923)

<div class="topic-metadata">

**Author:** [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 2:39pm UTC](https://discourse.julialang.org/t/literate-jl-release-announcements/112923 "2024-10-16T14:39:59Z")

</div>

Instead of reviving the 6 year old announcement thread I thought it better to start a new topic for Literate.jl release announcements. Note that all new features, changes, and bugfixes are documented in CHANGELOG.md so …

---

## [Capture error from include\_string](https://discourse.julialang.org/t/capture-error-from-include-string/121385)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 2:37pm UTC](https://discourse.julialang.org/t/capture-error-from-include-string/121385 "2024-10-16T14:37:30Z")

</div>

Consider my\_e = try include\_string(Main, "throw(ArgumentError(\\"test\\"))") catch e e end The exercise is to extract the ArgumentError("test") from my\_e using public API. Is this possible? Currently it is wrapp…

---

## [Incrementing AtomicMemory{SVector}](https://discourse.julialang.org/t/incrementing-atomicmemory-svector/121378)

<div class="topic-metadata">

**Author:** [@tverho](https://discourse.julialang.org/u/tverho)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 2:06pm UTC](https://discourse.julialang.org/t/incrementing-atomicmemory-svector/121378 "2024-10-16T14:06:58Z")

</div>

I’m trying to use the new \`AtomicMemory in 1.11 to increment entries of a vector in an atomic way. However, the following example hangs: using StaticArrays mem = AtomicMemory{SVector{2,Float64}}(undef, 10) # Initialize…

---

## [Jacobian&vectors in Zygote](https://discourse.julialang.org/t/jacobian-vectors-in-zygote/121381)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 3\
**Last updated:** [October 16, 2024, 1:44pm UTC](https://discourse.julialang.org/t/jacobian-vectors-in-zygote/121381 "2024-10-16T13:44:33Z")

</div>

I have a function with three inputs and two outputs. The first argument is a vector, the two others are scalars. The function is built from smaller functions. I want to get derivatives of the composite function with resp…

---

## [Mutating a StructArray without allocation](https://discourse.julialang.org/t/mutating-a-structarray-without-allocation/121311)

<div class="topic-metadata">

**Author:** [@prconlin](https://discourse.julialang.org/u/prconlin)\
**Replies:** 5\
**Last updated:** [October 16, 2024, 1:44pm UTC](https://discourse.julialang.org/t/mutating-a-structarray-without-allocation/121311 "2024-10-16T13:44:26Z")

</div>

Hello, I’m trying to use StructArrays.jl as a fast, convenient solution for working with coordinate data. But I’m having difficulty operating on StructArrays in the way I had hoped I could. Here is a MWE of what I’m t…

---

## [Why does Julia have multiple ways to define functions?](https://discourse.julialang.org/t/why-does-julia-have-multiple-ways-to-define-functions/102424)

<div class="topic-metadata">

**Author:** [@hatmatrix](https://discourse.julialang.org/u/hatmatrix)\
**Replies:** 24\
**Last updated:** [October 16, 2024, 12:47pm UTC](https://discourse.julialang.org/t/why-does-julia-have-multiple-ways-to-define-functions/102424 "2024-10-16T12:47:23Z")

</div>

The docs present at least three ways: the standard form, “compact” form, anonymous form, etc. Then there are the do blocks… In that you can assign the anonymous function to a symbol, the compact form seems redundant? Th…

---

## [How to splice two separate Chain into one](https://discourse.julialang.org/t/how-to-splice-two-separate-chain-into-one/121357)

<div class="topic-metadata">

**Author:** [@Yaozhong\_Liu](https://discourse.julialang.org/u/Yaozhong_Liu)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 5:58am UTC](https://discourse.julialang.org/t/how-to-splice-two-separate-chain-into-one/121357 "2024-10-16T05:58:03Z")

</div>

Hi. I now have two chains. I want to splice them. I know function Parallel(+) can do that. But I don’t expect to get the sum. Instead, I expect to get them end to end. For example, Chain1 has 2 outputs:1,2. Chain2 has…

---

## [Makie: how to superpose figure on top of other figures?](https://discourse.julialang.org/t/makie-how-to-superpose-figure-on-top-of-other-figures/121374)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 12:13pm UTC](https://discourse.julialang.org/t/makie-how-to-superpose-figure-on-top-of-other-figures/121374 "2024-10-16T12:13:10Z")

</div>

I would like to plot a Legend figure on top of other figures, but the axis’ of the background figures emerges on top. How can I translate! the Legend figure to come out on top of everything ? E.g. let fig = Figure() …

---

## [Unexpected performance outcome. Does accessing struct members cause allocation?](https://discourse.julialang.org/t/unexpected-performance-outcome-does-accessing-struct-members-cause-allocation/121330)

<div class="topic-metadata">

**Author:** [@curious](https://discourse.julialang.org/u/curious)\
**Replies:** 18\
**Last updated:** [October 16, 2024, 11:57am UTC](https://discourse.julialang.org/t/unexpected-performance-outcome-does-accessing-struct-members-cause-allocation/121330 "2024-10-16T11:57:40Z")

</div>

Hello, I am trying to understand what affects the performance of code in Julia. Please see below for three functions combo\_with\_max\_sum, combo\_with\_max\_sum\_2 and combo\_with\_max\_sum\_3. I would have expected version 2…

---

## [Best practices for local exploratory data analysis](https://discourse.julialang.org/t/best-practices-for-local-exploratory-data-analysis/74520)

<div class="topic-metadata">

**Author:** [@danvinci](https://discourse.julialang.org/u/danvinci)\
**Replies:** 15\
**Last updated:** [October 16, 2024, 11:55am UTC](https://discourse.julialang.org/t/best-practices-for-local-exploratory-data-analysis/74520 "2024-10-16T11:55:52Z")

</div>

Hi! I’m trying to come up with a way of handling a relatively large volume of data for my laptop (~2GB worth of CSVs), and I’m not 100% sure I’m bumping into RAM limitations, Pluto limitations, limitations of available …

---

## [Vector/array and boolean mask using logic operators](https://discourse.julialang.org/t/vector-array-and-boolean-mask-using-logic-operators/121369)

<div class="topic-metadata">

**Author:** [@Ju\_ska](https://discourse.julialang.org/u/Ju_ska)\
**Replies:** 4\
**Last updated:** [October 16, 2024, 10:33am UTC](https://discourse.julialang.org/t/vector-array-and-boolean-mask-using-logic-operators/121369 "2024-10-16T10:33:58Z")

</div>

Hi, I would like to do the same thing as in Python: import numpy as np arr=np.array(\[1,2,3,4,5,6\]) mask=(arr\<3)|(arr\>=4) which gives as result array(\[ True, True, False, True, True, True\]) I tried stuff in Juli…

---

## [How to dynamically assign unique names to models in a loop with @named in ModelingToolkit](https://discourse.julialang.org/t/how-to-dynamically-assign-unique-names-to-models-in-a-loop-with-named-in-modelingtoolkit/121367)

<div class="topic-metadata">

**Author:** [@DanaO](https://discourse.julialang.org/u/DanaO)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 10:20am UTC](https://discourse.julialang.org/t/how-to-dynamically-assign-unique-names-to-models-in-a-loop-with-named-in-modelingtoolkit/121367 "2024-10-16T10:20:14Z")

</div>

Hi everyone, I’m working on a simulation of a gas network using ModelingToolkit in Julia, where I create multiple Pipe models inside a loop. My issue is that I need to assign unique names to each pipe created in the loo…

---

## [Integration with C++ : “runtime” compilation?](https://discourse.julialang.org/t/integration-with-c-runtime-compilation/121337)

<div class="topic-metadata">

**Author:** [@Oblomov](https://discourse.julialang.org/u/Oblomov)\
**Replies:** 6\
**Last updated:** [October 16, 2024, 10:10am UTC](https://discourse.julialang.org/t/integration-with-c-runtime-compilation/121337 "2024-10-16T10:10:04Z")

</div>

Hello all, we have a large C++ scientific codebase that offers a large variety of formulations to the end user. This is implemented through heavy use of template metaprogramming to keep the code compact while avoiding t…

---

## [UndefVarError: orientation not defined](https://discourse.julialang.org/t/undefvarerror-orientation-not-defined/121364)

<div class="topic-metadata">

**Author:** [@jay\_Gao](https://discourse.julialang.org/u/jay_Gao)\
**Replies:** 6\
**Last updated:** [October 16, 2024, 9:43am UTC](https://discourse.julialang.org/t/undefvarerror-orientation-not-defined/121364 "2024-10-16T09:43:43Z")

</div>

I am getting this error: UndefVarError: orientation not defined Stacktrace: \[1\] overdub @ .\\In\[31\]:4 \[inlined\] \[2\] overdub(::Cassette.Context{MeshCat.var"##AnimationCtx#Name", Tuple{MeshCat.Animation, Int64}, N…

---

## [Convert string to equation (fast)](https://discourse.julialang.org/t/convert-string-to-equation-fast/121259)

<div class="topic-metadata">

**Author:** [@Daniel\_Reimeir](https://discourse.julialang.org/u/Daniel_Reimeir)\
**Replies:** 12\
**Last updated:** [October 16, 2024, 9:19am UTC](https://discourse.julialang.org/t/convert-string-to-equation-fast/121259 "2024-10-16T09:19:35Z")

</div>

Hi, I’m pretty new to the Julia language and i have a problem with my program. Just a short background, I am a engineering student and my program shall be a Multibody simulation tool. I have already solved the mechanics…

---

## [Announcing Genie Builder, a no-code plugin to quickly build web GUIs & dashboards](https://discourse.julialang.org/t/announcing-genie-builder-a-no-code-plugin-to-quickly-build-web-guis-dashboards/84643)

<div class="topic-metadata">

**Author:** [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Replies:** 39\
**Last updated:** [October 16, 2024, 8:21am UTC](https://discourse.julialang.org/t/announcing-genie-builder-a-no-code-plugin-to-quickly-build-web-guis-dashboards/84643 "2024-10-16T08:21:15Z")

</div>

Hi! I’m very excited to share that we’ve just released Genie Builder (beta), a free VSCode plugin built on top of Genie Framework that helps you build interactive web GUIs for your Genie/Julia apps without writing code.…

---

## [Standardization for distributing Julia applications](https://discourse.julialang.org/t/standardization-for-distributing-julia-applications/121365)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 8:10am UTC](https://discourse.julialang.org/t/standardization-for-distributing-julia-applications/121365 "2024-10-16T08:10:38Z")

</div>

Other programming languages (Ruby, Python, Go, Rust) have their de facto standard way to install applications (executables) but as far as I know, Julia doesn’t have it. I know frequent booting and exiting of Julia interp…

---

## [SDP constraints in nonlinear programm](https://discourse.julialang.org/t/sdp-constraints-in-nonlinear-programm/121283)

<div class="topic-metadata">

**Author:** [@Tbr2](https://discourse.julialang.org/u/Tbr2)\
**Replies:** 11\
**Last updated:** [October 16, 2024, 7:55am UTC](https://discourse.julialang.org/t/sdp-constraints-in-nonlinear-programm/121283 "2024-10-16T07:55:09Z")

</div>

Hello, I have quite experience with Yalmip, cvxpy, casadi, GAMS, etc and I am now thinking about moving towards Julia and JuMP. I have an important question for me, that I could not find in the documentation where I jus…

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

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