# Latest

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

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

**Page:** 1219

---

## [Search engines may redirect to old version of package documentation](https://discourse.julialang.org/t/search-engines-may-redirect-to-old-version-of-package-documentation/70862)

<div class="topic-metadata">

**Author:** [@DorianT](https://discourse.julialang.org/u/DorianT)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 10:36am UTC](https://discourse.julialang.org/t/search-engines-may-redirect-to-old-version-of-package-documentation/70862 "2021-11-03T10:36:32Z")

</div>

Over the past 6 or so month while learning Julia bit by bit, I noticed that many times when I use a search engine of my choice to look for some documentation on a package, I end up on a rather outdated documentation, mak…

---

## [Stacked bar chart with both positive and negative values](https://discourse.julialang.org/t/stacked-bar-chart-with-both-positive-and-negative-values/70852)

<div class="topic-metadata">

**Author:** [@IljaK91](https://discourse.julialang.org/u/IljaK91)\
**Replies:** 3\
**Last updated:** [November 3, 2021, 10:16am UTC](https://discourse.julialang.org/t/stacked-bar-chart-with-both-positive-and-negative-values/70852 "2021-11-03T10:16:09Z")

</div>

Hey everyone, I was looking for how to create a specific plot with stacked bars that have both positive and negative values. That is the plot that I am trying to recreate: Does anybody have a suggestion on how to go…

---

## [Variable sequence length RNN in Flux](https://discourse.julialang.org/t/variable-sequence-length-rnn-in-flux/70715)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 2\
**Last updated:** [November 3, 2021, 9:57am UTC](https://discourse.julialang.org/t/variable-sequence-length-rnn-in-flux/70715 "2021-11-03T09:57:18Z")

</div>

How to implement RNN for variable sequence length data with minibatching in Flux? According to Flux doc, In Flux, those 3 dimensions are provided through a vector of seq length containing a matrix (features, samples) …

---

## [Stuck with another allocation question](https://discourse.julialang.org/t/stuck-with-another-allocation-question/70850)

<div class="topic-metadata">

**Author:** [@goerch](https://discourse.julialang.org/u/goerch)\
**Replies:** 2\
**Last updated:** [November 3, 2021, 8:46am UTC](https://discourse.julialang.org/t/stuck-with-another-allocation-question/70850 "2021-11-03T08:46:20Z")

</div>

The following program using BenchmarkTools const Example1 = Tuple{Int, Float64, Float64, Float64} const Example2 = Tuple{Int, Float64} function init!(v, n) for i in 1:n push!(v, (i, rand(), rand(), rand())…

---

## [Normalize the solution during the integration by differentialequations.jl](https://discourse.julialang.org/t/normalize-the-solution-during-the-integration-by-differentialequations-jl/70845)

<div class="topic-metadata">

**Author:** [@TravellingLight6](https://discourse.julialang.org/u/TravellingLight6)\
**Replies:** 1\
**Last updated:** [November 3, 2021, 5:38am UTC](https://discourse.julialang.org/t/normalize-the-solution-during-the-integration-by-differentialequations-jl/70845 "2021-11-03T05:38:25Z")

</div>

I usually come to solve outwards ode like schrodinger equation under columb potential and I recently realize that the initial condition and time span affect the stability of the solution as posted as following: using Di…

---

## [Help with \`try\`ing different algorithms for root solving](https://discourse.julialang.org/t/help-with-try-ing-different-algorithms-for-root-solving/70832)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 14\
**Last updated:** [November 3, 2021, 1:54am UTC](https://discourse.julialang.org/t/help-with-try-ing-different-algorithms-for-root-solving/70832 "2021-11-03T01:54:07Z")

</div>

I am trying to program a function that tries different root-finding algorithms depending on whether they succeed or not. How can I accomplish that? I programmed a prototype below, but it does not seem to work: using Roo…

---

## [Sudden cursed precompilation error on local project: free() invalid pointer](https://discourse.julialang.org/t/sudden-cursed-precompilation-error-on-local-project-free-invalid-pointer/70834)

<div class="topic-metadata">

**Author:** [@dsweber2](https://discourse.julialang.org/u/dsweber2)\
**Replies:** 0\
**Last updated:** [November 3, 2021, 12:41am UTC](https://discourse.julialang.org/t/sudden-cursed-precompilation-error-on-local-project-free-invalid-pointer/70834 "2021-11-03T00:41:26Z")

</div>

Hi all, So I know Halloween was Sunday, but I got a rather cursed error yesterday which I’m not even sure where to continue with debugging. Before running updates yesterday, this package was compiling fine and worked we…

---

## [Sequence-to-one modelling and Flux.reset!](https://discourse.julialang.org/t/sequence-to-one-modelling-and-flux-reset/70815)

<div class="topic-metadata">

**Author:** [@JLDC](https://discourse.julialang.org/u/JLDC)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 10:42pm UTC](https://discourse.julialang.org/t/sequence-to-one-modelling-and-flux-reset/70815 "2021-11-02T22:42:39Z")

</div>

I’m trying to build a sequence-to-one model using Flux and I’m running into an error that I have not been able to solve. Following: Building simple sequence-to-one RNN with Flux - New to Julia - JuliaLang it seems that …

---

## [Restricting "active" joints in RigidBodyDynamics.jl](https://discourse.julialang.org/t/restricting-active-joints-in-rigidbodydynamics-jl/70829)

<div class="topic-metadata">

**Author:** [@benjamin-macadam](https://discourse.julialang.org/u/benjamin-macadam)\
**Replies:** 0\
**Last updated:** [November 2, 2021, 10:19pm UTC](https://discourse.julialang.org/t/restricting-active-joints-in-rigidbodydynamics-jl/70829 "2021-11-02T22:19:15Z")

</div>

Hi there, I have been using RigidBodyDynamics.jl to do some simulations with robotics for about a month or so. I’m finding performance for some of my simulations really suffers when I use the full collection of joints i…

---

## [Can I use opensource drivers to code in Cuda?](https://discourse.julialang.org/t/can-i-use-opensource-drivers-to-code-in-cuda/70682)

<div class="topic-metadata">

**Author:** [@anon69491625](https://discourse.julialang.org/u/anon69491625)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 9:57pm UTC](https://discourse.julialang.org/t/can-i-use-opensource-drivers-to-code-in-cuda/70682 "2021-11-02T21:57:57Z")

</div>

Hi all can I use xserver-xorg-video-nouveau v 1:1.0.16.1 display drivers to code in Cuda and NOT the official nvidia 470? I have had a bit of bad news. I am using linux mint 20.2 ( based on Ubuntu) and am using open so…

---

## [How to test if one float is an integer multiple of another?](https://discourse.julialang.org/t/how-to-test-if-one-float-is-an-integer-multiple-of-another/70745)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 9\
**Last updated:** [November 2, 2021, 10:09pm UTC](https://discourse.julialang.org/t/how-to-test-if-one-float-is-an-integer-multiple-of-another/70745 "2021-11-02T22:09:36Z")

</div>

What is the best way to test if one floating point number is an integer multiple of another floating number? e.g. I want this to return true for 5.5 / 0.5, and false for 5.5 / 0.6. Naively I would expect to do this by t…

---

## [Trying to understand broadcast better](https://discourse.julialang.org/t/trying-to-understand-broadcast-better/70778)

<div class="topic-metadata">

**Author:** [@joshdpark](https://discourse.julialang.org/u/joshdpark)\
**Replies:** 9\
**Last updated:** [November 2, 2021, 9:35pm UTC](https://discourse.julialang.org/t/trying-to-understand-broadcast-better/70778 "2021-11-02T21:35:32Z")

</div>

Having a list of 2x1 vectors, I wanted to do a for loop for the array and hcat each element with each vector to create a 2x2 matrix. I was able to get what I wanted with a list comprehension but I was wondering if there’…

---

## [\`Makie.convert\_arguments\` example](https://discourse.julialang.org/t/makie-convert-arguments-example/70823)

<div class="topic-metadata">

**Author:** [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 9:06pm UTC](https://discourse.julialang.org/t/makie-convert-arguments-example/70823 "2021-11-02T21:06:22Z")

</div>

I found this https://makie.juliaplots.org/stable/documentation/recipes/ but I’m not able to able to follow it to be honest. For example, let’s have a struct struct A val::Float32 end which I want to plot by using…

---

## [Too new for this world problem when called from a function](https://discourse.julialang.org/t/too-new-for-this-world-problem-when-called-from-a-function/70820)

<div class="topic-metadata">

**Author:** [@Niceno](https://discourse.julialang.org/u/Niceno)\
**Replies:** 14\
**Last updated:** [November 2, 2021, 8:54pm UTC](https://discourse.julialang.org/t/too-new-for-this-world-problem-when-called-from-a-function/70820 "2021-11-02T20:54:16Z")

</div>

Dear all, As a part of a program I am developing in Julia, I would like to have boundary conditions defined as Julia functions. However, I ran into the “too new for this world problem”. It took me quite a while to com…

---

## [Broadcast SubString to subset of DataFrame rows?](https://discourse.julialang.org/t/broadcast-substring-to-subset-of-dataframe-rows/70817)

<div class="topic-metadata">

**Author:** [@blackeneth](https://discourse.julialang.org/u/blackeneth)\
**Replies:** 6\
**Last updated:** [November 2, 2021, 8:46pm UTC](https://discourse.julialang.org/t/broadcast-substring-to-subset-of-dataframe-rows/70817 "2021-11-02T20:46:03Z")

</div>

Hi, Say I have a large DataFrame, with thousands of rows. For some of those rows, I need to parse out a substring and put it in another column. In my case, these rows have “Register(nnnn)” in them, and I need to extrac…

---

## [Trying to use data as an initial condition for a 1D diffusion problem with DiffEqOperators.jl](https://discourse.julialang.org/t/trying-to-use-data-as-an-initial-condition-for-a-1d-diffusion-problem-with-diffeqoperators-jl/70433)

<div class="topic-metadata">

**Author:** [@thompsonmj](https://discourse.julialang.org/u/thompsonmj)\
**Replies:** 13\
**Last updated:** [November 2, 2021, 8:12pm UTC](https://discourse.julialang.org/t/trying-to-use-data-as-an-initial-condition-for-a-1d-diffusion-problem-with-diffeqoperators-jl/70433 "2021-11-02T20:12:59Z")

</div>

Using code from Example 1 in the library repo README to get started. I’m getting ERROR: MethodError: no method matching zero(::Type{Vector{Float64}}) and not clear how to decode the Stacktrace … using OrdinaryDiffEq, M…

---

## [Unable to install Julia v 1.6.+ on Linux - Ubuntu](https://discourse.julialang.org/t/unable-to-install-julia-v-1-6-on-linux-ubuntu/70821)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 4\
**Last updated:** [November 2, 2021, 7:08pm UTC](https://discourse.julialang.org/t/unable-to-install-julia-v-1-6-on-linux-ubuntu/70821 "2021-11-02T19:08:36Z")

</div>

Hi, I am having a very basic problem in setting up the latest version of julia on my computer. I followed the instructions on the official website and obtained the installer for the latest version 1.6.3 to obtain the fi…

---

## [How to deal with structure elements?](https://discourse.julialang.org/t/how-to-deal-with-structure-elements/70814)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 6\
**Last updated:** [November 2, 2021, 5:47pm UTC](https://discourse.julialang.org/t/how-to-deal-with-structure-elements/70814 "2021-11-02T17:47:41Z")

</div>

I have the below MWE, in which at some points I need to check the field id of all elements of structure S (i.e., CP) before I continue add elements to CP, but I am having the below error. Any idea to solve it? In other w…

---

## [Creating CartesianIndex](https://discourse.julialang.org/t/creating-cartesianindex/70721)

<div class="topic-metadata">

**Author:** [@sransome](https://discourse.julialang.org/u/sransome)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 4:56pm UTC](https://discourse.julialang.org/t/creating-cartesianindex/70721 "2021-11-02T16:56:59Z")

</div>

Hi, I’m creating cartesianindexes for an 8 dimensional matrix using something like mypoint = indexin(1.0f0,mybigmatrix) This works fine and gives me something like … ‘’‘0-dimensional Array{Union{Nothing, CartesianInd…

---

## [Correct version of cuda.jl for Quadro K4200](https://discourse.julialang.org/t/correct-version-of-cuda-jl-for-quadro-k4200/70744)

<div class="topic-metadata">

**Author:** [@jamaas](https://discourse.julialang.org/u/jamaas)\
**Replies:** 5\
**Last updated:** [November 2, 2021, 4:52pm UTC](https://discourse.julialang.org/t/correct-version-of-cuda-jl-for-quadro-k4200/70744 "2021-11-02T16:52:22Z")

</div>

I’d like to learn how to use gpu computing with my pc, runs on ubuntu linux and has a Quadro K4200 gpu which only has a compute capability of 3.0. What version of cuda.jl should I be trying to install that will work wi…

---

## [\[ANN\] Mex.jl](https://discourse.julialang.org/t/ann-mex-jl/70816)

<div class="topic-metadata">

**Author:** [@taylormcd](https://discourse.julialang.org/u/taylormcd)\
**Replies:** 0\
**Last updated:** [November 2, 2021, 4:41pm UTC](https://discourse.julialang.org/t/ann-mex-jl/70816 "2021-11-02T16:41:05Z")

</div>

Mex.jl is a new package which embeds Julia in the MATLAB process. It’s based on the old mexjulia project, but is compatible with later versions of Julia and assembled as a Julia package for easy installation and use. F…

---

## [Unsatisfiable requirements detected for package OpenBLAS\_jll (error indirectly from PackageCompiler)](https://discourse.julialang.org/t/unsatisfiable-requirements-detected-for-package-openblas-jll-error-indirectly-from-packagecompiler/70811)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 3\
**Last updated:** [November 2, 2021, 4:21pm UTC](https://discourse.julialang.org/t/unsatisfiable-requirements-detected-for-package-openblas-jll-error-indirectly-from-packagecompiler/70811 "2021-11-02T16:21:55Z")

</div>

Any idea why this seeming MWE doesn’t work (confirmed below, is a known bug in 1.8): (@v1.8) pkg\> add OpenBLAS\_jll@v0.3.13 Resolving package versions... ERROR: Unsatisfiable requirements detected for package OpenBLAS…

---

## [Multiple plots: some refinements](https://discourse.julialang.org/t/multiple-plots-some-refinements/64800)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 25\
**Last updated:** [November 2, 2021, 4:33pm UTC](https://discourse.julialang.org/t/multiple-plots-some-refinements/64800 "2021-11-02T16:33:34Z")

</div>

Hi to everybody, I am trying to make some plots for my research (Fisher contour plots) using Plots.jl. I am quite satisfied with the results I have obtained (in a very short amount of time!) FisherMatrix = \[16523.02 33…

---

## [VideoIO.jl don't recognizes encodevideo() function anymore](https://discourse.julialang.org/t/videoio-jl-dont-recognizes-encodevideo-function-anymore/58479)

<div class="topic-metadata">

**Author:** [@Renan\_Rabelo](https://discourse.julialang.org/u/Renan_Rabelo)\
**Replies:** 5\
**Last updated:** [November 2, 2021, 4:12pm UTC](https://discourse.julialang.org/t/videoio-jl-dont-recognizes-encodevideo-function-anymore/58479 "2021-11-02T16:12:56Z")

</div>

Hi, Last week I was using VideoIO.jl package and everything was normal. Today I tried to encode a video and the function simply doesn’t exists anymore. I searched in the GitHub page and noticed that the last update was…

---

## [Distributing loops across threads manually (something like OpenMP)](https://discourse.julialang.org/t/distributing-loops-across-threads-manually-something-like-openmp/70701)

<div class="topic-metadata">

**Author:** [@tgautam03](https://discourse.julialang.org/u/tgautam03)\
**Replies:** 14\
**Last updated:** [November 2, 2021, 4:09pm UTC](https://discourse.julialang.org/t/distributing-loops-across-threads-manually-something-like-openmp/70701 "2021-11-02T16:09:00Z")

</div>

Hi, I’m quite familiar with the workings of OpenMP and have understood the parallel programming concepts using Fork Join Model. I’m just starting out with julia and was hoping to understand multithreading in julia better…

---

## [Does rand(Float64, 1000) returns an array of consecutive physical addresses?](https://discourse.julialang.org/t/does-rand-float64-1000-returns-an-array-of-consecutive-physical-addresses/70805)

<div class="topic-metadata">

**Author:** [@jerry4h](https://discourse.julialang.org/u/jerry4h)\
**Replies:** 8\
**Last updated:** [November 2, 2021, 3:56pm UTC](https://discourse.julialang.org/t/does-rand-float64-1000-returns-an-array-of-consecutive-physical-addresses/70805 "2021-11-02T15:56:38Z")

</div>

I’m new to julia. I want to know how to apply for an array with contiguous physical addresses.

---

## [(discrete cosine transform) DCT on GPU](https://discourse.julialang.org/t/discrete-cosine-transform-dct-on-gpu/64273)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 4\
**Last updated:** [November 2, 2021, 3:44pm UTC](https://discourse.julialang.org/t/discrete-cosine-transform-dct-on-gpu/64273 "2021-11-02T15:44:38Z")

</div>

Hi, Although I have discussed some of this with some developers at Oceananigans.jl, I am reaching you out here to ask if anybody has a plan\_dct! which works on GPU? Should we parallel FFTW.jl? Thank you, Bests

---

## [Computing the Lyapunov exponent of the Hénon map with DynamicalSystems.jl](https://discourse.julialang.org/t/computing-the-lyapunov-exponent-of-the-henon-map-with-dynamicalsystems-jl/70810)

<div class="topic-metadata">

**Author:** [@NoFishLikeIan](https://discourse.julialang.org/u/NoFishLikeIan)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 3:25pm UTC](https://discourse.julialang.org/t/computing-the-lyapunov-exponent-of-the-henon-map-with-dynamicalsystems-jl/70810 "2021-11-02T15:25:56Z")

</div>

Issue I am trying to compute the Lyapunov exponent of the Hénon map with b = 0.3 and a = 1.8 but the lyapunov function from DynamicalSystems.jl seems to not converge. Is there something I am doing wrong or is this expect…

---

## [Jupyter notebook -- disappearing cells?](https://discourse.julialang.org/t/jupyter-notebook-disappearing-cells/70726)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 7\
**Last updated:** [November 2, 2021, 3:07pm UTC](https://discourse.julialang.org/t/jupyter-notebook-disappearing-cells/70726 "2021-11-02T15:07:31Z")

</div>

I had a Jupyter notebook running in my browser, and suddenly I was told that there was a problem with connection to the server. It seemed like Julia had crashed… When I open notebooks after that, some cells don’t show i…

---

## [Julia program aborting when trying to run KrylovKit.svdsolve](https://discourse.julialang.org/t/julia-program-aborting-when-trying-to-run-krylovkit-svdsolve/70809)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 0\
**Last updated:** [November 2, 2021, 2:52pm UTC](https://discourse.julialang.org/t/julia-program-aborting-when-trying-to-run-krylovkit-svdsolve/70809 "2021-11-02T14:52:15Z")

</div>

I am trying to execute a simple SVD computation using the KrylovKit.svdsolve function. However not only does Julia report an error, but the program also terminates. It seems to me to be a problem with both the package as…

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

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