# Latest

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

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

**Page:** 990

---

## [Bound checking in eachindex(x,y) in 1.7.3](https://discourse.julialang.org/t/bound-checking-in-eachindex-x-y-in-1-7-3/83847)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 2\
**Last updated:** [July 6, 2022, 5:50pm UTC](https://discourse.julialang.org/t/bound-checking-in-eachindex-x-y-in-1-7-3/83847 "2022-07-06T17:50:32Z")

</div>

I noticed now that in 1.7.3 a code like this does not skip bounds checking: julia\> function f!(x,y) for i in eachindex(x,y) x\[i\] = x\[i\] + y\[i\] end end f! (generic function wit…

---

## [Exponentiation with literals in both base and exponent not removed by compiler in 1.8](https://discourse.julialang.org/t/exponentiation-with-literals-in-both-base-and-exponent-not-removed-by-compiler-in-1-8/83834)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 10\
**Last updated:** [July 6, 2022, 3:59pm UTC](https://discourse.julialang.org/t/exponentiation-with-literals-in-both-base-and-exponent-not-removed-by-compiler-in-1-8/83834 "2022-07-06T15:59:31Z")

</div>

Between 1.7.3 and 1.8.0-rc1 it seems like the compiler stopped calculating exponentiation Float64^Int literals (maybe other to, haven’t checked) if the exponent is larger than 3. This resulted in adding an overhead for v…

---

## [Modified version of Poisson NMF modeling via NUTS sampler is very slow](https://discourse.julialang.org/t/modified-version-of-poisson-nmf-modeling-via-nuts-sampler-is-very-slow/83460)

<div class="topic-metadata">

**Author:** [@hahawalk](https://discourse.julialang.org/u/hahawalk)\
**Replies:** 5\
**Last updated:** [July 6, 2022, 3:21pm UTC](https://discourse.julialang.org/t/modified-version-of-poisson-nmf-modeling-via-nuts-sampler-is-very-slow/83460 "2022-07-06T15:21:36Z")

</div>

Hi! I am new to Turing.jl and trying to using NUTS to infer the parameters from a modified version of Poisson Non-negative Matrix Factorization(NMF) model. The demo codes are listed as below. It worked for a small number…

---

## [High order approximation of a multi-country trade model](https://discourse.julialang.org/t/high-order-approximation-of-a-multi-country-trade-model/83225)

<div class="topic-metadata">

**Author:** [@daisukeadachi](https://discourse.julialang.org/u/daisukeadachi)\
**Replies:** 22\
**Last updated:** [July 6, 2022, 2:38pm UTC](https://discourse.julialang.org/t/high-order-approximation-of-a-multi-country-trade-model/83225 "2022-07-06T14:38:32Z")

</div>

Hi, I hope this finds you well. I recently moved over from Matlab in search of better computational performance. I am doing this post to get best practices on higher-order approximations for large problems such as the o…

---

## [Github ci: add custom registry](https://discourse.julialang.org/t/github-ci-add-custom-registry/63590)

<div class="topic-metadata">

**Author:** [@josePereiro](https://discourse.julialang.org/u/josePereiro)\
**Replies:** 1\
**Last updated:** [July 6, 2022, 2:31pm UTC](https://discourse.julialang.org/t/github-ci-add-custom-registry/63590 "2022-07-06T14:31:12Z")

</div>

Hi, I have a dependency that is not registered on General so I add this line to my ci.yml file (full file at the end) before to run the tests: - run: julia -e 'import Pkg; Pkg.Registry.add(Pkg.RegistrySpec(url = "https:…

---

## [\`cispi\` is not accurate](https://discourse.julialang.org/t/cispi-is-not-accurate/83811)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 6\
**Last updated:** [July 6, 2022, 2:27pm UTC](https://discourse.julialang.org/t/cispi-is-not-accurate/83811 "2022-07-06T14:27:21Z")

</div>

In a package of mine, I replaced every occurrence of exp(1im\*pi\*z) with cispi(z). Then one of my unit tests has failed, and this test is a comparison of the evaluation of a special function to the exact value. There were…

---

## [Software (including Julia?) as Crash-only systems](https://discourse.julialang.org/t/software-including-julia-as-crash-only-systems/83839)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 0\
**Last updated:** [July 6, 2022, 1:52pm UTC](https://discourse.julialang.org/t/software-including-julia-as-crash-only-systems/83839 "2022-07-06T13:52:23Z")

</div>

Your apps (and that’s, currently, your responsibility) should be “crash-only systems”, but possibly Julia (as a “component” of your system), should also be “crash-only software”: Crash-only software is software that …

---

## [Quiver plot arrowhead sizing](https://discourse.julialang.org/t/quiver-plot-arrowhead-sizing/81789)

<div class="topic-metadata">

**Author:** [@FMacLellan](https://discourse.julialang.org/u/FMacLellan)\
**Replies:** 4\
**Last updated:** [July 6, 2022, 1:39pm UTC](https://discourse.julialang.org/t/quiver-plot-arrowhead-sizing/81789 "2022-07-06T13:39:57Z")

</div>

Hi, I am working on an image analysis tool for particle image velocimetry and one of the outputs will be a vector field. I can produce the vector field easily enough, but the components of each vector are very small due…

---

## [Best way to vectorize a function](https://discourse.julialang.org/t/best-way-to-vectorize-a-function/83786)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 6\
**Last updated:** [July 6, 2022, 12:39pm UTC](https://discourse.julialang.org/t/best-way-to-vectorize-a-function/83786 "2022-07-06T12:39:04Z")

</div>

Hello, I have a function like this in a package I’m currently developing: function jtheta3(z::Number, tau::Number) if imag(tau) \<= 0 ArgumentError("Invalid \`tau\`.") end return \_jtheta3(z, tau) end Imagine th…

---

## [Move elements between vectors](https://discourse.julialang.org/t/move-elements-between-vectors/83825)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 4\
**Last updated:** [July 6, 2022, 12:37pm UTC](https://discourse.julialang.org/t/move-elements-between-vectors/83825 "2022-07-06T12:37:48Z")

</div>

what is an efficient way to move an element from one position in one vector to another position in another vector? And in particular from the first position of the transferring vector to the last position of the receivi…

---

## [Full cell output in jupyter](https://discourse.julialang.org/t/full-cell-output-in-jupyter/83838)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 0\
**Last updated:** [July 6, 2022, 12:12pm UTC](https://discourse.julialang.org/t/full-cell-output-in-jupyter/83838 "2022-07-06T12:12:23Z")

</div>

How can i get full output for this code. I know about empty!(out) but its don’t help me.

---

## [Flux: Obtaining individual layer output for DenseNet from Metalhead.jl](https://discourse.julialang.org/t/flux-obtaining-individual-layer-output-for-densenet-from-metalhead-jl/83830)

<div class="topic-metadata">

**Author:** [@marcpabst](https://discourse.julialang.org/u/marcpabst)\
**Replies:** 2\
**Last updated:** [July 6, 2022, 11:43am UTC](https://discourse.julialang.org/t/flux-obtaining-individual-layer-output-for-densenet-from-metalhead-jl/83830 "2022-07-06T11:43:05Z")

</div>

Hi, I’m training the DenseNet from Metalhead.jl on the CIFAR-10 dataset which generally seems to work quite well. However, I can’t seem to find out how to access the output from individual layers in the Chain. I know a…

---

## [Updating integrator parameter/initial condition with ForwardDiff.Dual types](https://discourse.julialang.org/t/updating-integrator-parameter-initial-condition-with-forwarddiff-dual-types/82862)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 3\
**Last updated:** [July 6, 2022, 11:17am UTC](https://discourse.julialang.org/t/updating-integrator-parameter-initial-condition-with-forwarddiff-dual-types/82862 "2022-07-06T11:17:18Z")

</div>

Suppose I have the following function which takes the solution to an ODE and returns a sum-of-squared errors, making use of the integrator interface (which I need to use for my actual application, not necessary for this …

---

## [Callbacks on EnsembleProblem rather then on ODEProblem within Ensemble](https://discourse.julialang.org/t/callbacks-on-ensembleproblem-rather-then-on-odeproblem-within-ensemble/79359)

<div class="topic-metadata">

**Author:** [@mochell](https://discourse.julialang.org/u/mochell)\
**Replies:** 3\
**Last updated:** [July 6, 2022, 11:16am UTC](https://discourse.julialang.org/t/callbacks-on-ensembleproblem-rather-then-on-odeproblem-within-ensemble/79359 "2022-07-06T11:16:04Z")

</div>

Hi, I have an EnsembleProblem, or at least I want to model a system of equations with that. I want the ensemble member’s parameters to modify based on the solutions of some ensemble members every N timesteps. It is lik…

---

## [Plotting a raster image](https://discourse.julialang.org/t/plotting-a-raster-image/83796)

<div class="topic-metadata">

**Author:** [@\_stla](https://discourse.julialang.org/u/_stla)\
**Replies:** 8\
**Last updated:** [July 6, 2022, 10:53am UTC](https://discourse.julialang.org/t/plotting-a-raster-image/83796 "2022-07-06T10:53:19Z")

</div>

Hello, Is there a Julia package to plot a raster image pixel by pixel? I mean I have a complex function f, say on a square, and for each point z of the square I want to plot f(z) as a color (with my own color mapping). …

---

## [Julia uses a lot of memory with package DifferentialEquations.jl; DynamicalSystems.jl](https://discourse.julialang.org/t/julia-uses-a-lot-of-memory-with-package-differentialequations-jl-dynamicalsystems-jl/83771)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 11\
**Last updated:** [July 6, 2022, 9:25am UTC](https://discourse.julialang.org/t/julia-uses-a-lot-of-memory-with-package-differentialequations-jl-dynamicalsystems-jl/83771 "2022-07-06T09:25:18Z")

</div>

I calculate the map of the largest Lyapunov exponent (LE) and extreme events(EV), that is, i change two parameters within some range. Julia uses above 2gb memory when calculating map LE and EV. How can i fix this? I use …

---

## [Defing ODEsystem in function and initial conditions outside the function in ModelingToolkit.jl](https://discourse.julialang.org/t/defing-odesystem-in-function-and-initial-conditions-outside-the-function-in-modelingtoolkit-jl/79195)

<div class="topic-metadata">

**Author:** [@mochell](https://discourse.julialang.org/u/mochell)\
**Replies:** 5\
**Last updated:** [July 6, 2022, 8:23am UTC](https://discourse.julialang.org/t/defing-odesystem-in-function-and-initial-conditions-outside-the-function-in-modelingtoolkit-jl/79195 "2022-07-06T08:23:44Z")

</div>

Hi, I try to initialize an ODE system in a function and then assign initial conditions and parameters through any kind of named structure (dict, vector(tuples), or whatever). However, the only way to set parameters outs…

---

## [Converting Dense Axis array results into dataframe](https://discourse.julialang.org/t/converting-dense-axis-array-results-into-dataframe/83780)

<div class="topic-metadata">

**Author:** [@mbah](https://discourse.julialang.org/u/mbah)\
**Replies:** 6\
**Last updated:** [July 6, 2022, 8:23am UTC](https://discourse.julialang.org/t/converting-dense-axis-array-results-into-dataframe/83780 "2022-07-06T08:23:17Z")

</div>

Hello, I have the following two-dimensional dense axis array results extracted from a constraint. Rows represent time stamps \[T\] and columns represent nodes \[N\]. Is there a way of converting the DenseAxisArray into …

---

## [MultiJuMP.jl: more than 3 hours' calculation for nonlinear example](https://discourse.julialang.org/t/multijump-jl-more-than-3-hours-calculation-for-nonlinear-example/83764)

<div class="topic-metadata">

**Author:** [@chenr86](https://discourse.julialang.org/u/chenr86)\
**Replies:** 4\
**Last updated:** [July 6, 2022, 8:15am UTC](https://discourse.julialang.org/t/multijump-jl-more-than-3-hours-calculation-for-nonlinear-example/83764 "2022-07-06T08:15:14Z")

</div>

Hello, I am learning MultiJuMP.jl to solve a MINLP multi-objective problem. Now I am testing the nonlinear example given by the developer of the package, and I find it costs more than 3 hours to solve the problem. For n…

---

## [Designing abstract type and related abstract functions](https://discourse.julialang.org/t/designing-abstract-type-and-related-abstract-functions/45300)

<div class="topic-metadata">

**Author:** [@satyabrata\_pal](https://discourse.julialang.org/u/satyabrata_pal)\
**Replies:** 9\
**Last updated:** [July 6, 2022, 7:20am UTC](https://discourse.julialang.org/t/designing-abstract-type-and-related-abstract-functions/45300 "2022-07-06T07:20:46Z")

</div>

I want to implement a type from where i would like to build other subtypes. The supertype would be something similar to this. Abstract type A end function process end @keywdef mutable struct B\<:A a b…

---

## [VoronoiDelaunay includes domain corners](https://discourse.julialang.org/t/voronoidelaunay-includes-domain-corners/83817)

<div class="topic-metadata">

**Author:** [@SDA](https://discourse.julialang.org/u/SDA)\
**Replies:** 0\
**Last updated:** [July 6, 2022, 5:05am UTC](https://discourse.julialang.org/t/voronoidelaunay-includes-domain-corners/83817 "2022-07-06T05:05:30Z")

</div>

The calculation of the Voronoi tessellation with the VoronoiDelaunay.jl package seems to add the bounding corners as points in the tessellation. Is there a way to turn this off? If the source code needs to be altered doe…

---

## [Makie - What are the available line styles?](https://discourse.julialang.org/t/makie-what-are-the-available-line-styles/63553)

<div class="topic-metadata">

**Author:** [@Kolaru](https://discourse.julialang.org/u/Kolaru)\
**Replies:** 4\
**Last updated:** [July 6, 2022, 5:26am UTC](https://discourse.julialang.org/t/makie-what-are-the-available-line-styles/63553 "2022-07-06T05:26:32Z")

</div>

Looking at the documentation I can not found what are the available line styles for plotting lines. I only found :dashed in one example. Having a list somewhere or, if it already exists and I missed it, a link to it in …

---

## [Kernel Error; can't start the kernel on Jupyter lab&notebook](https://discourse.julialang.org/t/kernel-error-cant-start-the-kernel-on-jupyter-lab-notebook/71999)

<div class="topic-metadata">

**Author:** [@yuki-cossy](https://discourse.julialang.org/u/yuki-cossy)\
**Replies:** 2\
**Last updated:** [July 6, 2022, 3:10am UTC](https://discourse.julialang.org/t/kernel-error-cant-start-the-kernel-on-jupyter-lab-notebook/71999 "2022-07-06T03:10:10Z")

</div>

Hi there, Questions: Should I manually make the folder “C46DA2C6-FFEA-4E1B-A730-843017B7F96E/d/Julia-1.6.app/Contents/Resources/julia/bin/julia” under AppTranslocation? Suppose I make the path above, does it work? In …

---

## [Question about @rtransform?](https://discourse.julialang.org/t/question-about-rtransform/83815)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 1\
**Last updated:** [July 6, 2022, 2:59am UTC](https://discourse.julialang.org/t/question-about-rtransform/83815 "2022-07-06T02:59:26Z")

</div>

Why doesn’t this code work? julia\> df 4×3 DataFrame Row │ y x1 x2 │ Int64 Int64 Int64 ─────┼───────────────────── 1 │ 2 -97 -999 2 │ 6 2 3 3 │ 3 5 -999 4 │ …

---

## [Julia 1.73 error calling packages with "Using" on windows 10](https://discourse.julialang.org/t/julia-1-73-error-calling-packages-with-using-on-windows-10/82760)

<div class="topic-metadata">

**Author:** [@ak47](https://discourse.julialang.org/u/ak47)\
**Replies:** 6\
**Last updated:** [July 6, 2022, 2:48am UTC](https://discourse.julialang.org/t/julia-1-73-error-calling-packages-with-using-on-windows-10/82760 "2022-07-06T02:48:35Z")

</div>

I am a newbie in Julia. Initially Julia was running well on my laptop with windows 10. But after installing packages. Now every time i call any installed package using the keyword “Using”, i get error. I need your help…

---

## [Early Adopters Be Happy!](https://discourse.julialang.org/t/early-adopters-be-happy/83813)

<div class="topic-metadata">

**Author:** [@uje](https://discourse.julialang.org/u/uje)\
**Replies:** 0\
**Last updated:** [July 6, 2022, 1:27am UTC](https://discourse.julialang.org/t/early-adopters-be-happy/83813 "2022-07-06T01:27:21Z")

</div>

As Achilles was told in the movie, City Of Troy, “\[Python’s\] glory will become its doom”; and it certainly did. Python was or ‘is’ essentially a forerunner to the programming language called “JULIA” (you would find out …

---

## [Question about transpose dataframe?](https://discourse.julialang.org/t/question-about-transpose-dataframe/83807)

<div class="topic-metadata">

**Author:** [@Raymond](https://discourse.julialang.org/u/Raymond)\
**Replies:** 4\
**Last updated:** [July 6, 2022, 12:49am UTC](https://discourse.julialang.org/t/question-about-transpose-dataframe/83807 "2022-07-06T00:49:21Z")

</div>

Dear all, How to transpose the dataframe below, julia\> df 3×7 DataFrame Row │ year 2000 2001 2002 2003 2004 2005 │ String Int64 Int64 Int64 Int64 Int64 Int64 ─────┼─────────────────────────────…

---

## [Does \`AbstractArray\` itself need to support indexing beyond 1-based?](https://discourse.julialang.org/t/does-abstractarray-itself-need-to-support-indexing-beyond-1-based/83324)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 15\
**Last updated:** [July 5, 2022, 11:48pm UTC](https://discourse.julialang.org/t/does-abstractarray-itself-need-to-support-indexing-beyond-1-based/83324 "2022-07-05T23:48:24Z")

</div>

I was thinking about the thread (partially) about the incompatibility of some existing AbstractArray methods with OffsetArrays, and it got me wondering why AbstractArray was extended beyond 1-based indexing. Sticking to …

---

## [Avoiding Race Condition using Channels](https://discourse.julialang.org/t/avoiding-race-condition-using-channels/83785)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 6\
**Last updated:** [July 5, 2022, 11:45pm UTC](https://discourse.julialang.org/t/avoiding-race-condition-using-channels/83785 "2022-07-05T23:45:02Z")

</div>

The multi-threading docs only mention lock and atomic operations (for primitives) as a way to avoid race conditions. How about the Channel approach? Is this solution a safe (and good practice) approach? (it seems to wo…

---

## [Broadcasting Flux.jl model over vectors](https://discourse.julialang.org/t/broadcasting-flux-jl-model-over-vectors/83775)

<div class="topic-metadata">

**Author:** [@RomeoV](https://discourse.julialang.org/u/RomeoV)\
**Replies:** 5\
**Last updated:** [July 5, 2022, 11:01pm UTC](https://discourse.julialang.org/t/broadcasting-flux-jl-model-over-vectors/83775 "2022-07-05T23:01:11Z")

</div>

Hello, Flux.jl based models are usually evaluated in a batch-wise fashion for performance reasons, i.e. xs\_batch = rand(10, 64); # 64 ten-dimensional features ys\_batch = model(xs\_batch) @assert size(ys\_batch) == (1, 6…

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

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