# Latest

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

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

**Page:** 783

---

## [Using Split ODE Solvers within Method of Steps](https://discourse.julialang.org/t/using-split-ode-solvers-within-method-of-steps/94569)

<div class="topic-metadata">

**Author:** [@wpowell96](https://discourse.julialang.org/u/wpowell96)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 5:39pm UTC](https://discourse.julialang.org/t/using-split-ode-solvers-within-method-of-steps/94569 "2023-02-13T17:39:21Z")

</div>

I am interesting in simulating delayed reaction-diffusion equations of the form u\_t = \\Delta u + f(u,u(t-\\tau)) in a 2-D spatial domain of modest size (10,000 equations) and a non-stiff nonlinearity (for now). My curre…

---

## [\[ANN\] SPDX.jl v0.2.0: Reading and Writing SPDX Files - Now with support for v2.3 of the specification](https://discourse.julialang.org/t/ann-spdx-jl-v0-2-0-reading-and-writing-spdx-files-now-with-support-for-v2-3-of-the-specification/94576)

<div class="topic-metadata">

**Author:** [@SamuraiAku](https://discourse.julialang.org/u/SamuraiAku)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 5:08pm UTC](https://discourse.julialang.org/t/ann-spdx-jl-v0-2-0-reading-and-writing-spdx-files-now-with-support-for-v2-3-of-the-specification/94576 "2023-02-13T17:08:13Z")

</div>

SPDX.jl A package for reading and writing SPDX files in Julia. Software Package Data eXchange (SPDX) is an open standard for communicating software bill of material information, including provenance, license, security, …

---

## [QHack has started](https://discourse.julialang.org/t/qhack-has-started/94574)

<div class="topic-metadata">

**Author:** [@kslimes](https://discourse.julialang.org/u/kslimes)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 4:22pm UTC](https://discourse.julialang.org/t/qhack-has-started/94574 "2023-02-13T16:22:05Z")

</div>

Read the introductory blog post here! QHack is a free event running from February 13-28 2023, featuring scientific talks and a hackathon with multiple challenges. You can still sign up (for free!) to participate and it’…

---

## [Is it safe declare lock as module constant?](https://discourse.julialang.org/t/is-it-safe-declare-lock-as-module-constant/94507)

<div class="topic-metadata">

**Author:** [@harsh\_kumar](https://discourse.julialang.org/u/harsh_kumar)\
**Replies:** 3\
**Last updated:** [February 13, 2023, 4:03pm UTC](https://discourse.julialang.org/t/is-it-safe-declare-lock-as-module-constant/94507 "2023-02-13T16:03:18Z")

</div>

I have created a package that uses a spin lock and I have declared this as module constant (example shown below). Since Julia compiles the package, it will declare the constant only once. Will this cause any unexpected i…

---

## [MethodOfLines & default vs. WENO scheme](https://discourse.julialang.org/t/methodoflines-default-vs-weno-scheme/94566)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 3:43pm UTC](https://discourse.julialang.org/t/methodoflines-default-vs-weno-scheme/94566 "2023-02-13T15:43:33Z")

</div>

OK – I solved a “stupid” gas pipe example with manual semi-discretization + ModelingToolkit and lots of help from @baggepinnen, “MTK & vector equations…”. Now, I have figured out the basic solution of the problem using…

---

## [Native eigenvals for differentiable programming](https://discourse.julialang.org/t/native-eigenvals-for-differentiable-programming/27126)

<div class="topic-metadata">

**Author:** [@GJBoth](https://discourse.julialang.org/u/GJBoth)\
**Replies:** 23\
**Last updated:** [February 13, 2023, 3:32pm UTC](https://discourse.julialang.org/t/native-eigenvals-for-differentiable-programming/27126 "2023-02-13T15:32:20Z")

</div>

Hi all, I’m working on a problem where I require an autodifferentiable eigenvalue solver for real, square matrices (but non-hermitian). Since Linear algebra’s version is based on LAPACK, I can’t use autodiff and I haven…

---

## [The naming of \`allunique\` in DataFrames.jl](https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568)

<div class="topic-metadata">

**Author:** [@alfaromartino](https://discourse.julialang.org/u/alfaromartino)\
**Replies:** 3\
**Last updated:** [February 12, 2023, 9:27am UTC](https://discourse.julialang.org/t/the-naming-of-allunique-in-dataframes-jl/94568 "2023-02-12T09:27:21Z")

</div>

Although it’s probably too late, a name like uniquerows would be more self-explanatory than allunique. Thanks for your excellent work!

---

## [Multidimensional arrays as indices in setindex!: bug or feature?](https://discourse.julialang.org/t/multidimensional-arrays-as-indices-in-setindex-bug-or-feature/94558)

<div class="topic-metadata">

**Author:** [@Az9DBvyVLWBjs8g](https://discourse.julialang.org/u/Az9DBvyVLWBjs8g)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 2:29pm UTC](https://discourse.julialang.org/t/multidimensional-arrays-as-indices-in-setindex-bug-or-feature/94558 "2023-02-13T14:29:56Z")

</div>

Hello everyone, I just found that one can use multidimensional arrays as indices within setindex!. They behave as 1d arrays, which is different from their behavior in getindex, thus the following assertion from the docs …

---

## [Multiple connected scripts BUT all sharing the same dependancies how do I set up the project?](https://discourse.julialang.org/t/multiple-connected-scripts-but-all-sharing-the-same-dependancies-how-do-i-set-up-the-project/94522)

<div class="topic-metadata">

**Author:** [@1153dent](https://discourse.julialang.org/u/1153dent)\
**Replies:** 9\
**Last updated:** [February 13, 2023, 2:17pm UTC](https://discourse.julialang.org/t/multiple-connected-scripts-but-all-sharing-the-same-dependancies-how-do-i-set-up-the-project/94522 "2023-02-13T14:17:28Z")

</div>

I can’t get my head around how to set up the project so it handles this case. EITHER it’s so simple ( just putting the scripts in the src folder) or it’s not wise to do so? and put them in 3 separate projects I have thr…

---

## [Not able to run Julia through python on a server in a frontend type application](https://discourse.julialang.org/t/not-able-to-run-julia-through-python-on-a-server-in-a-frontend-type-application/89431)

<div class="topic-metadata">

**Author:** [@shwetank\_verma](https://discourse.julialang.org/u/shwetank_verma)\
**Replies:** 3\
**Last updated:** [February 13, 2023, 2:04pm UTC](https://discourse.julialang.org/t/not-able-to-run-julia-through-python-on-a-server-in-a-frontend-type-application/89431 "2023-02-13T14:04:35Z")

</div>

Hey everyone, I am not able to find anything on this so I will try to explain as many things as I can. We are building a cloud-based simulation application whose frontend is Javascript which is calling python script. T…

---

## [How to initialize array of arrays with specific type?](https://discourse.julialang.org/t/how-to-initialize-array-of-arrays-with-specific-type/94557)

<div class="topic-metadata">

**Author:** [@CeterisPartybus](https://discourse.julialang.org/u/CeterisPartybus)\
**Replies:** 7\
**Last updated:** [February 13, 2023, 1:46pm UTC](https://discourse.julialang.org/t/how-to-initialize-array-of-arrays-with-specific-type/94557 "2023-02-13T13:46:26Z")

</div>

Hi everyone, I would like to initialize an array that is later filled with interpolation objects. To be specific, it should store output from interpolate() from Interpolations.jl later on. Normally, I can initialize an…

---

## [Data structure for convenient access to tabular data](https://discourse.julialang.org/t/data-structure-for-convenient-access-to-tabular-data/94523)

<div class="topic-metadata">

**Author:** [@bbrunaud](https://discourse.julialang.org/u/bbrunaud)\
**Replies:** 5\
**Last updated:** [February 13, 2023, 1:26pm UTC](https://discourse.julialang.org/t/data-structure-for-convenient-access-to-tabular-data/94523 "2023-02-13T13:26:18Z")

</div>

Hello community I use Julia to build JuMP models. What you usually have is indexed parameters that I would like to store in DataFrames and have convenient access when writing models. Think of a DataFrame where you have …

---

## [Using Plots, is there a simple way to plot a 3D cube/rectangle?](https://discourse.julialang.org/t/using-plots-is-there-a-simple-way-to-plot-a-3d-cube-rectangle/94528)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 1\
**Last updated:** [February 12, 2023, 6:49pm UTC](https://discourse.julialang.org/t/using-plots-is-there-a-simple-way-to-plot-a-3d-cube-rectangle/94528 "2023-02-12T18:49:19Z")

</div>

Hello! I found this nice function online: rectangle(w, h, x, y) = Shape(x .+ \[0,w,w,0\], y .+ \[0,0,h,h\]) Which can produce: x = y = 1 w = h = 1 plot(rectangle(w, h, x, y)) Does anyone know how to produce a 3d equi…

---

## [ProgressiveHedging.jl - Decision Variables](https://discourse.julialang.org/t/progressivehedging-jl-decision-variables/94414)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 1:22pm UTC](https://discourse.julialang.org/t/progressivehedging-jl-decision-variables/94414 "2023-02-13T13:22:48Z")

</div>

Hello! I’m starting to use ProgressiveHedging.jl and testing it in a two-stage problem. However, both the first and second stages variables in my case present different dimensions. For example, I have 6 first-stage dec…

---

## [GLMakie: Reset all sliders inside SliderGrid via Button](https://discourse.julialang.org/t/glmakie-reset-all-sliders-inside-slidergrid-via-button/94555)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 12:35pm UTC](https://discourse.julialang.org/t/glmakie-reset-all-sliders-inside-slidergrid-via-button/94555 "2023-02-13T12:35:45Z")

</div>

I wonder, if something exist like “Mouse.DoubleClick” on SliderGrid? The code below does what it should do, but it uses a for-loop over the SliderGrid. using GLMakie fig = Figure() # --- figure set-up: two panes side …

---

## [From Scmil\_train to Optimization.jl](https://discourse.julialang.org/t/from-scmil-train-to-optimization-jl/94316)

<div class="topic-metadata">

**Author:** [@qjulia](https://discourse.julialang.org/u/qjulia)\
**Replies:** 26\
**Last updated:** [February 13, 2023, 12:07pm UTC](https://discourse.julialang.org/t/from-scmil-train-to-optimization-jl/94316 "2023-02-13T12:07:23Z")

</div>

Hello, I am trying to write the following line: optimized\_sol\_nn = DiffEqFlux.sciml\_train(p -\> cost\_adjoint\_nn(p, 0.08), θ\_nn,RADAM(0.003), maxiters = 1000) with Optimization.jl package since scmil\_train is deprecated…

---

## [Enabling broadcasting for named tuples alt. broadcast? broadcasted? broadcastable? BroadcastStyle?](https://discourse.julialang.org/t/enabling-broadcasting-for-named-tuples-alt-broadcast-broadcasted-broadcastable-broadcaststyle/94468)

<div class="topic-metadata">

**Author:** [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 11:59am UTC](https://discourse.julialang.org/t/enabling-broadcasting-for-named-tuples-alt-broadcast-broadcasted-broadcastable-broadcaststyle/94468 "2023-02-13T11:59:44Z")

</div>

Like many before me (if my googling serves me right), I found myself in need of broadcasting over named tuples. In this case it is in the hope that I can get MLUtils.jl to handle batches that are (you guessed it) named t…

---

## [The heat equation solution use MethodOfLines.jl](https://discourse.julialang.org/t/the-heat-equation-solution-use-methodoflines-jl/94331)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 12\
**Last updated:** [February 13, 2023, 11:31am UTC](https://discourse.julialang.org/t/the-heat-equation-solution-use-methodoflines-jl/94331 "2023-02-13T11:31:56Z")

</div>

the solution looks weird in https://docs.sciml.ai/MethodOfLines/stable/tutorials/heatss/ why its u(1, 1) = 0?

---

## [Struggling to migrate from R (dplyr) to Julia (DataFrameMeta)](https://discourse.julialang.org/t/struggling-to-migrate-from-r-dplyr-to-julia-dataframemeta/94473)

<div class="topic-metadata">

**Author:** [@Philip\_Rhome](https://discourse.julialang.org/u/Philip_Rhome)\
**Replies:** 10\
**Last updated:** [February 13, 2023, 11:16am UTC](https://discourse.julialang.org/t/struggling-to-migrate-from-r-dplyr-to-julia-dataframemeta/94473 "2023-02-13T11:16:32Z")

</div>

hello dear julia developers i’m new to julia and i’m fascinated by the power and performance of this great language i’m trying to convert my notebooks in R to Julia to help me learn it but the issue is that i’m stuck w…

---

## [Best way to write dense rank-one update?](https://discourse.julialang.org/t/best-way-to-write-dense-rank-one-update/3929)

<div class="topic-metadata">

**Author:** [@Stephen\_Vavasis](https://discourse.julialang.org/u/Stephen_Vavasis)\
**Replies:** 9\
**Last updated:** [February 13, 2023, 10:38am UTC](https://discourse.julialang.org/t/best-way-to-write-dense-rank-one-update/3929 "2023-02-13T10:38:36Z")

</div>

For a rank-one update of a dense matrix in Matlab, I would write A=A+u\*v'. If I just use the same Matlab statement in Julia, I’ll get poor performance because of needless memory allocation and copying. I know how to wr…

---

## [How to test if package is installed](https://discourse.julialang.org/t/how-to-test-if-package-is-installed/3508)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 23\
**Last updated:** [February 13, 2023, 10:00am UTC](https://discourse.julialang.org/t/how-to-test-if-package-is-installed/3508 "2023-02-13T10:00:07Z")

</div>

What’s the recommended API for testing if a package (which may not be registed) is installed? I have seen two versions floating around: "somepackage" ∈ keys(Pkg.installed()) and isdir(Pkg.dir("somepackage")) The seco…

---

## [AbstractMissing](https://discourse.julialang.org/t/abstractmissing/94413)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 7\
**Last updated:** [February 13, 2023, 8:55am UTC](https://discourse.julialang.org/t/abstractmissing/94413 "2023-02-13T08:55:29Z")

</div>

I love Julia but am often puzzled about why Base does not make use of some of the things that make Julia great. In base, the definition of missing is: struct Missing end const missing = Missing() methods operating o…

---

## [Proper way to identify variables/models with functions](https://discourse.julialang.org/t/proper-way-to-identify-variables-models-with-functions/94535)

<div class="topic-metadata">

**Author:** [@PaterPen](https://discourse.julialang.org/u/PaterPen)\
**Replies:** 1\
**Last updated:** [February 13, 2023, 8:03am UTC](https://discourse.julialang.org/t/proper-way-to-identify-variables-models-with-functions/94535 "2023-02-13T08:03:37Z")

</div>

Recently I revisited some old Julia code of mine and wondered how to implement it properly. The setting is: I have a model struct which holds some model definition. Let’s say, each model just describes some system of eq…

---

## [Printing zero elements in lines of a sparse matrix](https://discourse.julialang.org/t/printing-zero-elements-in-lines-of-a-sparse-matrix/94530)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 6\
**Last updated:** [February 13, 2023, 7:55am UTC](https://discourse.julialang.org/t/printing-zero-elements-in-lines-of-a-sparse-matrix/94530 "2023-02-13T07:55:43Z")

</div>

Dear all, I would like to print the non-zero elements along a give line of a sparse matrix. In fact I’m trying to find a way to reproduce the behaviour of MATLAB. For example, here’s how a line is printed in MATLAB, it…

---

## [Integration of arbitrarily-spaced data](https://discourse.julialang.org/t/integration-of-arbitrarily-spaced-data/94533)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 7:25am UTC](https://discourse.julialang.org/t/integration-of-arbitrarily-spaced-data/94533 "2023-02-13T07:25:22Z")

</div>

Hello all, Is there any function/package in Julia that I could use to integrate one-dimensional arbitrarily-spaced data? NumericalIntegration has several options, but they require evenly spaced data. Best, Santiago

---

## [Unexpected result from short-circuiting (inline if)](https://discourse.julialang.org/t/unexpected-result-from-short-circuiting-inline-if/94400)

<div class="topic-metadata">

**Author:** [@CarlosST](https://discourse.julialang.org/u/CarlosST)\
**Replies:** 9\
**Last updated:** [February 13, 2023, 5:01am UTC](https://discourse.julialang.org/t/unexpected-result-from-short-circuiting-inline-if/94400 "2023-02-13T05:01:09Z")

</div>

I’m quite familiar with using short-circuit evaluation as an inline if, and my understanding was that writing cond && (expression) is exactly identical to the more traditional: if cond expression; end However, I fo…

---

## [Why can't the compiler constant-fold operations on BigInt and BigFloat?](https://discourse.julialang.org/t/why-cant-the-compiler-constant-fold-operations-on-bigint-and-bigfloat/94447)

<div class="topic-metadata">

**Author:** [@bobcassels](https://discourse.julialang.org/u/bobcassels)\
**Replies:** 14\
**Last updated:** [February 13, 2023, 1:44am UTC](https://discourse.julialang.org/t/why-cant-the-compiler-constant-fold-operations-on-bigint-and-bigfloat/94447 "2023-02-13T01:44:49Z")

</div>

wtf(x) = x \* Float64(big(12.34) / big(180)^3) @code\_llvm wtf(1.0) shows runtime calls to do the big-ifying, and the exponentiation. If I remove the calls to big, it constant-folds just fine.

---

## [Compile C code with Julia package](https://discourse.julialang.org/t/compile-c-code-with-julia-package/91305)

<div class="topic-metadata">

**Author:** [@PaterPen](https://discourse.julialang.org/u/PaterPen)\
**Replies:** 8\
**Last updated:** [February 13, 2023, 1:02am UTC](https://discourse.julialang.org/t/compile-c-code-with-julia-package/91305 "2023-02-13T01:02:32Z")

</div>

Hi, I am currently thinking about migrating an R package with underlying C/C++ code to a Julia package. However, in the short term the large C/C++ codebase should be reused and therefore is intended to be called from wi…

---

## [Documenting packages](https://discourse.julialang.org/t/documenting-packages/94493)

<div class="topic-metadata">

**Author:** [@dscolby](https://discourse.julialang.org/u/dscolby)\
**Replies:** 8\
**Last updated:** [February 13, 2023, 12:14am UTC](https://discourse.julialang.org/t/documenting-packages/94493 "2023-02-13T00:14:59Z")

</div>

I just created a new package but I’m having a lot of trouble getting the documentation to render with Documenter.jl. When I deploy it to GitHub pages it displays the readme instead of the index.md file in my docs/src dir…

---

## [Using interpolation with unit verification in ModelingToolkit](https://discourse.julialang.org/t/using-interpolation-with-unit-verification-in-modelingtoolkit/93837)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 1\
**Last updated:** [February 12, 2023, 10:46pm UTC](https://discourse.julialang.org/t/using-interpolation-with-unit-verification-in-modelingtoolkit/93837 "2023-02-12T22:46:59Z")

</div>

I am trying to build a simulation driven by tabulated data and use unit validation. This requires interpolation of the table, and it seems DataInterpolation.jl is the intended tool (Interpolations.jl could work, but I th…

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

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