# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=154

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

**Page:** 155

---

## [Why would A \\ b grow with O(n^2)?](https://discourse.julialang.org/t/why-would-a-b-grow-with-o-n-2/106083)

<div class="topic-metadata">

**Author:** [@tawheeler](https://discourse.julialang.org/u/tawheeler)\
**Replies:** 5\
**Last updated:** [November 12, 2023, 8:03am UTC](https://discourse.julialang.org/t/why-would-a-b-grow-with-o-n-2/106083 "2023-11-12T08:03:00Z")

</div>

Hello, I was curious how long it would take my laptop to solve Ax = b for square A as a function of the problem size. I tried to profile it using BenchmarkTools: ns = \[1,2,3,5,7,10,20,30,50,70,100,200,300,500,700,1000,…

---

## [AD-able cubature](https://discourse.julialang.org/t/ad-able-cubature/106036)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 13\
**Last updated:** [November 11, 2023, 6:07pm UTC](https://discourse.julialang.org/t/ad-able-cubature/106036 "2023-11-11T18:07:24Z")

</div>

I have functions defined on \[0,1\]^4 \\times \[0,\\infty) that I want to integrate numerically, ideally in a way that I can use with an automatic differentiation framework. I know very little about these functions ex ante ot…

---

## [Plots.jl white marker with coloured stroke](https://discourse.julialang.org/t/plots-jl-white-marker-with-coloured-stroke/104888)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 5\
**Last updated:** [November 11, 2023, 3:49pm UTC](https://discourse.julialang.org/t/plots-jl-white-marker-with-coloured-stroke/104888 "2023-11-11T15:49:11Z")

</div>

Using the GR backend, I would like to have scatter plots where the inside of the markers are white whilst the edge/stroke is the color of the current palette. The problem is that setting markercolor=:white will also mak…

---

## [How do I flip the r-axis in polar plot?](https://discourse.julialang.org/t/how-do-i-flip-the-r-axis-in-polar-plot/106022)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 2\
**Last updated:** [November 10, 2023, 11:44pm UTC](https://discourse.julialang.org/t/how-do-i-flip-the-r-axis-in-polar-plot/106022 "2023-11-10T23:44:10Z")

</div>

I want to plot satellite track over a ground station, like how Gpredict and other ground station tool does it: In that polar plot, for the r-axis, 90 degrees is at the center and 0 degrees is at the edge. In Julia it…

---

## [ComponentArray of ArrayPartition](https://discourse.julialang.org/t/componentarray-of-arraypartition/106048)

<div class="topic-metadata">

**Author:** [@sand](https://discourse.julialang.org/u/sand)\
**Replies:** 9\
**Last updated:** [November 11, 2023, 9:56am UTC](https://discourse.julialang.org/t/componentarray-of-arraypartition/106048 "2023-11-11T09:56:56Z")

</div>

Hello, I am trying to use a ArrayPartition inside a ComponentArray. Here is a MRE: using ComponentArrays using RecursiveArrayTools var1 = ArrayPartition(randn(10), randn(10)); var2 = ComponentArray(a=randn(10), b=…

---

## [GPU kernel that is ~20x slower than corresponding CPU version](https://discourse.julialang.org/t/gpu-kernel-that-is-20x-slower-than-corresponding-cpu-version/105998)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 9\
**Last updated:** [November 10, 2023, 9:35pm UTC](https://discourse.julialang.org/t/gpu-kernel-that-is-20x-slower-than-corresponding-cpu-version/105998 "2023-11-10T21:35:39Z")

</div>

I have a 2D distance transform algorithm on the GPU that is around ~20x slower than its corresponding CPU version. I don’t know if this is an issue with the way the kernel was written or potentially to be expected on Met…

---

## [Expressions vs Variables+Constraints in JuMP models](https://discourse.julialang.org/t/expressions-vs-variables-constraints-in-jump-models/105979)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 6\
**Last updated:** [November 10, 2023, 8:24pm UTC](https://discourse.julialang.org/t/expressions-vs-variables-constraints-in-jump-models/105979 "2023-11-10T20:24:14Z")

</div>

Hello, and sorry for the naive question (optimization is not my primary field of expertise). And sorry if this is already discussed in the documentation; I didn’t see it. It seems to me that “expressions” in JuMP could …

---

## [Grouped boxplot - https://github.com/JuliaPlots/StatsPlots.jl/pull/192](https://discourse.julialang.org/t/grouped-boxplot-https-github-com-juliaplots-statsplots-jl-pull-192/44655)

<div class="topic-metadata">

**Author:** [@Ibrahim-a-Ibrahim](https://discourse.julialang.org/u/Ibrahim-a-Ibrahim)\
**Replies:** 7\
**Last updated:** [November 10, 2023, 6:37pm UTC](https://discourse.julialang.org/t/grouped-boxplot-https-github-com-juliaplots-statsplots-jl-pull-192/44655 "2023-11-10T18:37:25Z")

</div>

I have a 3D array (24×3×3 Array{Float64,3}) as follows: x=rand(24,2,3) How can I plot a grouped boxplot for x as shown in the following figure?

---

## [Plotting polyhedron with Makie](https://discourse.julialang.org/t/plotting-polyhedron-with-makie/41306)

<div class="topic-metadata">

**Author:** [@jerjorg](https://discourse.julialang.org/u/jerjorg)\
**Replies:** 4\
**Last updated:** [November 10, 2023, 3:49pm UTC](https://discourse.julialang.org/t/plotting-polyhedron-with-makie/41306 "2023-11-10T15:49:52Z")

</div>

I am new to Julia and my question and problem may be really simple. I am trying to plot a polyhedron with Makie. I have been following the examples provided by the documentation for the Polyhedra package here and here, b…

---

## [Error writing down a JSON file with JSON.jl](https://discourse.julialang.org/t/error-writing-down-a-json-file-with-json-jl/106028)

<div class="topic-metadata">

**Author:** [@PatrickeTownsend](https://discourse.julialang.org/u/PatrickeTownsend)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 12:33pm UTC](https://discourse.julialang.org/t/error-writing-down-a-json-file-with-json-jl/106028 "2023-11-10T12:33:52Z")

</div>

Hello, I’m trying to export some data to a JSON format, the file is succesfully created with this function: function writeJSON() r = rand(3,3) N=3 data = \[Dict("x"=\> r\[i,1\],"y"=\> r\[i,2\],"z"=\>r\[i,3\]) for i=1…

---

## [Hide/Remove/Replace widgets from Makie.jl reactive plots](https://discourse.julialang.org/t/hide-remove-replace-widgets-from-makie-jl-reactive-plots/106029)

<div class="topic-metadata">

**Author:** [@eliascarv](https://discourse.julialang.org/u/eliascarv)\
**Replies:** 0\
**Last updated:** [November 10, 2023, 11:36am UTC](https://discourse.julialang.org/t/hide-remove-replace-widgets-from-makie-jl-reactive-plots/106029 "2023-11-10T11:36:52Z")

</div>

Hello everyone, I have a question about Makie. Just for context, I have a reactive plot that has a Makie.Colorbar, but when the Colorbar limits are equal it breaks. So my question is: Can I hide/remove the Colorbar or…

---

## [Adding custom color scales to plots](https://discourse.julialang.org/t/adding-custom-color-scales-to-plots/106004)

<div class="topic-metadata">

**Author:** [@jreaso](https://discourse.julialang.org/u/jreaso)\
**Replies:** 1\
**Last updated:** [November 10, 2023, 12:54am UTC](https://discourse.julialang.org/t/adding-custom-color-scales-to-plots/106004 "2023-11-10T00:54:33Z")

</div>

I have a line plot simply constructed from a vector x and a vector y, I have then computed a colors vector which corresponds to each x value. I want to add a color scale of sorts below my plot (or on the plot but below t…

---

## [Objective function value mysteriously negative with StochasticPrograms.jl](https://discourse.julialang.org/t/objective-function-value-mysteriously-negative-with-stochasticprograms-jl/106016)

<div class="topic-metadata">

**Author:** [@matt\_w](https://discourse.julialang.org/u/matt_w)\
**Replies:** 3\
**Last updated:** [November 9, 2023, 10:10pm UTC](https://discourse.julialang.org/t/objective-function-value-mysteriously-negative-with-stochasticprograms-jl/106016 "2023-11-09T22:10:28Z")

</div>

I am trying out Julia to model a stochastic network interdiction problem with the code below, where the objective of the first stage is to minimize the expected value of the second stage. However, I’ve encountered two (p…

---

## [Direct interface to Polars Rust library](https://discourse.julialang.org/t/direct-interface-to-polars-rust-library/99283)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 13\
**Last updated:** [November 9, 2023, 9:42pm UTC](https://discourse.julialang.org/t/direct-interface-to-polars-rust-library/99283 "2023-11-09T21:42:42Z")

</div>

There has been recent discussion about some benchmarking by the DuckDB folks with good results for DuckDB (“Well they would say that, wouldn’t they?” M. Rice-Davies) and Polars. Especially now that Polars supports readi…

---

## [How to make numbers/texts appear as one single text object in Makie?](https://discourse.julialang.org/t/how-to-make-numbers-texts-appear-as-one-single-text-object-in-makie/105977)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 3\
**Last updated:** [November 9, 2023, 7:13pm UTC](https://discourse.julialang.org/t/how-to-make-numbers-texts-appear-as-one-single-text-object-in-makie/105977 "2023-11-09T19:13:57Z")

</div>

When I generate vector graphics using CairoMakie, very often in the output figure (in .pdf) the axis numbers, labels and text (using text!() or Label()) consists of numbers and words which are ‘disconnected’ when I inspe…

---

## [Gradient of neural network parameters used inside of SMC simulation](https://discourse.julialang.org/t/gradient-of-neural-network-parameters-used-inside-of-smc-simulation/105967)

<div class="topic-metadata">

**Author:** [@YSanchezAraujo](https://discourse.julialang.org/u/YSanchezAraujo)\
**Replies:** 4\
**Last updated:** [November 9, 2023, 6:58pm UTC](https://discourse.julialang.org/t/gradient-of-neural-network-parameters-used-inside-of-smc-simulation/105967 "2023-11-09T18:58:28Z")

</div>

I’m working on implementing variational sequential monte carlo as per this paper A simplified version of the set of functions I’m using are: using Optimisers, Flux, ForwardDiff, Distributions, ...; # samples pa…

---

## [Mice for julia](https://discourse.julialang.org/t/mice-for-julia/60355)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 10\
**Last updated:** [November 9, 2023, 2:07pm UTC](https://discourse.julialang.org/t/mice-for-julia/60355 "2023-11-09T14:07:02Z")

</div>

is there a Julia version of this R package Multivariate Imputation by Chained Equations • mice or another package that is usable for Chained imputation in Julia?

---

## [Reduce image size and filter?](https://discourse.julialang.org/t/reduce-image-size-and-filter/105926)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 9:52pm UTC](https://discourse.julialang.org/t/reduce-image-size-and-filter/105926 "2023-11-08T21:52:39Z")

</div>

I’m working with a physically-based rendering image (HDR, units of radiance or irradiance in an RGB model) and I would like to create an unsharp mask from it, reducing the size and applying a box filter. I am not seeing …

---

## [Emulate GPU on CPU with CUDA.jl](https://discourse.julialang.org/t/emulate-gpu-on-cpu-with-cuda-jl/105961)

<div class="topic-metadata">

**Author:** [@A112s](https://discourse.julialang.org/u/A112s)\
**Replies:** 2\
**Last updated:** [November 8, 2023, 7:56pm UTC](https://discourse.julialang.org/t/emulate-gpu-on-cpu-with-cuda-jl/105961 "2023-11-08T19:56:40Z")

</div>

Pretty much as in the title. I am almost sure I heard about such option in one of the lectures on CUDA.jl, however I can’t find a way to achieve it. I want to run my unit tests in github actions, but having to use actua…

---

## [OrdinaryDiffEq solve: "TypeError in setfield!" when using MVector](https://discourse.julialang.org/t/ordinarydiffeq-solve-typeerror-in-setfield-when-using-mvector/105960)

<div class="topic-metadata">

**Author:** [@laikq](https://discourse.julialang.org/u/laikq)\
**Replies:** 0\
**Last updated:** [November 8, 2023, 4:20pm UTC](https://discourse.julialang.org/t/ordinarydiffeq-solve-typeerror-in-setfield-when-using-mvector/105960 "2023-11-08T16:20:53Z")

</div>

I get an error TypeError: in setfield!, expected Tuple{LinearAlgebra.LU{Float64, Matrix{Float64}, Vector{Int64}}, Base.RefValue{Int64}}, got a value of type Tuple{LinearAlgebra.LU{Float64, StaticArraysCore.MMatrix{4, 4…

---

## [Smith Normal Form?](https://discourse.julialang.org/t/smith-normal-form/105477)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [November 8, 2023, 5:44pm UTC](https://discourse.julialang.org/t/smith-normal-form/105477 "2023-11-08T17:44:40Z")

</div>

Does anyone have knowledge of packages for Smith Normal Form (e.g., SmithNormalForm.jl)? I did a simple test of SmithNormalForm.jl: Apart from the example in the GitHub page,… function smith seems to work: rectangula…

---

## [How to determine if a point given is within a line (two points)](https://discourse.julialang.org/t/how-to-determine-if-a-point-given-is-within-a-line-two-points/105896)

<div class="topic-metadata">

**Author:** [@Chamika\_Kasun](https://discourse.julialang.org/u/Chamika_Kasun)\
**Replies:** 12\
**Last updated:** [November 8, 2023, 5:41pm UTC](https://discourse.julialang.org/t/how-to-determine-if-a-point-given-is-within-a-line-two-points/105896 "2023-11-08T17:41:27Z")

</div>

I have got a line with two points and a single point. I need to check whether the single point is between the line (i.e. between the two points) given, including the two points given. How do I do that using Julia. …

---

## [Boundary conditions (?) in MethodOfLines.jl PDE](https://discourse.julialang.org/t/boundary-conditions-in-methodoflines-jl-pde/91725)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 23\
**Last updated:** [November 8, 2023, 4:36pm UTC](https://discourse.julialang.org/t/boundary-conditions-in-methodoflines-jl-pde/91725 "2023-11-08T16:36:14Z")

</div>

Hi everyone, I’m trying out the new capability to deal with integrals in MethodOfLines.jl (in the new main, v0.7.6). I’m trying to simply expand an ODE example into a PDE. For those of you interested, the ODE is a simpl…

---

## [Last slots available for "GPU programming with Julia" course with Tim Besard and Sam Omlin](https://discourse.julialang.org/t/last-slots-available-for-gpu-programming-with-julia-course-with-tim-besard-and-sam-omlin/105953)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 0\
**Last updated:** [November 8, 2023, 2:41pm UTC](https://discourse.julialang.org/t/last-slots-available-for-gpu-programming-with-julia-course-with-tim-besard-and-sam-omlin/105953 "2023-11-08T14:41:08Z")

</div>

---

## [Makie: Coordinates of objects in the "scene" coordinates?](https://discourse.julialang.org/t/makie-coordinates-of-objects-in-the-scene-coordinates/105907)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 2\
**Last updated:** [November 8, 2023, 7:42am UTC](https://discourse.julialang.org/t/makie-coordinates-of-objects-in-the-scene-coordinates/105907 "2023-11-08T07:42:43Z")

</div>

This is a continuation of the thread that I link at the end of this message. There I went off topic and so I thought it’s wiser to start a new thread instead of posting further questions there. My question is, how do y…

---

## [Tons of nodes in the Policy Graph, SDDP.jl package](https://discourse.julialang.org/t/tons-of-nodes-in-the-policy-graph-sddp-jl-package/103426)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 20\
**Last updated:** [November 8, 2023, 1:33am UTC](https://discourse.julialang.org/t/tons-of-nodes-in-the-policy-graph-sddp-jl-package/103426 "2023-11-08T01:33:24Z")

</div>

Hello everyone, Lately, I’ve been working on a hydropower expansion problem using the SDDP method and the SDDP.jl tools. Here are the most important things to understand about this problem: The horizon plan is for 5 …

---

## [Convert a non-allocating distance transform algorithm to GPU using KernelAbstractions.jl](https://discourse.julialang.org/t/convert-a-non-allocating-distance-transform-algorithm-to-gpu-using-kernelabstractions-jl/105726)

<div class="topic-metadata">

**Author:** [@Dale\_James\_Black](https://discourse.julialang.org/u/Dale_James_Black)\
**Replies:** 7\
**Last updated:** [November 7, 2023, 7:21pm UTC](https://discourse.julialang.org/t/convert-a-non-allocating-distance-transform-algorithm-to-gpu-using-kernelabstractions-jl/105726 "2023-11-07T19:21:33Z")

</div>

Hello. I have been hacking away at this for a few weeks now and still can’t figure out what is going on. I have a non-allocating 1D distance transform (Felzenswalb algorithm) that is easy to parallelize, as you can see …

---

## [Multiple solve, same script](https://discourse.julialang.org/t/multiple-solve-same-script/105874)

<div class="topic-metadata">

**Author:** [@martina.gherardi](https://discourse.julialang.org/u/martina.gherardi)\
**Replies:** 10\
**Last updated:** [November 7, 2023, 1:56pm UTC](https://discourse.julialang.org/t/multiple-solve-same-script/105874 "2023-11-07T13:56:47Z")

</div>

Hi, I would like to ask a question about the JuMP’s internal procedure for solving similar problems in the same script. I follow these steps: Write a model called MyMod Call optimize!(MyMod) to solve it Add some cons…

---

## [Finding the nearest way (line string) to a given point](https://discourse.julialang.org/t/finding-the-nearest-way-line-string-to-a-given-point/105882)

<div class="topic-metadata">

**Author:** [@Chamika\_Kasun](https://discourse.julialang.org/u/Chamika_Kasun)\
**Replies:** 6\
**Last updated:** [November 7, 2023, 12:57pm UTC](https://discourse.julialang.org/t/finding-the-nearest-way-line-string-to-a-given-point/105882 "2023-11-07T12:57:51Z")

</div>

I have got a few ways (i.e line strings) and a point, using the point, I need to find the closest way to a given point. How do I do that. Ignore the grey box and the small red circle in the image. ways\_map = Dict( "…

---

## [How to display an image in full screen on a second monitor?](https://discourse.julialang.org/t/how-to-display-an-image-in-full-screen-on-a-second-monitor/100796)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 14\
**Last updated:** [November 7, 2023, 12:41pm UTC](https://discourse.julialang.org/t/how-to-display-an-image-in-full-screen-on-a-second-monitor/100796 "2023-11-07T12:41:27Z")

</div>

Hello! I’m currently working on developing a program to control a Spatial Light Modulator (SLM), which is a lab equipment used in the field of Structured Light. Essentially, an SLM allows for the projection of interesti…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=153)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=155)
