# Latest

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

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

**Page:** 531

---

## [How to combine two gridded data?](https://discourse.julialang.org/t/how-to-combine-two-gridded-data/107621)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 5:07pm UTC](https://discourse.julialang.org/t/how-to-combine-two-gridded-data/107621 "2023-12-14T17:07:42Z")

</div>

I have a variable A with the size of 33x168x360. The 2nd dimension is latitude with a range of -77.5 to 89.5. My goal is to expand it to the size of 33x180x360, with the latitude range between -89.5 to 89.5 prefilled wit…

---

## [Obtaining Step Norm in KNITRO.jl](https://discourse.julialang.org/t/obtaining-step-norm-in-knitro-jl/107577)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 4:53pm UTC](https://discourse.julialang.org/t/obtaining-step-norm-in-knitro-jl/107577 "2023-12-14T16:53:06Z")

</div>

Hello, From a previous post (Computing common components in KNITRO callbacks), I am working on a creating an algorithm that uses the KNITRO.jl solver. I am in the process of trying to report data as I run experiments o…

---

## [VSCode REPL Namespaces/Modules](https://discourse.julialang.org/t/vscode-repl-namespaces-modules/103170)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 6\
**Last updated:** [December 14, 2023, 3:43pm UTC](https://discourse.julialang.org/t/vscode-repl-namespaces-modules/103170 "2023-12-14T15:43:29Z")

</div>

How is this still happening? How are you living with this? I expected the REPL module switching released with Julia 1.9 to fix this issue. (DataFrames) julia\> x = 3 # Ctrl + Enter 3 (DataFrames) julia\> x # Typed in…

---

## [What functions are visible in REPL?](https://discourse.julialang.org/t/what-functions-are-visible-in-repl/107612)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 3:30pm UTC](https://discourse.julialang.org/t/what-functions-are-visible-in-repl/107612 "2023-12-14T15:30:45Z")

</div>

I am using some people’s package. I tried to look up some function in the REPL with ?. But it turned that the function could not be found. The function is definitely there in the package. Is it because the function is …

---

## [Boolean Indexing in dataframes](https://discourse.julialang.org/t/boolean-indexing-in-dataframes/99692)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 2:17pm UTC](https://discourse.julialang.org/t/boolean-indexing-in-dataframes/99692 "2023-12-14T14:17:45Z")

</div>

@bkamins How about sampling the dataframe by boolean values. I mean take every column for the row, the the boolean is true? Like this example: julia\> df = DataFrame(rand(3,3), :auto) 3×3 DataFrame Row │ x1 x2…

---

## [Compile-time vs run-time](https://discourse.julialang.org/t/compile-time-vs-run-time/107606)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 1:26pm UTC](https://discourse.julialang.org/t/compile-time-vs-run-time/107606 "2023-12-14T13:26:27Z")

</div>

I saw people use ‘Val’ in their codes. help?\> ntuple search: ntuple NTuple NamedTuple @NamedTuple UnitUpperTriangular ntuple(f::Function, n::Integer) Create a tuple of length n, computing each element as f(i), whe…

---

## [\[ANN\] Asciicast.jl](https://discourse.julialang.org/t/ann-asciicast-jl/107529)

<div class="topic-metadata">

**Author:** [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Replies:** 8\
**Last updated:** [December 14, 2023, 12:26pm UTC](https://discourse.julialang.org/t/ann-asciicast-jl/107529 "2023-12-14T12:26:14Z")

</div>

Asciicast.jl makes it easy to include and maintain animated gifs of Julia REPL sessions in documents (like package READMEs) and in documentation. With Asciicast, in Documenter docs, you can use @cast blocks similar to…

---

## [UndefVarError when using \`EnsembleDistributed()\` to solve \`ODEProblem\`](https://discourse.julialang.org/t/undefvarerror-when-using-ensembledistributed-to-solve-odeproblem/107434)

<div class="topic-metadata">

**Author:** [@johannesnauta](https://discourse.julialang.org/u/johannesnauta)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 10:34am UTC](https://discourse.julialang.org/t/undefvarerror-when-using-ensembledistributed-to-solve-odeproblem/107434 "2023-12-14T10:34:22Z")

</div>

I am trying to solve relatively large systems of coupled ODEs, but I cannot seem to solve an EnsembleProblem(..) when the ODEProblem is generated using the @reaction\_network macro of Catalyst.jl (or, more specifically, w…

---

## [Parallelize double nested loop using Dagger for Montecarlo](https://discourse.julialang.org/t/parallelize-double-nested-loop-using-dagger-for-montecarlo/107493)

<div class="topic-metadata">

**Author:** [@matinator](https://discourse.julialang.org/u/matinator)\
**Replies:** 5\
**Last updated:** [December 14, 2023, 9:59am UTC](https://discourse.julialang.org/t/parallelize-double-nested-loop-using-dagger-for-montecarlo/107493 "2023-12-14T09:59:34Z")

</div>

Hello everyone, I am trying to parallelize this montecarlo function that I have created for measuring an option price using the BlackScholes model and I would like to improve its performance by parallelizing the double …

---

## [Best strategy to choose the number of gc threads on a cluster](https://discourse.julialang.org/t/best-strategy-to-choose-the-number-of-gc-threads-on-a-cluster/107596)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 9:45am UTC](https://discourse.julialang.org/t/best-strategy-to-choose-the-number-of-gc-threads-on-a-cluster/107596 "2023-12-14T09:45:04Z")

</div>

I have a multithreaded code that I am running on a cluster using Julia v1.10, and it allocates many temporary arrays. The computation is quite linear algebra heavy, and I would like to keep freeing memory from time to ti…

---

## [Parallelizing a code when we are evaluating a function for different parameters independently and storing in an array](https://discourse.julialang.org/t/parallelizing-a-code-when-we-are-evaluating-a-function-for-different-parameters-independently-and-storing-in-an-array/107516)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 6\
**Last updated:** [December 14, 2023, 9:06am UTC](https://discourse.julialang.org/t/parallelizing-a-code-when-we-are-evaluating-a-function-for-different-parameters-independently-and-storing-in-an-array/107516 "2023-12-14T09:06:10Z")

</div>

I am working on a problem where we have to evaluate a function at different values of a parameter called t, each evaluation is time consuming and involves a lot of matrix-multiplication and inversion. The rough outline o…

---

## [Tracking dynamical increments du and accompanying variables during a DynamicalSystems run](https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 8:32am UTC](https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558 "2023-12-14T08:32:56Z")

</div>

Hi. I have two things that I want from DynamicalSystems, and I’m not sure how to get them: Is there some way of retrieving the dynamical increment values du during the running of a DynamicalSystem? It would be useful …

---

## [Not seeing speed-up with Dagger.jl. Am I doing something wrong?](https://discourse.julialang.org/t/not-seeing-speed-up-with-dagger-jl-am-i-doing-something-wrong/107440)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 8\
**Last updated:** [December 14, 2023, 8:16am UTC](https://discourse.julialang.org/t/not-seeing-speed-up-with-dagger-jl-am-i-doing-something-wrong/107440 "2023-12-14T08:16:07Z")

</div>

I am setting 8 CPU cores using the following code: using IJulia installkernel("Julia (8 threads)", env=Dict("JULIA\_NUM\_THREADS"=\>"8")) Threads.nthreads() I change the kernel environment of the Jupyter Notebook to th…

---

## [Passing struct by value in static compiling](https://discourse.julialang.org/t/passing-struct-by-value-in-static-compiling/107597)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 5:28am UTC](https://discourse.julialang.org/t/passing-struct-by-value-in-static-compiling/107597 "2023-12-14T05:28:07Z")

</div>

We know in Julia structs are passed by reference, and this is also the case in StaticCompiler.jl: using StaticTools using StaticCompiler struct StudentInfo name::StaticString id::Cint end id(student::StudentI…

---

## [Custom data structure for repeatedly partial sorting constant-size array](https://discourse.julialang.org/t/custom-data-structure-for-repeatedly-partial-sorting-constant-size-array/107594)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 2:10am UTC](https://discourse.julialang.org/t/custom-data-structure-for-repeatedly-partial-sorting-constant-size-array/107594 "2023-12-14T02:10:35Z")

</div>

I have an application where, as a subroutine, I need to (partial) sort a specific n-dimensional vector repeatedly (for n\>10^7). Given initial data x^{(0)} and some perturbation \\epsilon^{(i)} in step i, I want to obtain x…

---

## [I want to use a PriorityQueue equivalent with duplicate keys](https://discourse.julialang.org/t/i-want-to-use-a-priorityqueue-equivalent-with-duplicate-keys/107534)

<div class="topic-metadata">

**Author:** [@Lee\_Phillips](https://discourse.julialang.org/u/Lee_Phillips)\
**Replies:** 4\
**Last updated:** [December 14, 2023, 2:09am UTC](https://discourse.julialang.org/t/i-want-to-use-a-priorityqueue-equivalent-with-duplicate-keys/107534 "2023-12-14T02:09:08Z")

</div>

Hey All I have some code pasted below making use of PriorityQueue from DataStructures package I’d like to store key value pairs in a sorted manner to easily retrieve the lowest key from the set. I need to be able to u…

---

## [Notebook stall when run from dockerimage](https://discourse.julialang.org/t/notebook-stall-when-run-from-dockerimage/107548)

<div class="topic-metadata">

**Author:** [@elcolie](https://discourse.julialang.org/u/elcolie)\
**Replies:** 4\
**Last updated:** [December 14, 2023, 1:22am UTC](https://discourse.julialang.org/t/notebook-stall-when-run-from-dockerimage/107548 "2023-12-14T01:22:51Z")

</div>

Dockerfile FROM jupyter/julia-notebook:latest WORKDIR /my\_folder docker-compose.yml version: '3.7' services: julia: build: context: . dockerfile: Dockerfile volumes: - .folder:/my\_folder…

---

## [Installing Plots](https://discourse.julialang.org/t/installing-plots/107593)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 1\
**Last updated:** [December 14, 2023, 12:31am UTC](https://discourse.julialang.org/t/installing-plots/107593 "2023-12-14T00:31:25Z")

</div>

I tried to install the ‘Plots’ package. But it always failed. (@v1.9) pkg\> add Plots Resolving package versions... Downloaded artifact: GR Downloaded artifact: GR Downloaded artifact: LERC Downloaded artifact…

---

## [Generating random numbers in Julia in different machines](https://discourse.julialang.org/t/generating-random-numbers-in-julia-in-different-machines/107589)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 2\
**Last updated:** [December 13, 2023, 10:50pm UTC](https://discourse.julialang.org/t/generating-random-numbers-in-julia-in-different-machines/107589 "2023-12-13T22:50:24Z")

</div>

Dear all, I want to generate reproductive random numbers in Julia. I have used the code: using Random rng = MersenneTwister(2024); z = round.(100 .+ 200\*rand(rng),digits=3) That’s ok, works very well. However, When …

---

## [Circshift() shifts array in opposite direction to circshift!()](https://discourse.julialang.org/t/circshift-shifts-array-in-opposite-direction-to-circshift/107584)

<div class="topic-metadata">

**Author:** [@LucasMontoya4](https://discourse.julialang.org/u/LucasMontoya4)\
**Replies:** 14\
**Last updated:** [December 13, 2023, 9:46pm UTC](https://discourse.julialang.org/t/circshift-shifts-array-in-opposite-direction-to-circshift/107584 "2023-12-13T21:46:13Z")

</div>

Hi there, I have written the following little code in Julia 1.8 to try to figure out a bug. I’m trying to simulate periodic boundary conditions, and hence using the circshift function. But for some reason, it seems like…

---

## [BinaryBuild: build with a specific version of LLVM and clang](https://discourse.julialang.org/t/binarybuild-build-with-a-specific-version-of-llvm-and-clang/107456)

<div class="topic-metadata">

**Author:** [@grasph](https://discourse.julialang.org/u/grasph)\
**Replies:** 3\
**Last updated:** [December 13, 2023, 9:16pm UTC](https://discourse.julialang.org/t/binarybuild-build-with-a-specific-version-of-llvm-and-clang/107456 "2023-12-13T21:16:42Z")

</div>

Hello, I would like to make the wrapit executable available through the BinaryBuilder facilities. The code (C++) uses LLVM and clang. I can use the corresponding \_jll packages. Nevertheless, I want to fix the version t…

---

## [Pkg extensions backwards compatibility + Aqua = failed test](https://discourse.julialang.org/t/pkg-extensions-backwards-compatibility-aqua-failed-test/107578)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 3\
**Last updated:** [December 13, 2023, 9:13pm UTC](https://discourse.julialang.org/t/pkg-extensions-backwards-compatibility-aqua-failed-test/107578 "2023-12-13T21:13:20Z")

</div>

I have a package that I’m trying to test with Aqua. This package has some extensions that I want to support on older Julia versions. So, as recommended here in the Pkg docs I have the lines if !isdefined(Base, :get\_ex…

---

## [GPU Synchronization Issue - using KernelAbstraction](https://discourse.julialang.org/t/gpu-synchronization-issue-using-kernelabstraction/106601)

<div class="topic-metadata">

**Author:** [@erasedbird](https://discourse.julialang.org/u/erasedbird)\
**Replies:** 5\
**Last updated:** [December 13, 2023, 8:51pm UTC](https://discourse.julialang.org/t/gpu-synchronization-issue-using-kernelabstraction/106601 "2023-12-13T20:51:30Z")

</div>

@synchronize is not working consistently for this function I am trying to write, here is what is happening. This function is supposed to first divide everything in the first column by the topmost element of column 1 (3),…

---

## [Which algorithm does Julia use for matrix QR decomposition?](https://discourse.julialang.org/t/which-algorithm-does-julia-use-for-matrix-qr-decomposition/107566)

<div class="topic-metadata">

**Author:** [@boywithacoin](https://discourse.julialang.org/u/boywithacoin)\
**Replies:** 5\
**Last updated:** [December 13, 2023, 8:04pm UTC](https://discourse.julialang.org/t/which-algorithm-does-julia-use-for-matrix-qr-decomposition/107566 "2023-12-13T20:04:01Z")

</div>

Which algorithm does Julia uses for QR decomposition? Additionally, parallelizing decomposition methods is non-trivial. Does it use a specialized implementation on the GPU?

---

## [Any equivalent in Lux.jl to torch.nn.Parameter?](https://discourse.julialang.org/t/any-equivalent-in-lux-jl-to-torch-nn-parameter/107200)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [December 13, 2023, 7:53pm UTC](https://discourse.julialang.org/t/any-equivalent-in-lux-jl-to-torch-nn-parameter/107200 "2023-12-13T19:53:24Z")

</div>

I want to know if there is any equivalent to PyTorch’s torch.nn.Parameter in Lux.jl. Thanks!

---

## [Complementarity.jl with Path](https://discourse.julialang.org/t/complementarity-jl-with-path/103081)

<div class="topic-metadata">

**Author:** [@sjhon](https://discourse.julialang.org/u/sjhon)\
**Replies:** 9\
**Last updated:** [December 13, 2023, 7:48pm UTC](https://discourse.julialang.org/t/complementarity-jl-with-path/103081 "2023-12-13T19:48:34Z")

</div>

Im trying to solve a problema of d’aertrycke, ehrenmann, ralph & smeers (2017), the problem is the 3.3.1 that you can found here Risk trading in capacity equilibrium models Im trying to do this problem as a Mixed Comple…

---

## [How do I obtain the variables in a JuMP constraint?](https://discourse.julialang.org/t/how-do-i-obtain-the-variables-in-a-jump-constraint/107563)

<div class="topic-metadata">

**Author:** [@BdeKoning](https://discourse.julialang.org/u/BdeKoning)\
**Replies:** 1\
**Last updated:** [December 13, 2023, 7:40pm UTC](https://discourse.julialang.org/t/how-do-i-obtain-the-variables-in-a-jump-constraint/107563 "2023-12-13T19:40:29Z")

</div>

Say I define a constraint with JuMP: using JuMP model = Model(); @variable(model, x\[1:3\]); constraint = @constraint(model, c1, sum(x) \<= 1) How can I now, only using the variable constraint, obtain an iterable of varia…

---

## [Julia Orgs, How Do You Manage Logistics?](https://discourse.julialang.org/t/julia-orgs-how-do-you-manage-logistics/100430)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 14\
**Last updated:** [December 13, 2023, 7:17pm UTC](https://discourse.julialang.org/t/julia-orgs-how-do-you-manage-logistics/100430 "2023-12-13T19:17:59Z")

</div>

Hi Folks, As some of you may know, I am in the process of trying to bolster even further JuliaHealth membership and participation. A question I had for other Julia organizations is how do you handle logistics like shari…

---

## ["Warning: Instability detected. Aborting" while using lyapunovspectrum](https://discourse.julialang.org/t/warning-instability-detected-aborting-while-using-lyapunovspectrum/107536)

<div class="topic-metadata">

**Author:** [@Daniel\_Montesinos\_Ca](https://discourse.julialang.org/u/Daniel_Montesinos_Ca)\
**Replies:** 7\
**Last updated:** [December 13, 2023, 7:15pm UTC](https://discourse.julialang.org/t/warning-instability-detected-aborting-while-using-lyapunovspectrum/107536 "2023-12-13T19:15:30Z")

</div>

Hey, I’m trying to study the lyapunov spectrum for a 4D dynamical system using the lyapunovspectrum function from DynamicalSystem.jl but depending on the parameters I get “Warning: Instability detected. Aborting” and I …

---

## [\[ANN\] OnlinePortfolioSelection.jl](https://discourse.julialang.org/t/ann-onlineportfolioselection-jl/98474)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 3\
**Last updated:** [December 13, 2023, 6:09pm UTC](https://discourse.julialang.org/t/ann-onlineportfolioselection-jl/98474 "2023-12-13T18:09:35Z")

</div>

OnlinePortfolioSelection.jl is intended to provide the Julia implementation of the online portfolio selection (OPS) algorithms in a fully type-stable manner. The package is designed to be used only for research purpos…

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

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