# Specific Domains

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

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

**Page:** 357

---

## [DSGE estimation/inference game?](https://discourse.julialang.org/t/dsge-estimation-inference-game/63364)

<div class="topic-metadata">

**Author:** [@mcreel](https://discourse.julialang.org/u/mcreel)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 2:14pm UTC](https://discourse.julialang.org/t/dsge-estimation-inference-game/63364 "2021-06-22T14:14:43Z")

</div>

I’ve been working on a method for estimating a DSGE model and doing inference on parameters, and it seems to work pretty well, for a fairly simple model (https://github.com/mcreel/SimulatedNeuralMoments.jl/tree/main/exam…

---

## [Problem with ODELocalSensitivityProblem](https://discourse.julialang.org/t/problem-with-odelocalsensitivityproblem/63320)

<div class="topic-metadata">

**Author:** [@ap2013](https://discourse.julialang.org/u/ap2013)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 10:14am UTC](https://discourse.julialang.org/t/problem-with-odelocalsensitivityproblem/63320 "2021-06-22T10:14:55Z")

</div>

I am looking to use ODELocalSensitivityProblem to get the sensitivities of an ODE problem. I define two different problems from the same system (defined with ModellingToolkit) as follows probSens = ODELocalSensitivityP…

---

## [Factorize changes the float type from Float32 to Float64](https://discourse.julialang.org/t/factorize-changes-the-float-type-from-float32-to-float64/63308)

<div class="topic-metadata">

**Author:** [@Mohamed\_AbdElrahman](https://discourse.julialang.org/u/Mohamed_AbdElrahman)\
**Replies:** 3\
**Last updated:** [June 22, 2021, 10:10am UTC](https://discourse.julialang.org/t/factorize-changes-the-float-type-from-float32-to-float64/63308 "2021-06-22T10:10:13Z")

</div>

I’m solving a sparse linear system with Float32 precision for speed. The problem is the function factorize when taken input a ComplexF32 sparse matrix, the lu factors are ComplexF64. julia\> factorize(sprand(ComplexF3…

---

## [Getting different output for fft function in julia and matlab](https://discourse.julialang.org/t/getting-different-output-for-fft-function-in-julia-and-matlab/63349)

<div class="topic-metadata">

**Author:** [@juls](https://discourse.julialang.org/u/juls)\
**Replies:** 4\
**Last updated:** [June 22, 2021, 9:42am UTC](https://discourse.julialang.org/t/getting-different-output-for-fft-function-in-julia-and-matlab/63349 "2021-06-22T09:42:29Z")

</div>

In JULIA, 2×5 Array{Float64,2}: 0.801514 1.21987 1.1503 1.18761 1.2485 0.807469 1.22325 1.14981 1.1877 1.24861 when fft function from FFTW.jl on the above array gives output: 2×5 Array{Complex{Float64},2}: …

---

## [Addprocs with SSH and a ProxyJump times out](https://discourse.julialang.org/t/addprocs-with-ssh-and-a-proxyjump-times-out/26647)

<div class="topic-metadata">

**Author:** [@ararslan](https://discourse.julialang.org/u/ararslan)\
**Replies:** 7\
**Last updated:** [June 22, 2021, 6:21am UTC](https://discourse.julialang.org/t/addprocs-with-ssh-and-a-proxyjump-times-out/26647 "2021-06-22T06:21:00Z")

</div>

In my SSH config file, I have Host a User me HostName a.example.com Host b User me HostName b.example.com ProxyJump a I want to add b as a worker process from my local machine using addprocs. I’m …

---

## [Issue with ReinforcementLearning.jl BasicDQN with custom environment](https://discourse.julialang.org/t/issue-with-reinforcementlearning-jl-basicdqn-with-custom-environment/63264)

<div class="topic-metadata">

**Author:** [@SatvikDuddukuru](https://discourse.julialang.org/u/SatvikDuddukuru)\
**Replies:** 3\
**Last updated:** [June 22, 2021, 3:45am UTC](https://discourse.julialang.org/t/issue-with-reinforcementlearning-jl-basicdqn-with-custom-environment/63264 "2021-06-22T03:45:14Z")

</div>

I have recently started working with ReinforcementLearning.jl, and I went through the given examples to familiarize myself with the syntax. I have had success with the built-in environments, and most of my own custom env…

---

## [From DataFrame to multidimensional Array](https://discourse.julialang.org/t/from-dataframe-to-multidimensional-array/42977)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 9\
**Last updated:** [June 21, 2021, 9:41pm UTC](https://discourse.julialang.org/t/from-dataframe-to-multidimensional-array/42977 "2021-06-21T21:41:11Z")

</div>

Say I have a DataFrame with columns named :i, :j, :k that are positive integers, and meant jointly form a unique identifier. df also contains a column named :z that can be of any type that is meant to hold the data for i…

---

## [Makie - 3D mesh visualization of surface](https://discourse.julialang.org/t/makie-3d-mesh-visualization-of-surface/63306)

<div class="topic-metadata">

**Author:** [@paurierap](https://discourse.julialang.org/u/paurierap)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 5:11pm UTC](https://discourse.julialang.org/t/makie-3d-mesh-visualization-of-surface/63306 "2021-06-21T17:11:34Z")

</div>

Hi all, I am trying to plot the boundary of a rectangular 3D mesh with Gridap types. After the conversion to a Mesh type in GeometryBasics, my grid looks like this: Mesh{3, Float64, Triangle}: Triangle(\[0.0, 0.0, 0.0\]…

---

## [What does this error mean?](https://discourse.julialang.org/t/what-does-this-error-mean/49796)

<div class="topic-metadata">

**Author:** [@threadedblue](https://discourse.julialang.org/u/threadedblue)\
**Replies:** 10\
**Last updated:** [June 21, 2021, 3:52pm UTC](https://discourse.julialang.org/t/what-does-this-error-mean/49796 "2021-06-21T15:52:33Z")

</div>

I am attempting to use the Distributed package from: macOS to: Ubuntu. Julia 1.5.2 on both machines. The remote machine has ssh on port 2222 and not the usual 22. I attempted at one point to provide a bind address of …

---

## [Optimization on a manifold](https://discourse.julialang.org/t/optimization-on-a-manifold/59850)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 33\
**Last updated:** [June 21, 2021, 2:03pm UTC](https://discourse.julialang.org/t/optimization-on-a-manifold/59850 "2021-06-21T14:03:18Z")

</div>

This is both a conceptual question, and a practical one of what packages I could use to solve this. Problem statement I am trying to solve the following problem. Let a \\in \\mathbb{R}^M be a vector of parameters, and p \\…

---

## [The ultimate guide to distributed computing](https://discourse.julialang.org/t/the-ultimate-guide-to-distributed-computing/41867)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 44\
**Last updated:** [June 21, 2021, 11:02am UTC](https://discourse.julialang.org/t/the-ultimate-guide-to-distributed-computing/41867 "2021-06-21T11:02:41Z")

</div>

HOWTO: Distributed computing In this thread I would like to put together relevant information for people interested in distributing simple function calls on multiple cluster nodes. Although the task is simple, there are …

---

## [How to understand GP extrapolation shape](https://discourse.julialang.org/t/how-to-understand-gp-extrapolation-shape/62765)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 3\
**Last updated:** [June 21, 2021, 7:15am UTC](https://discourse.julialang.org/t/how-to-understand-gp-extrapolation-shape/62765 "2021-06-21T07:15:38Z")

</div>

using CairoMakie using KernelFunctions using AbstractGPs n = 30 x\_train = rand(n) .+ 1 y\_train = log.(x\_train) f = GP(Matern52Kernel()) fx = f(x\_train, 0.1) p\_fx = posterior(fx, y\_train) fig = Figure() Axis(fig\[1…

---

## [SMC with HMC Kernel](https://discourse.julialang.org/t/smc-with-hmc-kernel/62238)

<div class="topic-metadata">

**Author:** [@ParadaCarleton](https://discourse.julialang.org/u/ParadaCarleton)\
**Replies:** 3\
**Last updated:** [June 21, 2021, 7:06am UTC](https://discourse.julialang.org/t/smc-with-hmc-kernel/62238 "2021-06-21T07:06:53Z")

</div>

Is it possible to use an HMC or NUTS kernel with Turing’s SMC methods, e.g. as described here and implemented in TensorFlow Probability (which allows for using arbitrary kernels)?

---

## [Geodesy: how to calculate the straight line distance between two locations, which is represented by longitude and latitude?](https://discourse.julialang.org/t/geodesy-how-to-calculate-the-straight-line-distance-between-two-locations-which-is-represented-by-longitude-and-latitude/19984)

<div class="topic-metadata">

**Author:** [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Replies:** 29\
**Last updated:** [June 20, 2021, 10:00pm UTC](https://discourse.julialang.org/t/geodesy-how-to-calculate-the-straight-line-distance-between-two-locations-which-is-represented-by-longitude-and-latitude/19984 "2021-06-20T22:00:16Z")

</div>

Is the following the correct way to calculate the straight line distance between two points / locations by longitude and latitude? julia\> using Geodesy INFO: Precompiling module Geodesy. julia\> x\_lla = LLA(-27.468937, …

---

## [Modeling sum of k-smallest eigenvalues of a symmetric matrix in JuMP](https://discourse.julialang.org/t/modeling-sum-of-k-smallest-eigenvalues-of-a-symmetric-matrix-in-jump/63245)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 2\
**Last updated:** [June 20, 2021, 7:59pm UTC](https://discourse.julialang.org/t/modeling-sum-of-k-smallest-eigenvalues-of-a-symmetric-matrix-in-jump/63245 "2021-06-20T19:59:15Z")

</div>

Dear All, I am trying to model the following convex constraint in JuMP: \\sum\_{i=1}^{k} \\lambda\_i(X) \\geq c, where X \\in \\mathbf{S}^n (a symmetric matrix), c is a constant, and \\lambda\_1(X) \\leq \\lambda\_2(X) \\leq \\ldot…

---

## [SLIDE algorithm](https://discourse.julialang.org/t/slide-algorithm/38938)

<div class="topic-metadata">

**Author:** [@Emmanuel-R8](https://discourse.julialang.org/u/Emmanuel-R8)\
**Replies:** 2\
**Last updated:** [June 20, 2021, 3:08pm UTC](https://discourse.julialang.org/t/slide-algorithm/38938 "2021-06-20T15:08:57Z")

</div>

A recent algorithm developed by Rice University + Intel claims a ~3x speedup on CPU only as compared to Nvidia V100 and 10x speedup over Tensorflow CPU. https://insidehpc.com/2020/03/slide-algorithm-for-training-deep-ne…

---

## [Rename multiple files in the folder with Julia](https://discourse.julialang.org/t/rename-multiple-files-in-the-folder-with-julia/57976)

<div class="topic-metadata">

**Author:** [@baprata](https://discourse.julialang.org/u/baprata)\
**Replies:** 9\
**Last updated:** [June 20, 2021, 11:03am UTC](https://discourse.julialang.org/t/rename-multiple-files-in-the-folder-with-julia/57976 "2021-06-20T11:03:44Z")

</div>

I am working with 800 txt files in the same directory. I would like to rename all these files as follows: 1.txt 2.txt … 799.txt 800.txt How do you think this would be possible with Julia? Thanks in advance, Bruno …

---

## [Put all names on bar chart](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191)

<div class="topic-metadata">

**Author:** [@Paolo\_Jara](https://discourse.julialang.org/u/Paolo_Jara)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 11:20pm UTC](https://discourse.julialang.org/t/put-all-names-on-bar-chart/63191 "2021-06-19T23:20:08Z")

</div>

Hello, I am making a bar graph of the annual income for districts within each department. I have two problems, (i) when I make the bar graph not all the names of the districts appear and (ii) is there a format so that it…

---

## [How to Interpolate and Extrapolate with unevenly spaced data?](https://discourse.julialang.org/t/how-to-interpolate-and-extrapolate-with-unevenly-spaced-data/62812)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 6\
**Last updated:** [June 20, 2021, 3:33am UTC](https://discourse.julialang.org/t/how-to-interpolate-and-extrapolate-with-unevenly-spaced-data/62812 "2021-06-20T03:33:23Z")

</div>

Hi, I’ve been using BSplineKit to interpolate within my data that is unevenly sampled. But now I need to extrapolate somewhat past the edges of the data on either side, and that package sets the interpolation exactly to…

---

## [Creating a Table from Regex](https://discourse.julialang.org/t/creating-a-table-from-regex/63201)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 11:36pm UTC](https://discourse.julialang.org/t/creating-a-table-from-regex/63201 "2021-06-19T23:36:14Z")

</div>

It occurred to me that it would be nice to be able to create a table from a string by providing a regex that uses named groups. nushell’s parse function (docs, example) does this. A RegexMatch has all the right things …

---

## [ODE solvers - why is Matlab ode45 uncannily stable?](https://discourse.julialang.org/t/ode-solvers-why-is-matlab-ode45-uncannily-stable/63052)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 33\
**Last updated:** [June 19, 2021, 1:19pm UTC](https://discourse.julialang.org/t/ode-solvers-why-is-matlab-ode45-uncannily-stable/63052 "2021-06-19T13:19:02Z")

</div>

EDIT: Turns out I was being stupid and the reason for the discrepancies in this case was indeed a trivial tolerance setting. However, I learned a lot in this thread, so thank you to all the contributors and especially to…

---

## [How to set a reversed colormap in a heatmap definition](https://discourse.julialang.org/t/how-to-set-a-reversed-colormap-in-a-heatmap-definition/63155)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 2\
**Last updated:** [June 19, 2021, 3:01am UTC](https://discourse.julialang.org/t/how-to-set-a-reversed-colormap-in-a-heatmap-definition/63155 "2021-06-19T03:01:32Z")

</div>

For older Plots versions I found out that it was posssible to set the reversed colormap by c=:viridis\_r, but now it generates the error Unknown color: viridis\_r: using Plots h=0.05 y, x = range(-5, stop=5+h, step=h), …

---

## [Slow hierarchical ODE model with Turing](https://discourse.julialang.org/t/slow-hierarchical-ode-model-with-turing/63145)

<div class="topic-metadata">

**Author:** [@PavanChaggar](https://discourse.julialang.org/u/PavanChaggar)\
**Replies:** 4\
**Last updated:** [June 18, 2021, 8:03pm UTC](https://discourse.julialang.org/t/slow-hierarchical-ode-model-with-turing/63145 "2021-06-18T20:03:51Z")

</div>

Hello, I’m having a great deal of trouble with the current model I’m working on. I’ve talked about it in slack but still struggling so apologies for cross posting. It’s an hierarchical model with 30 subjects, each of w…

---

## [How to automatically determine number of cores provided by cluster?](https://discourse.julialang.org/t/how-to-automatically-determine-number-of-cores-provided-by-cluster/62544)

<div class="topic-metadata">

**Author:** [@DenisTitov](https://discourse.julialang.org/u/DenisTitov)\
**Replies:** 9\
**Last updated:** [June 18, 2021, 8:00pm UTC](https://discourse.julialang.org/t/how-to-automatically-determine-number-of-cores-provided-by-cluster/62544 "2021-06-18T20:00:19Z")

</div>

I often run parallel jobs on many nodes of HPC. My university cluster uses slurm and I use ClusterManagers.jl to submit jobs to many nodes. I love that it’s so easy to modify my code to run on 100s of cores! For examp…

---

## [No luck with WGLMakie in IJulia](https://discourse.julialang.org/t/no-luck-with-wglmakie-in-ijulia/63151)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 2\
**Last updated:** [June 18, 2021, 7:10pm UTC](https://discourse.julialang.org/t/no-luck-with-wglmakie-in-ijulia/63151 "2021-06-18T19:10:51Z")

</div>

I’m hoping to get basic interactive plots (e.g., manipulation of 3D axes) in IJulia. But following the basic instructions in the docs has not worked on both linux and MacOS. I’m using Julia 1.6, running IJulia.notebook(…

---

## [CUDA with IJulia results in unexpected errors](https://discourse.julialang.org/t/cuda-with-ijulia-results-in-unexpected-errors/56917)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 7\
**Last updated:** [June 18, 2021, 4:56pm UTC](https://discourse.julialang.org/t/cuda-with-ijulia-results-in-unexpected-errors/56917 "2021-06-18T16:56:33Z")

</div>

Hey, I’m observing a strange bug. The code base is quite large and therefore I couldn’t really break it down. But what I observe: Calling my complex function (4D CUDA Arrays, FFT) the first time, results in this error…

---

## [Interactive FFT with an intervalslider in Makie](https://discourse.julialang.org/t/interactive-fft-with-an-intervalslider-in-makie/63112)

<div class="topic-metadata">

**Author:** [@Flausi](https://discourse.julialang.org/u/Flausi)\
**Replies:** 3\
**Last updated:** [June 18, 2021, 1:52pm UTC](https://discourse.julialang.org/t/interactive-fft-with-an-intervalslider-in-makie/63112 "2021-06-18T13:52:18Z")

</div>

Hello, I have taken a relatively large amount of readings over time and would now like to look at them in detail. For this purpose I use an interval slider in Makie with which I can zoom into my data. This works already …

---

## [Batching in Flux 0.11.1](https://discourse.julialang.org/t/batching-in-flux-0-11-1/63105)

<div class="topic-metadata">

**Author:** [@sapo](https://discourse.julialang.org/u/sapo)\
**Replies:** 7\
**Last updated:** [June 18, 2021, 1:04pm UTC](https://discourse.julialang.org/t/batching-in-flux-0-11-1/63105 "2021-06-18T13:04:28Z")

</div>

Hello, for a dependency issue, I have to use Flux at version 0.11.1. I cannot understand how to use batches: julia\> using Flux julia\> d = Dense(5, 2) Dense(5, 2) julia\> d(rand(Float32, 5, 64)) |\> size (2, 64) julia\>…

---

## [Ghosting on contour plots of a (x,y)→Bool function](https://discourse.julialang.org/t/ghosting-on-contour-plots-of-a-x-y-bool-function/63110)

<div class="topic-metadata">

**Author:** [@owiecc](https://discourse.julialang.org/u/owiecc)\
**Replies:** 5\
**Last updated:** [June 18, 2021, 12:02pm UTC](https://discourse.julialang.org/t/ghosting-on-contour-plots-of-a-x-y-bool-function/63110 "2021-06-18T12:02:03Z")

</div>

I would like to plot of a (x,y) → Bool function as a contour plot. For the function I am plotting I get a lot of ghosting. The closer to 45° the line is the better it looks. Compare the heatmap to the contour plots: …

---

## [Clear observables created by @lift](https://discourse.julialang.org/t/clear-observables-created-by-lift/63127)

<div class="topic-metadata">

**Author:** [@phlavenk](https://discourse.julialang.org/u/phlavenk)\
**Replies:** 6\
**Last updated:** [June 18, 2021, 11:12am UTC](https://discourse.julialang.org/t/clear-observables-created-by-lift/63127 "2021-06-18T11:12:09Z")

</div>

What is the proper way of clearing the (perhaps wrong) @lift observable listeners? Following example has an error using WGLMakie time = Node(1.5) ξ = @lift( 1.0 \< $time \< 2.0 ? $time - 1.0 : 0.0\*err) #error, err not d…

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

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