# Specific Domains

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

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

**Page:** 335

---

## [Code review: Mandelbrot set with CUDA.jl](https://discourse.julialang.org/t/code-review-mandelbrot-set-with-cuda-jl/68673)

<div class="topic-metadata">

**Author:** [@vini-fda](https://discourse.julialang.org/u/vini-fda)\
**Replies:** 4\
**Last updated:** [September 24, 2021, 3:40pm UTC](https://discourse.julialang.org/t/code-review-mandelbrot-set-with-cuda-jl/68673 "2021-09-24T15:40:32Z")

</div>

Hello there! I’ve been experimenting with CUDA.jl and it has been a fantastic experience so far. Recently, I’ve made two simple implementations of the Mandelbrot Fractal using CUDA.jl(repository: https://github.com/vini-…

---

## [Subplot saving error related to latex](https://discourse.julialang.org/t/subplot-saving-error-related-to-latex/68700)

<div class="topic-metadata">

**Author:** [@ValeVolc](https://discourse.julialang.org/u/ValeVolc)\
**Replies:** 0\
**Last updated:** [September 24, 2021, 2:34pm UTC](https://discourse.julialang.org/t/subplot-saving-error-related-to-latex/68700 "2021-09-24T14:34:22Z")

</div>

Hi everyone! I’m dealing with a saving subplots issue. I created a subplots graph in a double for loop using Plots and LaTeXStrings, the graph is displayed correctly, I can save the graph with savefig, but it loses the…

---

## [Autodiff a partial cholesky decomposition](https://discourse.julialang.org/t/autodiff-a-partial-cholesky-decomposition/68580)

<div class="topic-metadata">

**Author:** [@spinkney](https://discourse.julialang.org/u/spinkney)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 10:50am UTC](https://discourse.julialang.org/t/autodiff-a-partial-cholesky-decomposition/68580 "2021-09-24T10:50:13Z")

</div>

I’m trying to write a reversible autodiff program with NiLang. It’s the partial cholesky decomposition. Written as a regular function it is. I’m open to writing this in another autodiff framework too. function partial\_c…

---

## [\[TANN\] View/Post-Process Analog Circuit Simulations](https://discourse.julialang.org/t/tann-view-post-process-analog-circuit-simulations/44658)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 7:42am UTC](https://discourse.julialang.org/t/tann-view-post-process-analog-circuit-simulations/44658 "2021-09-24T07:42:52Z")

</div>

(targeted announcement) Hi, I just stumbled on this topic which seems more-or-less related to my development. I know makers are less analog-oriented these days, but for those who wish to post-process analog simulation …

---

## [CairoMakie, LoadError: InexactError: Int64(2.5)](https://discourse.julialang.org/t/cairomakie-loaderror-inexacterror-int64-2-5/68662)

<div class="topic-metadata">

**Author:** [@Nextle](https://discourse.julialang.org/u/Nextle)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 6:28am UTC](https://discourse.julialang.org/t/cairomakie-loaderror-inexacterror-int64-2-5/68662 "2021-09-24T06:28:46Z")

</div>

Hello, I have a question about this error. I am doing an exercise to graph the supply-demand function using CairoMakie. I had no problems to place the scene and the layout but to graph the first curve I get this error me…

---

## [Reproducing rosenbrock example: can't see the candidate solution](https://discourse.julialang.org/t/reproducing-rosenbrock-example-cant-see-the-candidate-solution/68643)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 4:43am UTC](https://discourse.julialang.org/t/reproducing-rosenbrock-example-cant-see-the-candidate-solution/68643 "2021-09-24T04:43:34Z")

</div>

Hi, when I run the rosenbrock example in https://github.com/JuliaNLSolvers/Optim.jl/ using Optim rosenbrock(x) = (1.0 - x\[1\])^2 + 100.0 \* (x\[2\] - x\[1\]^2)^2 result = optimize(rosenbrock, zeros(2), BFGS()) I get this o…

---

## [Error when trying to run /FluxML/model-zoo/vision/vae\_mnist/vae\_mnist.jl on newer versions of CUDA, Flux](https://discourse.julialang.org/t/error-when-trying-to-run-fluxml-model-zoo-vision-vae-mnist-vae-mnist-jl-on-newer-versions-of-cuda-flux/68300)

<div class="topic-metadata">

**Author:** [@tylerjthomas9](https://discourse.julialang.org/u/tylerjthomas9)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 12:28am UTC](https://discourse.julialang.org/t/error-when-trying-to-run-fluxml-model-zoo-vision-vae-mnist-vae-mnist-jl-on-newer-versions-of-cuda-flux/68300 "2021-09-24T00:28:58Z")

</div>

I’m trying to run the file found here: https://github.com/FluxML/model-zoo/blob/master/vision/vae\_mnist/vae\_mnist.jl on newer versions of Flux, CUDA. CUDA = v3.4.2 Flux = v0.12.6 Do you know what could be causing erro…

---

## [Flattened data vs Flux.flatten layer](https://discourse.julialang.org/t/flattened-data-vs-flux-flatten-layer/68650)

<div class="topic-metadata">

**Author:** [@congUoM](https://discourse.julialang.org/u/congUoM)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 11:40pm UTC](https://discourse.julialang.org/t/flattened-data-vs-flux-flatten-layer/68650 "2021-09-23T23:40:20Z")

</div>

Hi all, I am trying to use the following MLP model (for MNIST) in the model zoo as a template for my work, and I have this problem: https://github.com/FluxML/model-zoo/blob/master/vision/mlp\_mnist/mlp\_mnist.jl I remo…

---

## [How can I calculate different vcov matrices after FixedEffectModels.jl?](https://discourse.julialang.org/t/how-can-i-calculate-different-vcov-matrices-after-fixedeffectmodels-jl/23200)

<div class="topic-metadata">

**Author:** [@flxho](https://discourse.julialang.org/u/flxho)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 11:12pm UTC](https://discourse.julialang.org/t/how-can-i-calculate-different-vcov-matrices-after-fixedeffectmodels-jl/23200 "2021-09-23T23:12:27Z")

</div>

Imagine that for some model we calculate standard errors clustered on one dimension, e.g. state: using DataFrames, RDatasets, FixedEffectModels df = dataset("plm", "Cigar") df\[:StateCategorical\] = categorical(df\[:State…

---

## [Do faster optimization with Cbc solver in JuMP](https://discourse.julialang.org/t/do-faster-optimization-with-cbc-solver-in-jump/46276)

<div class="topic-metadata">

**Author:** [@Luis\_Tormo](https://discourse.julialang.org/u/Luis_Tormo)\
**Replies:** 6\
**Last updated:** [September 23, 2021, 11:00pm UTC](https://discourse.julialang.org/t/do-faster-optimization-with-cbc-solver-in-jump/46276 "2021-09-23T23:00:44Z")

</div>

I am trying to do an optimization of a MILP problem with Cbc solver but it is too slow. I know that with CPLEX it is much faster but I need to use Cbc. Does anyone know of a resource to get it? Maybe multi-threading?

---

## [Projection from Lambert Conformal Conic to Lat/Lon](https://discourse.julialang.org/t/projection-from-lambert-conformal-conic-to-lat-lon/68629)

<div class="topic-metadata">

**Author:** [@Dieter](https://discourse.julialang.org/u/Dieter)\
**Replies:** 10\
**Last updated:** [September 23, 2021, 8:38pm UTC](https://discourse.julialang.org/t/projection-from-lambert-conformal-conic-to-lat-lon/68629 "2021-09-23T20:38:51Z")

</div>

Hello Community After taking a look at packages like ArchGDAL I have still no idea how to project coordinates from an arbitrary Lambert Conformal Conic projection, defined by standard\_parallel, latitude\_of\_projection\_or…

---

## [Is Convex.jl still working?](https://discourse.julialang.org/t/is-convex-jl-still-working/68624)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 12\
**Last updated:** [September 23, 2021, 6:19pm UTC](https://discourse.julialang.org/t/is-convex-jl-still-working/68624 "2021-09-23T18:19:30Z")

</div>

I would like to run an example for a class like the tutorials on Convex.jl, but these no longer work (they fail at the ‘solve’ step). I could use JUMP but I just want to do simple quadratic programming and the syntax o…

---

## [Regime-switching Model in Turing.jl](https://discourse.julialang.org/t/regime-switching-model-in-turing-jl/68614)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 5:07pm UTC](https://discourse.julialang.org/t/regime-switching-model-in-turing-jl/68614 "2021-09-23T17:07:46Z")

</div>

Is it possible to replicate this Stan model in Turing.jl? https://khakieconomics.github.io/2018/02/24/Regime-switching-models.html

---

## [Julia version of cv.getPerspectiveTransform?](https://discourse.julialang.org/t/julia-version-of-cv-getperspectivetransform/68553)

<div class="topic-metadata">

**Author:** [@vshesh](https://discourse.julialang.org/u/vshesh)\
**Replies:** 11\
**Last updated:** [September 23, 2021, 4:34pm UTC](https://discourse.julialang.org/t/julia-version-of-cv-getperspectivetransform/68553 "2021-09-23T16:34:40Z")

</div>

I want to create and use a projective transform matrix between four points in one coordinate system to four points in another coordinate system. Is there a way to do this in Julia? In OpenCV I can call cv.getPerspectiveT…

---

## [How to model seasonal data using GLM.jl](https://discourse.julialang.org/t/how-to-model-seasonal-data-using-glm-jl/46629)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 12:13pm UTC](https://discourse.julialang.org/t/how-to-model-seasonal-data-using-glm-jl/46629 "2021-09-23T12:13:05Z")

</div>

I would like to model some data that exhibits strong hourly seasonality. Additionally the data depends on the ambient temperature and if it is a holiday or workday. @formula(y ~ 1 + T\_amb + T\_amb^2 + hour\_of\_day(t)) O…

---

## [LaTeX with Makie(Layout)](https://discourse.julialang.org/t/latex-with-makie-layout/56454)

<div class="topic-metadata">

**Author:** [@darsnack](https://discourse.julialang.org/u/darsnack)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 10:51am UTC](https://discourse.julialang.org/t/latex-with-makie-layout/56454 "2021-09-23T10:51:31Z")

</div>

Is there a way to use LaTeX for the title and/or axis labels in Makie (the latest version with all the layout bells and whistles)? I saw MakieTeX.jl, but the README says to ask on Slack, but I put the Q here for permanen…

---

## [How to debug JuMP code (not debug model feasiblity, etc.) in VScode](https://discourse.julialang.org/t/how-to-debug-jump-code-not-debug-model-feasiblity-etc-in-vscode/68613)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 1\
**Last updated:** [September 23, 2021, 4:17am UTC](https://discourse.julialang.org/t/how-to-debug-jump-code-not-debug-model-feasiblity-etc-in-vscode/68613 "2021-09-23T04:17:32Z")

</div>

Hi, all When the jump macro is included in my code, the debug using vscode always jumps to some internal functions. What I want to ask is how to step through these codes without jumping into places where no breakpoints…

---

## [Interpolate 3d grid of datapoints](https://discourse.julialang.org/t/interpolate-3d-grid-of-datapoints/68485)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 7\
**Last updated:** [September 22, 2021, 8:34pm UTC](https://discourse.julialang.org/t/interpolate-3d-grid-of-datapoints/68485 "2021-09-22T20:34:22Z")

</div>

Hi, Is there any package in Julia for interpolating a 3d grid of datapoints (a typical cloud of non-regularly spaced datapoints)? I need it for plotting purposes only and I do not have a specific algorithm in mind. Tha…

---

## [Replacing only the data layer of points in a Makie figure with protrusions](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478)

<div class="topic-metadata">

**Author:** [@Adam\_Fleischhacker](https://discourse.julialang.org/u/Adam_Fleischhacker)\
**Replies:** 6\
**Last updated:** [September 22, 2021, 7:59pm UTC](https://discourse.julialang.org/t/replacing-only-the-data-layer-of-points-in-a-makie-figure-with-protrusions/68478 "2021-09-22T19:59:21Z")

</div>

I have a plot that requires a lot of code to create protrusions. So, it would be nice to just replace the data layer of the plot without messing with the protrusions. Is this possible? I have example code here: using…

---

## [One-sided MPI with Subarrays](https://discourse.julialang.org/t/one-sided-mpi-with-subarrays/63937)

<div class="topic-metadata">

**Author:** [@smillerc](https://discourse.julialang.org/u/smillerc)\
**Replies:** 4\
**Last updated:** [September 22, 2021, 7:13pm UTC](https://discourse.julialang.org/t/one-sided-mpi-with-subarrays/63937 "2021-09-22T19:13:05Z")

</div>

I’m having some issues getting a one-sided subarray MPI.Put to work. I’m trying to do a 2d halo exchange with an arbitrary number of halo cells. I’d like to move the jlo\_edge subarray on processor 1 to the jhi\_halo\_edge …

---

## [Flux.gradient returns dict of param and Nothing](https://discourse.julialang.org/t/flux-gradient-returns-dict-of-param-and-nothing/68457)

<div class="topic-metadata">

**Author:** [@sanderbboisen](https://discourse.julialang.org/u/sanderbboisen)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 4:09pm UTC](https://discourse.julialang.org/t/flux-gradient-returns-dict-of-param-and-nothing/68457 "2021-09-22T16:09:26Z")

</div>

Hi everyone, I am fairly new to Julia and Flux and I am trying to implement a WGAN-variant that I have implemented in Keras before. Full code for the issue can be found here. I keep getting gradients that consist of pa…

---

## [BlackBoxOptim hangs with multi-threaded optimization](https://discourse.julialang.org/t/blackboxoptim-hangs-with-multi-threaded-optimization/68454)

<div class="topic-metadata">

**Author:** [@cmarcotte](https://discourse.julialang.org/u/cmarcotte)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 2:54pm UTC](https://discourse.julialang.org/t/blackboxoptim-hangs-with-multi-threaded-optimization/68454 "2021-09-22T14:54:28Z")

</div>

Hi everyone, I had tried using BlackBoxOptim.jl for a parameter estimation problem, following this tutorial. In particular, I have a rather slow intermediate ODE system to solve which does not benefit from multithreadin…

---

## [DataLoaders.jl Workers systematically end up outside bounds](https://discourse.julialang.org/t/dataloaders-jl-workers-systematically-end-up-outside-bounds/62928)

<div class="topic-metadata">

**Author:** [@ClarkGuilty](https://discourse.julialang.org/u/ClarkGuilty)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 9:55am UTC](https://discourse.julialang.org/t/dataloaders-jl-workers-systematically-end-up-outside-bounds/62928 "2021-09-22T09:55:35Z")

</div>

Hello fellow Julians. I am trying to train a model using a parallel DataLoader, however, following the example from the documentation (available here: https://github.com/lorenzoh/DataLoaders.jl/blob/master/docs/dataconta…

---

## [How to read a graph from a GML file](https://discourse.julialang.org/t/how-to-read-a-graph-from-a-gml-file/68539)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 6:03am UTC](https://discourse.julialang.org/t/how-to-read-a-graph-from-a-gml-file/68539 "2021-09-22T06:03:38Z")

</div>

I cannot figure out how to get a graph definition from a GML file. I downloaded the following file https://github.com/empet/Datasets/blob/master/gstrang\_descendants.gml and tried with the following code: using Ligh…

---

## [AlphaZero.jl throwing CUDNNError (code 8)](https://discourse.julialang.org/t/alphazero-jl-throwing-cudnnerror-code-8/68367)

<div class="topic-metadata">

**Author:** [@victorromeo](https://discourse.julialang.org/u/victorromeo)\
**Replies:** 11\
**Last updated:** [September 22, 2021, 4:12am UTC](https://discourse.julialang.org/t/alphazero-jl-throwing-cudnnerror-code-8/68367 "2021-09-22T04:12:26Z")

</div>

Currently getting an error when trying the Connect Four example project using Julia v1.6.1 May I please get someone’s expertise to suggest where I’m going wrong. AlphaZero.jl was installed via Pkg, not source. julia\> …

---

## [Querying optimal solution without allocating memory](https://discourse.julialang.org/t/querying-optimal-solution-without-allocating-memory/68184)

<div class="topic-metadata">

**Author:** [@bsturt](https://discourse.julialang.org/u/bsturt)\
**Replies:** 4\
**Last updated:** [September 21, 2021, 5:33pm UTC](https://discourse.julialang.org/t/querying-optimal-solution-without-allocating-memory/68184 "2021-09-21T17:33:50Z")

</div>

I am implementing a large-scale decomposition method for solving a huge linear optimization problem. At each iteration of the algorithm, I need to efficiently obtain the optimal primal and dual solution to the LP. The al…

---

## [Comparison formula with random effect term \[StatsModels.jl\]](https://discourse.julialang.org/t/comparison-formula-with-random-effect-term-statsmodels-jl/68489)

<div class="topic-metadata">

**Author:** [@Yonghee\_Lee](https://discourse.julialang.org/u/Yonghee_Lee)\
**Replies:** 10\
**Last updated:** [September 21, 2021, 3:07pm UTC](https://discourse.julialang.org/t/comparison-formula-with-random-effect-term-statsmodels-jl/68489 "2021-09-21T15:07:07Z")

</div>

The follwing comparision between two formula with random effect term for MixedModels.jl gives false: @formula(y ~ 1 + x + (1 | z3) ) == @formula(y ~ 1 + x + (1 | z3) ) However, a comparision formula without random eff…

---

## [Assortativity coeficient in network analysis](https://discourse.julialang.org/t/assortativity-coeficient-in-network-analysis/68425)

<div class="topic-metadata">

**Author:** [@emchateau](https://discourse.julialang.org/u/emchateau)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 12:48pm UTC](https://discourse.julialang.org/t/assortativity-coeficient-in-network-analysis/68425 "2021-09-21T12:48:22Z")

</div>

Hi, For a network analysis, we are looking to calculate an assortativity coefficient or assortative mixing coefficient of a graph to state the homophily between two categories of nodes. LightGraphs have a assortativity …

---

## [Absolute value, abs(), on Gurobi solver](https://discourse.julialang.org/t/absolute-value-abs-on-gurobi-solver/68493)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 12:49pm UTC](https://discourse.julialang.org/t/absolute-value-abs-on-gurobi-solver/68493 "2021-09-21T12:49:48Z")

</div>

Hi all, is there a way to use absolute value e.g. abs(x) with JuMP/Gurobi? It seems like Gurobi supports it (see: https://www.gurobi.com/documentation/9.1/refman/py\_abs\_.html), but abs(x) is linked with a NLconstraint w…

---

## [Julia analogue of Python \`shelve\` module?](https://discourse.julialang.org/t/julia-analogue-of-python-shelve-module/68467)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [September 21, 2021, 11:52am UTC](https://discourse.julialang.org/t/julia-analogue-of-python-shelve-module/68467 "2021-09-21T11:52:28Z")

</div>

Do we have something similar to: 12.3. shelve — Python object persistence Warning: Because the shelve module is backed by pickle, it is insecure to load a shelf from an untrusted source. Like with pickle, loading a …

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

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