# Latest

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

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

**Page:** 1203

---

## [Using MixtureModels (from Distributions.jl) in Turing? Issues with posterior prediction](https://discourse.julialang.org/t/using-mixturemodels-from-distributions-jl-in-turing-issues-with-posterior-prediction/71617)

<div class="topic-metadata">

**Author:** [@opera\_malenky](https://discourse.julialang.org/u/opera_malenky)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 3:48pm UTC](https://discourse.julialang.org/t/using-mixturemodels-from-distributions-jl-in-turing-issues-with-posterior-prediction/71617 "2021-11-18T15:48:23Z")

</div>

I am trying to fit a kernel mixture model in Turing. It seems to work for estimation, but gives an error when trying to use predict. I’d be curious if anyone has a suggestion for a fix. using Distributions, Turing # Un…

---

## [Micro benchmarks of kron for vectors](https://discourse.julialang.org/t/micro-benchmarks-of-kron-for-vectors/71689)

<div class="topic-metadata">

**Author:** [@goerch](https://discourse.julialang.org/u/goerch)\
**Replies:** 6\
**Last updated:** [November 18, 2021, 12:05pm UTC](https://discourse.julialang.org/t/micro-benchmarks-of-kron-for-vectors/71689 "2021-11-18T12:05:03Z")

</div>

Edit: corrected according to @jling \`s comment Inspired by another thread here is a micro benchmark of Base.kron for Vector using LinearAlgebra using BenchmarkTools function \_kron(A::Matrix, B::Matrix) C = zeros(s…

---

## [Long latex expressions in Pluto](https://discourse.julialang.org/t/long-latex-expressions-in-pluto/71718)

<div class="topic-metadata">

**Author:** [@fgerick](https://discourse.julialang.org/u/fgerick)\
**Replies:** 0\
**Last updated:** [November 18, 2021, 11:38am UTC](https://discourse.julialang.org/t/long-latex-expressions-in-pluto/71718 "2021-11-18T11:38:04Z")

</div>

Sometimes, using for example MultivariatePolynomials.jl, Pluto tries to render very large \\LaTeX expressions and (almost) freezes for a while. Of course this happens only when I forget to suppress the output which I don’…

---

## [Recommended way to use something like \`evalpoly\` with \`@turbo\` from LoopVectorization.jl](https://discourse.julialang.org/t/recommended-way-to-use-something-like-evalpoly-with-turbo-from-loopvectorization-jl/71706)

<div class="topic-metadata">

**Author:** [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 11:31am UTC](https://discourse.julialang.org/t/recommended-way-to-use-something-like-evalpoly-with-turbo-from-loopvectorization-jl/71706 "2021-11-18T11:31:00Z")

</div>

What is the recommended way to evaluate polynomials inside loops annotated by @turbo from LoopVectorization.jl? Apparently, neither @evalpoly nor evalpoly work directly. julia\> using LoopVectorization julia\> function f…

---

## [Allocation during access to "typed" field of mutable struct](https://discourse.julialang.org/t/allocation-during-access-to-typed-field-of-mutable-struct/56201)

<div class="topic-metadata">

**Author:** [@Dilchatto](https://discourse.julialang.org/u/Dilchatto)\
**Replies:** 11\
**Last updated:** [November 18, 2021, 11:16am UTC](https://discourse.julialang.org/t/allocation-during-access-to-typed-field-of-mutable-struct/56201 "2021-11-18T11:16:01Z")

</div>

I have following struct mutable struct Element{T\<:AbstractElement} \<: AbstractElement input::StringBuffer name::UnitRange{Int64} attributes::Union{Nothing, Attribute} value::Union{T, Nothing} parent:…

---

## [How to "localize" slicing an array?](https://discourse.julialang.org/t/how-to-localize-slicing-an-array/71691)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 3\
**Last updated:** [November 18, 2021, 9:15am UTC](https://discourse.julialang.org/t/how-to-localize-slicing-an-array/71691 "2021-11-18T09:15:01Z")

</div>

How can I “localize” slicing on dimension relative to “available” indices? In the example below, I would need L\[:, j\] to mean “get all elements along dimension 1 relative to elements present in skipzeros”. How can I do t…

---

## [Apple silicon full power](https://discourse.julialang.org/t/apple-silicon-full-power/70662)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 19\
**Last updated:** [November 18, 2021, 9:13am UTC](https://discourse.julialang.org/t/apple-silicon-full-power/70662 "2021-11-18T09:13:59Z")

</div>

First of all, I would like to thank for the efforts put in v1.7 that supports Apple silicon CPU :100: :bowing\_man: Just two years or so earlier, no body understands why Apple going away from standard GPU libraries like …

---

## [Makie meshscatter positioning and rotation of non-spherical markers](https://discourse.julialang.org/t/makie-meshscatter-positioning-and-rotation-of-non-spherical-markers/71660)

<div class="topic-metadata">

**Author:** [@hacklint](https://discourse.julialang.org/u/hacklint)\
**Replies:** 2\
**Last updated:** [November 18, 2021, 7:39am UTC](https://discourse.julialang.org/t/makie-meshscatter-positioning-and-rotation-of-non-spherical-markers/71660 "2021-11-18T07:39:19Z")

</div>

Hi, I have assumed (bad idea…) that for a non-spherical marker (eg a box) in meshscatter the position and center of rotation would be the center of the box. That seems not to be the case but rather one of the corners of…

---

## [Y.A.t.Q : Yet Another @threads Question](https://discourse.julialang.org/t/y-a-t-q-yet-another-threads-question/71541)

<div class="topic-metadata">

**Author:** [@kadir-gunel](https://discourse.julialang.org/u/kadir-gunel)\
**Replies:** 17\
**Last updated:** [November 18, 2021, 7:05am UTC](https://discourse.julialang.org/t/y-a-t-q-yet-another-threads-question/71541 "2021-11-18T07:05:21Z")

</div>

Hello, I am calculating the cosine distance between two vector spaces by using Distances.jl package. Since the vector spaces in comparison are large, I wanted to calculate cosine distances by using @threads. The proble…

---

## [Paradox of normalizing the biggest eigenvalue module to one](https://discourse.julialang.org/t/paradox-of-normalizing-the-biggest-eigenvalue-module-to-one/71664)

<div class="topic-metadata">

**Author:** [@ZhiyuanYao](https://discourse.julialang.org/u/ZhiyuanYao)\
**Replies:** 5\
**Last updated:** [November 18, 2021, 7:01am UTC](https://discourse.julialang.org/t/paradox-of-normalizing-the-biggest-eigenvalue-module-to-one/71664 "2021-11-18T07:01:00Z")

</div>

I run into an interesting but nasty problem in normalizing a matrix so that the largest eigenvalue module is one. The λ in convertMPS\_PBC2OBC should print one, but I got values slightly different from one. The minimum c…

---

## [Position Based Dynamics](https://discourse.julialang.org/t/position-based-dynamics/70559)

<div class="topic-metadata">

**Author:** [@vpuri3](https://discourse.julialang.org/u/vpuri3)\
**Replies:** 3\
**Last updated:** [November 18, 2021, 6:42am UTC](https://discourse.julialang.org/t/position-based-dynamics/70559 "2021-11-18T06:42:42Z")

</div>

hi all, I’m new to robotics and was wondering if anybody has thoughts on Position Based Dynamics methods: https://matthias-research.github.io/pages/publications/smallsteps.pdf. They seem to be able to account for constra…

---

## [Eigvals pinv](https://discourse.julialang.org/t/eigvals-pinv/67373)

<div class="topic-metadata">

**Author:** [@Jorge\_Silva](https://discourse.julialang.org/u/Jorge_Silva)\
**Replies:** 3\
**Last updated:** [November 18, 2021, 6:18am UTC](https://discourse.julialang.org/t/eigvals-pinv/67373 "2021-11-18T06:18:32Z")

</div>

I´m trying to implement a relatively complex model that I found in literature. It involves to calculate the spectrum of a linearized system in order to evaluate the stability of the steady-state solution. Thus I´m using …

---

## [Multi Dimensional Cubic Spline](https://discourse.julialang.org/t/multi-dimensional-cubic-spline/71687)

<div class="topic-metadata">

**Author:** [@tgautam03](https://discourse.julialang.org/u/tgautam03)\
**Replies:** 3\
**Last updated:** [November 18, 2021, 5:20am UTC](https://discourse.julialang.org/t/multi-dimensional-cubic-spline/71687 "2021-11-18T05:20:30Z")

</div>

Hi, I’ve a multi dimensional dataset (3 features and 1 label) and want to interpolate using cubic splines. I have found several documentations on interpolation in 2D but can’t find anything that’ll help with this. Lookin…

---

## [Is the problem the function or the dataset I'm trying to use?](https://discourse.julialang.org/t/is-the-problem-the-function-or-the-dataset-im-trying-to-use/71236)

<div class="topic-metadata">

**Author:** [@Andres\_Casarrubias](https://discourse.julialang.org/u/Andres_Casarrubias)\
**Replies:** 11\
**Last updated:** [November 18, 2021, 5:09am UTC](https://discourse.julialang.org/t/is-the-problem-the-function-or-the-dataset-im-trying-to-use/71236 "2021-11-18T05:09:22Z")

</div>

I’m new to Julia programming, so researching for my thesis I found the following code, but I can’t seem to grasp what the error is. The function main is supposed to take a dataset and then plot some results, but when I t…

---

## [Case Study: Percolation](https://discourse.julialang.org/t/case-study-percolation/71694)

<div class="topic-metadata">

**Author:** [@Oko](https://discourse.julialang.org/u/Oko)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 3:32am UTC](https://discourse.julialang.org/t/case-study-percolation/71694 "2021-11-18T03:32:28Z")

</div>

I was wondering if somebody could give me a quick summary of the current Julia ecosystem when it comes to percolation theory? I more or less tried to re-implement this Princeton University programming project but I woul…

---

## [Getting Archive tarballs out of gitlab](https://discourse.julialang.org/t/getting-archive-tarballs-out-of-gitlab/71536)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 4\
**Last updated:** [November 18, 2021, 1:24am UTC](https://discourse.julialang.org/t/getting-archive-tarballs-out-of-gitlab/71536 "2021-11-18T01:24:05Z")

</div>

I successfully created an archive tarball using the help from this website. I thought the documentation was not as clear as this blog. I do have a problem though. I thought I could create a gitlab repo, and inside t…

---

## [\[ANN\] ZChop.jl v0.3.5](https://discourse.julialang.org/t/ann-zchop-jl-v0-3-5/71616)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 0\
**Last updated:** [November 16, 2021, 10:04pm UTC](https://discourse.julialang.org/t/ann-zchop-jl-v0-3-5/71616 "2021-11-16T22:04:18Z")

</div>

ZChop.jl was written in December 2015. This is the first version with a new feature: Functions nchop and nchop!. This represents the culmination of a few hours of work. EDIT: The original function zchop does this: zcho…

---

## [SC21: "Comparing Julia to Performance Portable Parallel Programming Models for HPC"](https://discourse.julialang.org/t/sc21-comparing-julia-to-performance-portable-parallel-programming-models-for-hpc/71686)

<div class="topic-metadata">

**Author:** [@ImreSamu](https://discourse.julialang.org/u/ImreSamu)\
**Replies:** 2\
**Last updated:** [November 17, 2021, 10:01pm UTC](https://discourse.julialang.org/t/sc21-comparing-julia-to-performance-portable-parallel-programming-models-for-hpc/71686 "2021-11-17T22:01:36Z")

</div>

SCI21 paper: Comparing Julia to Performance Portable Parallel Programming Models for HPC \[pdf\] Index Terms—Julia, OpenMP, OpenCL, Kokkos, CUDA, HIP, Performance Portability, Programming Models, GPUs context: Present…

---

## [Test on each value of a vector](https://discourse.julialang.org/t/test-on-each-value-of-a-vector/71622)

<div class="topic-metadata">

**Author:** [@corny85](https://discourse.julialang.org/u/corny85)\
**Replies:** 5\
**Last updated:** [November 17, 2021, 7:09pm UTC](https://discourse.julialang.org/t/test-on-each-value-of-a-vector/71622 "2021-11-17T19:09:17Z")

</div>

Hello, I have a vector D and i want to test if all values are less than 1 or not. I’ve tried if(D\[k\]\<1 for k=1:size(D,1)) return true else return false end but it does not work. Thanks in advance for your he…

---

## [DataFrames, get a subset in which the value of a particular column is not missing](https://discourse.julialang.org/t/dataframes-get-a-subset-in-which-the-value-of-a-particular-column-is-not-missing/71680)

<div class="topic-metadata">

**Author:** [@doomphoenix-qxz](https://discourse.julialang.org/u/doomphoenix-qxz)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 8:37pm UTC](https://discourse.julialang.org/t/dataframes-get-a-subset-in-which-the-value-of-a-particular-column-is-not-missing/71680 "2021-11-17T20:37:40Z")

</div>

I’m probably doing something dumb here, but I have a DataFrame and I want to get all rows for which a particular column (which is called :Level and is type Union{Int, Missing}) is not missing. My first two tries (using D…

---

## [Function speed up, reduce allocations](https://discourse.julialang.org/t/function-speed-up-reduce-allocations/71647)

<div class="topic-metadata">

**Author:** [@david.brust](https://discourse.julialang.org/u/david.brust)\
**Replies:** 12\
**Last updated:** [November 17, 2021, 8:27pm UTC](https://discourse.julialang.org/t/function-speed-up-reduce-allocations/71647 "2021-11-17T20:27:53Z")

</div>

Hi, I am working on a combinatorial problem called Block Design: Block design - Wikipedia ( specifically Pairwise balanced uniform designs (2-designs or BIBDs) ) I try to group N=25 samples (e.g. integers 1:25) into “…

---

## [Simple method for converting float array to DateTime (or similar)?](https://discourse.julialang.org/t/simple-method-for-converting-float-array-to-datetime-or-similar/71621)

<div class="topic-metadata">

**Author:** [@ToddAnderson](https://discourse.julialang.org/u/ToddAnderson)\
**Replies:** 6\
**Last updated:** [November 17, 2021, 7:56pm UTC](https://discourse.julialang.org/t/simple-method-for-converting-float-array-to-datetime-or-similar/71621 "2021-11-17T19:56:43Z")

</div>

I have a time series with time recorded in a vector of floats in the format yyyy,mm,dd,HH,MM,SS.ssssss; i.e.: times = \[2017 09 06 00 00 04.911360\] This comes from the MATLAB datevec() function, which outputs a vector o…

---

## [Setfield.jl for parametric type](https://discourse.julialang.org/t/setfield-jl-for-parametric-type/71670)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 4:05pm UTC](https://discourse.julialang.org/t/setfield-jl-for-parametric-type/71670 "2021-11-17T16:05:55Z")

</div>

struct B{T, X, Y} x::X y::Y end B{T}(x::X, y::Y = 2) where {T, X, Y} = B{T, X, Y}(x, y) b = B{Int}(2,3) Setfield.@set b.x = 512 # fails

---

## [Dash.jl and interactive REPL?](https://discourse.julialang.org/t/dash-jl-and-interactive-repl/66197)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 7\
**Last updated:** [November 17, 2021, 6:32pm UTC](https://discourse.julialang.org/t/dash-jl-and-interactive-repl/66197 "2021-11-17T18:32:27Z")

</div>

Is there a way to have a Dash.jl application running while at the same time being able to use the REPL interactively?

---

## [Results NLP problem](https://discourse.julialang.org/t/results-nlp-problem/71673)

<div class="topic-metadata">

**Author:** [@Francisco\_Javier\_Mar](https://discourse.julialang.org/u/Francisco_Javier_Mar)\
**Replies:** 1\
**Last updated:** [November 17, 2021, 5:49pm UTC](https://discourse.julialang.org/t/results-nlp-problem/71673 "2021-11-17T17:49:58Z")

</div>

Hello. Could you clarify a question for me. I am having certain problems with my mathematical model, this model is non-linear and the ipopt is the solver chosen for the resolution of the problem. My model has its minimum…

---

## [Scoping in loops and multi-threading](https://discourse.julialang.org/t/scoping-in-loops-and-multi-threading/71675)

<div class="topic-metadata">

**Author:** [@rubaiyat](https://discourse.julialang.org/u/rubaiyat)\
**Replies:** 1\
**Last updated:** [November 17, 2021, 5:35pm UTC](https://discourse.julialang.org/t/scoping-in-loops-and-multi-threading/71675 "2021-11-17T17:35:25Z")

</div>

Hello everyone, I just started using multi-threading, and have a basic question about multi-threading with loops. This might be a bit of a duplicate on some other questions here (like this: PSA: Reasoning about scope ru…

---

## [Erroneous Codecov reporting with GitHub Actions](https://discourse.julialang.org/t/erroneous-codecov-reporting-with-github-actions/71672)

<div class="topic-metadata">

**Author:** [@pulsipher](https://discourse.julialang.org/u/pulsipher)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 4:40pm UTC](https://discourse.julialang.org/t/erroneous-codecov-reporting-with-github-actions/71672 "2021-11-17T16:40:37Z")

</div>

Until relatively recently, the coverage reports I received for InfiniteOpt.jl were fairly. However, now I am suddenly getting a lot of erroneous misses that tend to be mapped to end statements. Initially this behavior cr…

---

## [Block RW Metropolis Hastings](https://discourse.julialang.org/t/block-rw-metropolis-hastings/71640)

<div class="topic-metadata">

**Author:** [@donk\_fish](https://discourse.julialang.org/u/donk_fish)\
**Replies:** 1\
**Last updated:** [November 17, 2021, 4:29pm UTC](https://discourse.julialang.org/t/block-rw-metropolis-hastings/71640 "2021-11-17T16:29:42Z")

</div>

Hi Is there a package implementing a block RWMH algorithm? With block, I mean partitioning the parameter vector. Preferably one where I can choose the partition ex ante, but one with random blocks every draw works as w…

---

## [Can't convert numerical values to string in a DataFrame (Cannot convert String to Int64)](https://discourse.julialang.org/t/cant-convert-numerical-values-to-string-in-a-dataframe-cannot-convert-string-to-int64/71644)

<div class="topic-metadata">

**Author:** [@wizofe](https://discourse.julialang.org/u/wizofe)\
**Replies:** 5\
**Last updated:** [November 17, 2021, 4:22pm UTC](https://discourse.julialang.org/t/cant-convert-numerical-values-to-string-in-a-dataframe-cannot-convert-string-to-int64/71644 "2021-11-17T16:22:10Z")

</div>

Hi everyone, I want to replace all the numerical (Int) values of a column in a dataframe with a string (“ASD”). I am though getting an error that this isn’t possible. I also tried to use “1”, in which case it doesn’t re…

---

## [IntelliSense for a package](https://discourse.julialang.org/t/intellisense-for-a-package/71667)

<div class="topic-metadata">

**Author:** [@whatsthecraic](https://discourse.julialang.org/u/whatsthecraic)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 3:45pm UTC](https://discourse.julialang.org/t/intellisense-for-a-package/71667 "2021-11-17T15:45:53Z")

</div>

How do I enable intellisense when downloading a package from the internet? Say, for instance, if I clone https://github.com/JuliaWeb/HTTP.jl and open its folder by vscode, then the IDE displays the info message “Setting …

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

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