# Latest

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

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

**Page:** 1042

---

## [Makie scatter image marker no longer work](https://discourse.julialang.org/t/makie-scatter-image-marker-no-longer-work/80727)

<div class="topic-metadata">

**Author:** [@babaq](https://discourse.julialang.org/u/babaq)\
**Replies:** 4\
**Last updated:** [May 13, 2022, 8:05am UTC](https://discourse.julialang.org/t/makie-scatter-image-marker-no-longer-work/80727 "2022-05-13T08:05:40Z")

</div>

I just found my old code not working any more: Makie.scatter(1:2, 1:2,marker = \[rand(Gray,3,3),rand(Gray,3,3)\], markersize=30) my julia version is 1.7.2 on win10, GLMakie is 0.5.5. list of buildin marker works, for ex…

---

## [ArchGDAL error after recent update](https://discourse.julialang.org/t/archgdal-error-after-recent-update/80987)

<div class="topic-metadata">

**Author:** [@scotts](https://discourse.julialang.org/u/scotts)\
**Replies:** 2\
**Last updated:** [May 13, 2022, 8:03am UTC](https://discourse.julialang.org/t/archgdal-error-after-recent-update/80987 "2022-05-13T08:03:21Z")

</div>

I had some very basic geocode working for plotting a tif file that has recently stopped working. It’s very basic, from here: https://www.acgeospatial.co.uk/julia-prt3/ using ArchGDAL, Plots, Colors, Images, GeoData con…

---

## [Cross-platform (CPU/GPU) data structure for linear algebra](https://discourse.julialang.org/t/cross-platform-cpu-gpu-data-structure-for-linear-algebra/79877)

<div class="topic-metadata">

**Author:** [@FireCrumb](https://discourse.julialang.org/u/FireCrumb)\
**Replies:** 3\
**Last updated:** [May 13, 2022, 7:26am UTC](https://discourse.julialang.org/t/cross-platform-cpu-gpu-data-structure-for-linear-algebra/79877 "2022-05-13T07:26:20Z")

</div>

Hi, I’m building an ML application, and want to pass around a data structure that contains several scalars/arrays/vertices/matrices. The dimension will be determined at runtime, depending on input dataset etc. The nume…

---

## [Type parameter for each struct in \`Vararg\`](https://discourse.julialang.org/t/type-parameter-for-each-struct-in-vararg/80142)

<div class="topic-metadata">

**Author:** [@tictaccat](https://discourse.julialang.org/u/tictaccat)\
**Replies:** 2\
**Last updated:** [May 13, 2022, 6:37am UTC](https://discourse.julialang.org/t/type-parameter-for-each-struct-in-vararg/80142 "2022-05-13T06:37:58Z")

</div>

I have the function f(args::Vararg{MyStruct{T, V}}) where {T,V}. However, I would actually like to allow the V’s to be completely different (possibly not even promotable) for different elements of the Vararg, but I would…

---

## [Controls variables for ODESystem](https://discourse.julialang.org/t/controls-variables-for-odesystem/78204)

<div class="topic-metadata">

**Author:** [@jedforrest](https://discourse.julialang.org/u/jedforrest)\
**Replies:** 1\
**Last updated:** [May 13, 2022, 6:31am UTC](https://discourse.julialang.org/t/controls-variables-for-odesystem/78204 "2022-05-13T06:31:08Z")

</div>

Hi all, I’m looking through the documentation on ODESystems in ModelingToolkit and came across the ctrls (control parameters) argument for ODESystems: ctrls Control parameters (some subset of ps ). This sounds lik…

---

## [Large matrix operations involving inversion](https://discourse.julialang.org/t/large-matrix-operations-involving-inversion/80993)

<div class="topic-metadata">

**Author:** [@Rajesh\_Nakka](https://discourse.julialang.org/u/Rajesh_Nakka)\
**Replies:** 5\
**Last updated:** [May 13, 2022, 5:57am UTC](https://discourse.julialang.org/t/large-matrix-operations-involving-inversion/80993 "2022-05-13T05:57:35Z")

</div>

In a particular problem, I have the following set of three evaluations involving matrices A, B, C of the SparseMatrixCSC type as B' \* A^{-} \* B B' \* A^{-} \* C C' \* A^{-} \* C Here, shape(A) = (n, n) shape(B) = (n, p…

---

## [Surprising error on example code from ModelingToolkit documentation!](https://discourse.julialang.org/t/surprising-error-on-example-code-from-modelingtoolkit-documentation/80867)

<div class="topic-metadata">

**Author:** [@ap2013](https://discourse.julialang.org/u/ap2013)\
**Replies:** 2\
**Last updated:** [May 13, 2022, 5:22am UTC](https://discourse.julialang.org/t/surprising-error-on-example-code-from-modelingtoolkit-documentation/80867 "2022-05-13T05:22:15Z")

</div>

I am having some issues with ModelingTookit. I tried to run the example copy-paste code from the documentation. Component-Based Modeling a Spring-Mass System · ModelingToolkit.jl using ModelingToolkit, Plots, Different…

---

## [NUTS speed is very slow for high dimension parameter inference in Turing.jl](https://discourse.julialang.org/t/nuts-speed-is-very-slow-for-high-dimension-parameter-inference-in-turing-jl/80349)

<div class="topic-metadata">

**Author:** [@zqn](https://discourse.julialang.org/u/zqn)\
**Replies:** 8\
**Last updated:** [May 13, 2022, 4:38am UTC](https://discourse.julialang.org/t/nuts-speed-is-very-slow-for-high-dimension-parameter-inference-in-turing-jl/80349 "2022-05-13T04:38:46Z")

</div>

Hi, I’m trying Turing.jl for a high dimension hyperparameter inference problem, and here’s a toy example. To estimate tureE using fake testx and testy, I’m using a NUTS which costs no less than 5 hours according to the p…

---

## [A question about how arrays work, how memory is allocated and what happen when chunks of code inside a function are moved into another function](https://discourse.julialang.org/t/a-question-about-how-arrays-work-how-memory-is-allocated-and-what-happen-when-chunks-of-code-inside-a-function-are-moved-into-another-function/80971)

<div class="topic-metadata">

**Author:** [@Andrea\_Vigliotti](https://discourse.julialang.org/u/Andrea_Vigliotti)\
**Replies:** 10\
**Last updated:** [May 13, 2022, 3:30am UTC](https://discourse.julialang.org/t/a-question-about-how-arrays-work-how-memory-is-allocated-and-what-happen-when-chunks-of-code-inside-a-function-are-moved-into-another-function/80971 "2022-05-13T03:30:32Z")

</div>

I am trying to understand how to speed up some code when going multithreading and I posted a question about this a few days ago here. while trying things out I encountered some behavior that I can’t explain, here it goe…

---

## [Debugger hanging in \`broadcast()\` function call](https://discourse.julialang.org/t/debugger-hanging-in-broadcast-function-call/80909)

<div class="topic-metadata">

**Author:** [@ckumarad](https://discourse.julialang.org/u/ckumarad)\
**Replies:** 4\
**Last updated:** [May 13, 2022, 1:15am UTC](https://discourse.julialang.org/t/debugger-hanging-in-broadcast-function-call/80909 "2022-05-13T01:15:46Z")

</div>

When interactively stepping over some code I’ve written, using the VSCode debugging mode, the debugger does not step over the blockRF\[...\] = ... line (I have waiting several minutes). Setting a breakpoint at any point af…

---

## [Debugging in VS Code has difference variable scope behavior](https://discourse.julialang.org/t/debugging-in-vs-code-has-difference-variable-scope-behavior/80226)

<div class="topic-metadata">

**Author:** [@msena](https://discourse.julialang.org/u/msena)\
**Replies:** 6\
**Last updated:** [May 13, 2022, 1:02am UTC](https://discourse.julialang.org/t/debugging-in-vs-code-has-difference-variable-scope-behavior/80226 "2022-05-13T01:02:02Z")

</div>

Hi, I am trying to debug some code and upon some experimentation it seems that the debugger in visual studio code has a different scoping behavior than when running stuff no the REPL? Consider the following example (may…

---

## [Failed to precompile Ipopt](https://discourse.julialang.org/t/failed-to-precompile-ipopt/80758)

<div class="topic-metadata">

**Author:** [@liuwa666](https://discourse.julialang.org/u/liuwa666)\
**Replies:** 14\
**Last updated:** [May 12, 2022, 11:25pm UTC](https://discourse.julialang.org/t/failed-to-precompile-ipopt/80758 "2022-05-12T23:25:39Z")

</div>

One of my project is dependent on PowerDynamics.jl, and PowerDynamics.jl is dependent on Ipopt.jl. Today when I was updating this project, the following situation occurs: pkg\> precompile Precompiling project... ✗ Ipop…

---

## [Does BilevelJuMP linearize terms (if possible) after reformulation?](https://discourse.julialang.org/t/does-bileveljump-linearize-terms-if-possible-after-reformulation/80981)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 11:20pm UTC](https://discourse.julialang.org/t/does-bileveljump-linearize-terms-if-possible-after-reformulation/80981 "2022-05-12T23:20:20Z")

</div>

How does BilevelJuMP.jl deal with non-linear terms in the complementarity conditions arising from the product of dual variables and the upper-level variables, especially when the upper-level variables are binary? For ex…

---

## [A better way to chose a random neighbor](https://discourse.julialang.org/t/a-better-way-to-chose-a-random-neighbor/80979)

<div class="topic-metadata">

**Author:** [@lsaravia](https://discourse.julialang.org/u/lsaravia)\
**Replies:** 3\
**Last updated:** [May 12, 2022, 11:05pm UTC](https://discourse.julialang.org/t/a-better-way-to-chose-a-random-neighbor/80979 "2022-05-12T23:05:25Z")

</div>

I am building a kind of cellular automata and I have a matrix and I would like to choose a random neighbour of a random position, the following is the way I found I wonder if there is a better more efficient way of doing…

---

## [Adding constant size vectors](https://discourse.julialang.org/t/adding-constant-size-vectors/80958)

<div class="topic-metadata">

**Author:** [@Fabrice\_Rosay](https://discourse.julialang.org/u/Fabrice_Rosay)\
**Replies:** 6\
**Last updated:** [May 12, 2022, 9:40pm UTC](https://discourse.julialang.org/t/adding-constant-size-vectors/80958 "2022-05-12T21:40:46Z")

</div>

I need to add two vectors of size 256. What would be the fastest way to do this? It needs to be as much optimized as possible as it will be inside an alpha-beta search. Sub questions would it be much faster if I use in…

---

## [Discourse layout changed (for worse) on phone](https://discourse.julialang.org/t/discourse-layout-changed-for-worse-on-phone/80934)

<div class="topic-metadata">

**Author:** [@albheim](https://discourse.julialang.org/u/albheim)\
**Replies:** 8\
**Last updated:** [May 12, 2022, 8:24pm UTC](https://discourse.julialang.org/t/discourse-layout-changed-for-worse-on-phone/80934 "2022-05-12T20:24:06Z")

</div>

Today discourse looked different on my phone. The site decided to be much wider than my screen so e.g. the titles in the list didn’t fold and the number of responses and time since last response appeared far outside of t…

---

## [Transducers/FLoops equivalent for mapreduce with dims arg (on GPU)](https://discourse.julialang.org/t/transducers-floops-equivalent-for-mapreduce-with-dims-arg-on-gpu/80767)

<div class="topic-metadata">

**Author:** [@Alex\_Ellison](https://discourse.julialang.org/u/Alex_Ellison)\
**Replies:** 9\
**Last updated:** [May 12, 2022, 7:41pm UTC](https://discourse.julialang.org/t/transducers-floops-equivalent-for-mapreduce-with-dims-arg-on-gpu/80767 "2022-05-12T19:41:30Z")

</div>

Hi all, Is it possible to write an equivalent of mapreduce(; dims) using either Transducers or FLoops? I’m interested in the NVidia GPU context. I want to do something like: julia\> begin using CUDA, LazyArrays …

---

## [Making Plots with discrete dots over sphere](https://discourse.julialang.org/t/making-plots-with-discrete-dots-over-sphere/80973)

<div class="topic-metadata">

**Author:** [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 6:33pm UTC](https://discourse.julialang.org/t/making-plots-with-discrete-dots-over-sphere/80973 "2022-05-12T18:33:36Z")

</div>

I’m trying to make a plot similar to this in Makie With the details that I know the size of each little circle, and they have a probability attach to them. My attempt fig, axis = meshscatter(V\[1,:\], V\[2,:\], V\[3,:\], …

---

## [Requesting code review for a mutable struct and use of pointers. (53 lines of code)](https://discourse.julialang.org/t/requesting-code-review-for-a-mutable-struct-and-use-of-pointers-53-lines-of-code/80954)

<div class="topic-metadata">

**Author:** [@ao222](https://discourse.julialang.org/u/ao222)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 6:34pm UTC](https://discourse.julialang.org/t/requesting-code-review-for-a-mutable-struct-and-use-of-pointers-53-lines-of-code/80954 "2022-05-12T18:34:46Z")

</div>

This is an implementation of a floyd cycle detection algorithm on a linked list. My goal is just to learn from the exercise. Is my mutable struct and constructor with two helper functions an acceptable way to approach t…

---

## [Converting units of time deltas](https://discourse.julialang.org/t/converting-units-of-time-deltas/63944)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 4\
**Last updated:** [May 12, 2022, 6:22pm UTC](https://discourse.julialang.org/t/converting-units-of-time-deltas/63944 "2022-05-12T18:22:40Z")

</div>

Let’s say I want to get the fractional hours elapsed between two times. I often have code that looks something like function hours\_elapsed(start, stop) millis = (stop - start).value return millis / (1000 \* 60 \* …

---

## [A question about parallel performance in multithreading](https://discourse.julialang.org/t/a-question-about-parallel-performance-in-multithreading/80743)

<div class="topic-metadata">

**Author:** [@Andrea\_Vigliotti](https://discourse.julialang.org/u/Andrea_Vigliotti)\
**Replies:** 10\
**Last updated:** [May 12, 2022, 5:25pm UTC](https://discourse.julialang.org/t/a-question-about-parallel-performance-in-multithreading/80743 "2022-05-12T17:25:36Z")

</div>

Hi all, I am trying to understand why do I get such poor performances from multithreading. The context is a finite element program, I need to loop over all the elements of the model and evaluate the residual force vect…

---

## [Parameter structures and restrictions](https://discourse.julialang.org/t/parameter-structures-and-restrictions/80892)

<div class="topic-metadata">

**Author:** [@Joao\_Barata](https://discourse.julialang.org/u/Joao_Barata)\
**Replies:** 13\
**Last updated:** [May 12, 2022, 3:48pm UTC](https://discourse.julialang.org/t/parameter-structures-and-restrictions/80892 "2022-05-12T15:48:21Z")

</div>

Hi, I’m using a parameter structure for use in an economic model in Julia. I’d like to know what are the best practices here, including the best way to include restrictions when generating and modifying a parameter stru…

---

## [DeepLabV3+ in Julia](https://discourse.julialang.org/t/deeplabv3-in-julia/80863)

<div class="topic-metadata">

**Author:** [@Yuji-github](https://discourse.julialang.org/u/Yuji-github)\
**Replies:** 5\
**Last updated:** [May 12, 2022, 3:45pm UTC](https://discourse.julialang.org/t/deeplabv3-in-julia/80863 "2022-05-12T15:45:55Z")

</div>

Assume input images are 128x128 (including segmentations) and extract layers from the backbone ResNet50. While calculating the loss values with Flux.dice\_coeff\_loss function, I got this error: “ERROR: MethodError: objec…

---

## [Scientific Notation in REPL](https://discourse.julialang.org/t/scientific-notation-in-repl/79841)

<div class="topic-metadata">

**Author:** [@yashi](https://discourse.julialang.org/u/yashi)\
**Replies:** 14\
**Last updated:** [May 12, 2022, 12:57pm UTC](https://discourse.julialang.org/t/scientific-notation-in-repl/79841 "2022-05-12T12:57:42Z")

</div>

Is there a way to temporally change show() not to use scientific notation in REPL? or at least print with specific power of n, ex. e3 or e12 ? I’m not used to using scientific notation and seeing two values in different…

---

## [\[ANN\] DiffPrivacyInference.jl - Infer differential privacy of your julia code](https://discourse.julialang.org/t/ann-diffprivacyinference-jl-infer-differential-privacy-of-your-julia-code/80963)

<div class="topic-metadata">

**Author:** [@ooovi](https://discourse.julialang.org/u/ooovi)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 2:56pm UTC](https://discourse.julialang.org/t/ann-diffprivacyinference-jl-infer-differential-privacy-of-your-julia-code/80963 "2022-05-12T14:56:02Z")

</div>

We proudly announce DiffPrivacyInference.jl, a package that lets you analyze julia code for its differential privacy! Its main purpose is enabling the implementaion of novel differentially private mechanisms, using prim…

---

## [VSCode environments getting mixed up](https://discourse.julialang.org/t/vscode-environments-getting-mixed-up/80889)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [May 12, 2022, 2:23pm UTC](https://discourse.julialang.org/t/vscode-environments-getting-mixed-up/80889 "2022-05-12T14:23:28Z")

</div>

I have chosen an environment, as shown by the downward arrow. However, when I execute the file, it gets executed in the wrong environment: it is the environment I got by “open folder”. Is this a bug, or am I doing …

---

## [How to change the PATH variable on VSCode Debugger](https://discourse.julialang.org/t/how-to-change-the-path-variable-on-vscode-debugger/80959)

<div class="topic-metadata">

**Author:** [@guilhermebodin](https://discourse.julialang.org/u/guilhermebodin)\
**Replies:** 0\
**Last updated:** [May 12, 2022, 2:23pm UTC](https://discourse.julialang.org/t/how-to-change-the-path-variable-on-vscode-debugger/80959 "2022-05-12T14:23:01Z")

</div>

Hi, I have a kind of complicated bat script that runs a julia executable inside, in order to use the debugger I would have to make an edition in the PATH environment variable, is this currently possible in the Debugger o…

---

## [Convex.jl and Icnn](https://discourse.julialang.org/t/convex-jl-and-icnn/80942)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 4\
**Last updated:** [May 12, 2022, 1:59pm UTC](https://discourse.julialang.org/t/convex-jl-and-icnn/80942 "2022-05-12T13:59:14Z")

</div>

Dear all, I would like to implement an Input Convex Neural Networks ICNN with the awesome convex.jl tool. The purpose to minimize a cost function. However, in order to get convexity with Icnn, weighting matrices are non…

---

## [How to modify JuMP model in-place to improve performance?](https://discourse.julialang.org/t/how-to-modify-jump-model-in-place-to-improve-performance/80563)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 14\
**Last updated:** [May 12, 2022, 1:28pm UTC](https://discourse.julialang.org/t/how-to-modify-jump-model-in-place-to-improve-performance/80563 "2022-05-12T13:28:47Z")

</div>

Hi all, I have a problem with improving the optimization speed of the JuMP model. My optimization problem is defined as follows: Below are some constants and assistant functions: using Distributions, LinearAlgebra us…

---

## [MethodError: no method matching (::var"#32#41")()](https://discourse.julialang.org/t/methoderror-no-method-matching-var-32-41/80955)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 1\
**Last updated:** [May 12, 2022, 1:28pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-var-32-41/80955 "2022-05-12T13:28:32Z")

</div>

Hello, I am new and in order to learn Julia I’m trying to follow this link and this one. I have defined everything and works without error. But when I try to use these solvers I get: ERROR: MethodError: no method matc…

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

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