# Specific Domains

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

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

**Page:** 442

---

## [CUDA device support](https://discourse.julialang.org/t/cuda-device-support/41161)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 7\
**Last updated:** [June 11, 2020, 1:42pm UTC](https://discourse.julialang.org/t/cuda-device-support/41161 "2020-06-11T13:42:15Z")

</div>

I have an old Nvidia 610M GPU on my laptop. It is not a powerful GPU but I wanted to play around and learn a bit of GPU computing. Although the GPU supports CUDA (I have version 9.1.112), I seem to encounter some problem…

---

## [Interactive Data Visualization](https://discourse.julialang.org/t/interactive-data-visualization/41133)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 9\
**Last updated:** [June 11, 2020, 1:20pm UTC](https://discourse.julialang.org/t/interactive-data-visualization/41133 "2020-06-11T13:20:26Z")

</div>

I have a bunch of data for several different companies. I’m interested in creating an interactive data visualization that I can share with colleagues. Ideally I’d have a drop down to select company (or other interesting …

---

## [Distribution in 1.4.2?](https://discourse.julialang.org/t/distribution-in-1-4-2/41113)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 1:11pm UTC](https://discourse.julialang.org/t/distribution-in-1-4-2/41113 "2020-06-11T13:11:34Z")

</div>

I am converting a lot between distributions. In Julia 1.2 , this code worked perfectly: Logistic(p::Logistic) = p; Normal(p::Normal) = p; Gumbel(p::Gumbel) = p; Logistic(p::Gumbel) = (ξ=0.68; Logistic(p.μ-p.θ\*log(log(2…

---

## [Bar plot with offset array](https://discourse.julialang.org/t/bar-plot-with-offset-array/41122)

<div class="topic-metadata">

**Author:** [@m.lavaiyan](https://discourse.julialang.org/u/m.lavaiyan)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 10:29am UTC](https://discourse.julialang.org/t/bar-plot-with-offset-array/41122 "2020-06-11T10:29:42Z")

</div>

Hi everyone, I want to plot a bar chart an array that starts from index 0. when I use plot() it works fine but when I use bar() it gives this error. How can I plot the bar chart? Thanks for any help! using JuMP, Stat…

---

## [Speeding up findmin for a matrix for hierarchical clustering](https://discourse.julialang.org/t/speeding-up-findmin-for-a-matrix-for-hierarchical-clustering/41049)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 8:02am UTC](https://discourse.julialang.org/t/speeding-up-findmin-for-a-matrix-for-hierarchical-clustering/41049 "2020-06-11T08:02:25Z")

</div>

I’ve written a hierarchical clustering algorithm and I would like to speed it up if possible. It seems that my limiting step is findmax(D) where D is my dissimilarity matrix. This is a LowerTriangular matrix (since the o…

---

## [Trying to solve a second order differential eqution](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-eqution/41160)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 8:01am UTC](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-eqution/41160 "2020-06-11T08:01:34Z")

</div>

Hello, Each time that I am trying to use PGFPlotsX (sinc a few days) I obtain this kind of error: ERROR: LoadError: ArgumentError: Package PGFPLotsX not found in current path: - Run \`import Pkg; Pkg.add("PGFPLotsX")\` t…

---

## [Implementing a custom Sampler in Distributions.jl](https://discourse.julialang.org/t/implementing-a-custom-sampler-in-distributions-jl/41066)

<div class="topic-metadata">

**Author:** [@nluetts](https://discourse.julialang.org/u/nluetts)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 5:53am UTC](https://discourse.julialang.org/t/implementing-a-custom-sampler-in-distributions-jl/41066 "2020-06-11T05:53:23Z")

</div>

I am trying to implement my own Sampler for a scaled and shifted Beta distribution with support in some arbitrary range \[a, b\]: using Distributions: Beta, Sampleable, Continuous, Univariate struct ScaledShiftedBetaSamp…

---

## [Relative tolerances for near-zero integrals](https://discourse.julialang.org/t/relative-tolerances-for-near-zero-integrals/41141)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 8\
**Last updated:** [June 11, 2020, 1:22am UTC](https://discourse.julialang.org/t/relative-tolerances-for-near-zero-integrals/41141 "2020-06-11T01:22:25Z")

</div>

I have a question somewhat unrelated to the previous discussion. What is a good way to specify relative tolerance in the case where the exact value of the integral is close to zero? I’ve looked at QuadGK internals and …

---

## [Turing.jl: fix some parameters to prior distribution](https://discourse.julialang.org/t/turing-jl-fix-some-parameters-to-prior-distribution/41095)

<div class="topic-metadata">

**Author:** [@MFairley](https://discourse.julialang.org/u/MFairley)\
**Replies:** 14\
**Last updated:** [June 10, 2020, 5:27pm UTC](https://discourse.julialang.org/t/turing-jl-fix-some-parameters-to-prior-distribution/41095 "2020-06-10T17:27:35Z")

</div>

I’m testing out Turing.jl and I’m wondering if I can specify a subset of parameters to remain fixed at their prior distribution. I would still like to sample these parameters to get a joint distribution with the other pa…

---

## [Numerical integration of cauchy principal value](https://discourse.julialang.org/t/numerical-integration-of-cauchy-principal-value/36059)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 6\
**Last updated:** [March 17, 2020, 4:46pm UTC](https://discourse.julialang.org/t/numerical-integration-of-cauchy-principal-value/36059 "2020-03-17T16:46:00Z")

</div>

I have an integral of the form: I = \\int\\limits\_{-1}^{1} f(x)\*w(x) dx, The function f(x) has a singularity of the form 1/(x-a) inside the interval \[-1, 1\], so that the integral I exists only as a cauchy principal value…

---

## [Workflow tips for MPI-based code](https://discourse.julialang.org/t/workflow-tips-for-mpi-based-code/41131)

<div class="topic-metadata">

**Author:** [@fverdugo](https://discourse.julialang.org/u/fverdugo)\
**Replies:** 0\
**Last updated:** [June 10, 2020, 2:39pm UTC](https://discourse.julialang.org/t/workflow-tips-for-mpi-based-code/41131 "2020-06-10T14:39:24Z")

</div>

Hi! I would be grateful if someone can help to speed-up my workflow when developing code based on MPI. The problem is that the code needs to be executed from the terminal: $ mpirun -np 5 julia my\_julia\_mpi\_code.jl w…

---

## [Calculating probability in normal distribution](https://discourse.julialang.org/t/calculating-probability-in-normal-distribution/40897)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 6\
**Last updated:** [June 10, 2020, 10:10am UTC](https://discourse.julialang.org/t/calculating-probability-in-normal-distribution/40897 "2020-06-10T10:10:58Z")

</div>

I want to calculate the probability of any particular value in a normal distribution. I suppose this is equivalent to calculating the percentile of a data point. Ideally some sort of function where I input a value and …

---

## [GeoStats.jl tutorials](https://discourse.julialang.org/t/geostats-jl-tutorials/41103)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 3\
**Last updated:** [June 10, 2020, 5:53am UTC](https://discourse.julialang.org/t/geostats-jl-tutorials/41103 "2020-06-10T05:53:22Z")

</div>

If you are interested in learning more about geostatistics, I am creating some content on YouTube: Feel free to suggest topics for next videos, I’d be happy to adjust the material. If you want to be noti…

---

## [Does Plots.jl/StatsPlots.jl have an equivalent to GadFly's Geom.subplot\_grid?](https://discourse.julialang.org/t/does-plots-jl-statsplots-jl-have-an-equivalent-to-gadflys-geom-subplot-grid/40594)

<div class="topic-metadata">

**Author:** [@pjentsch0](https://discourse.julialang.org/u/pjentsch0)\
**Replies:** 1\
**Last updated:** [June 10, 2020, 2:47am UTC](https://discourse.julialang.org/t/does-plots-jl-statsplots-jl-have-an-equivalent-to-gadflys-geom-subplot-grid/40594 "2020-06-10T02:47:56Z")

</div>

I’m looking for functionality similar to subplot\_grid in Gadfly.jl (Geom.subplot\_grid · Gadfly.jl), where grids of subplots can be given broader x/y labels. I would use Gadfly but all my other visualization is already u…

---

## [Graphical Exploratory Data Analysis in Julia with VegaLite/Gadfly/Plots](https://discourse.julialang.org/t/graphical-exploratory-data-analysis-in-julia-with-vegalite-gadfly-plots/40488)

<div class="topic-metadata">

**Author:** [@dlakelan](https://discourse.julialang.org/u/dlakelan)\
**Replies:** 34\
**Last updated:** [June 9, 2020, 6:54pm UTC](https://discourse.julialang.org/t/graphical-exploratory-data-analysis-in-julia-with-vegalite-gadfly-plots/40488 "2020-06-09T18:54:21Z")

</div>

I use R quite a bit for exploratory data analysis, data munging, visualization, and model fitting. I’m trying to simultaneously teach myself how to use Julia in this context, and write some tutorials. Here are some typi…

---

## [Portability of serialized files](https://discourse.julialang.org/t/portability-of-serialized-files/24733)

<div class="topic-metadata">

**Author:** [@tencnivel](https://discourse.julialang.org/u/tencnivel)\
**Replies:** 2\
**Last updated:** [May 30, 2019, 10:25pm UTC](https://discourse.julialang.org/t/portability-of-serialized-files/24733 "2019-05-30T22:25:14Z")

</div>

I’m trying to understand what the following actually means from the documentation of julia V1.1.0 about serialization https://pkg.julialang.org/docs/julia/THl1k/1.1.0/stdlib/Serialization.html: The read-back value will…

---

## [PTX JIT compilation failed with Flux and CUDAnative while using Flux](https://discourse.julialang.org/t/ptx-jit-compilation-failed-with-flux-and-cudanative-while-using-flux/41034)

<div class="topic-metadata">

**Author:** [@bafonso](https://discourse.julialang.org/u/bafonso)\
**Replies:** 3\
**Last updated:** [June 9, 2020, 2:37pm UTC](https://discourse.julialang.org/t/ptx-jit-compilation-failed-with-flux-and-cudanative-while-using-flux/41034 "2020-06-09T14:37:55Z")

</div>

This one is a bit weird, not sure it should be here or in Juno? Anyway, this code runs fine via reply from terminal but I get an error running this in Juno once it is using the GPU. The second part errors out. using Flu…

---

## [Construction of the objective function for a mathematical model](https://discourse.julialang.org/t/construction-of-the-objective-function-for-a-mathematical-model/40765)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 11\
**Last updated:** [June 9, 2020, 1:29pm UTC](https://discourse.julialang.org/t/construction-of-the-objective-function-for-a-mathematical-model/40765 "2020-06-09T13:29:11Z")

</div>

Could someone help me in the construction of this objective function? Every time I try to compile the same array error appears using JuMP, Cbc C1 = \[11; 11; 11; 11; 11\] C2 = \[50; 50; 50; 50; 50\] #Sets i = 80 #activiti…

---

## [Value of gradients with DiffEqFlux and solve](https://discourse.julialang.org/t/value-of-gradients-with-diffeqflux-and-solve/40982)

<div class="topic-metadata">

**Author:** [@MikeKlocCZ](https://discourse.julialang.org/u/MikeKlocCZ)\
**Replies:** 3\
**Last updated:** [June 9, 2020, 7:27am UTC](https://discourse.julialang.org/t/value-of-gradients-with-diffeqflux-and-solve/40982 "2020-06-09T07:27:46Z")

</div>

As recently announced, solve command is now compatible with Flux and should be used. I am confused about the value of the gradients which I obtain in these two very simple examples. using Flux, DiffEqFlux, DifferentialE…

---

## [Why does binarycrossentropy needs an index in a denoising autoencoder?](https://discourse.julialang.org/t/why-does-binarycrossentropy-needs-an-index-in-a-denoising-autoencoder/41013)

<div class="topic-metadata">

**Author:** [@swuyts](https://discourse.julialang.org/u/swuyts)\
**Replies:** 2\
**Last updated:** [June 9, 2020, 7:12am UTC](https://discourse.julialang.org/t/why-does-binarycrossentropy-needs-an-index-in-a-denoising-autoencoder/41013 "2020-06-09T07:12:44Z")

</div>

Hi there, I am still somewhat a rookie in Julia and Flux and I have problem understanding what is going on when I switch between crossentropy and binarycrossentropy loss functions. I coded the following simple denoisin…

---

## [Gadfly Geom.line not in order](https://discourse.julialang.org/t/gadfly-geom-line-not-in-order/41019)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 8\
**Last updated:** [June 9, 2020, 5:43am UTC](https://discourse.julialang.org/t/gadfly-geom-line-not-in-order/41019 "2020-06-09T05:43:31Z")

</div>

I produced a table that I then plotted. The plot is all wonky though, the values have mixed themselves up to make a perfect line. See below. graph = plot(a, x = :Years\_mean, y = :Overall\_mean, Geom.line) How do I g…

---

## [Pcolormesh equivalence in Plots?](https://discourse.julialang.org/t/pcolormesh-equivalence-in-plots/40941)

<div class="topic-metadata">

**Author:** [@axidio](https://discourse.julialang.org/u/axidio)\
**Replies:** 4\
**Last updated:** [June 8, 2020, 10:37pm UTC](https://discourse.julialang.org/t/pcolormesh-equivalence-in-plots/40941 "2020-06-08T22:37:19Z")

</div>

Is there a pcolormesh equivalence in Plots? I need to plot data in the format x1 y1 z1 x2 y2 z2 … where the (x, y) grid is not a rectangle. So heatmap is not an option. Thank you!

---

## [Workflow Suggestions: Post-processing ANSYS mechanical engineering data with Julia](https://discourse.julialang.org/t/workflow-suggestions-post-processing-ansys-mechanical-engineering-data-with-julia/41014)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 0\
**Last updated:** [June 8, 2020, 7:29pm UTC](https://discourse.julialang.org/t/workflow-suggestions-post-processing-ansys-mechanical-engineering-data-with-julia/41014 "2020-06-08T19:29:57Z")

</div>

I am new to both ANSYS and Julia. I would like to use Julia to process static structural and heat transfer data from the commercial ANSYS finite element software. I have computed several quantities of interest within ANS…

---

## [ITensors.jl: Custom SiteTypes](https://discourse.julialang.org/t/itensors-jl-custom-sitetypes/39717)

<div class="topic-metadata">

**Author:** [@amitjamadagni](https://discourse.julialang.org/u/amitjamadagni)\
**Replies:** 2\
**Last updated:** [June 8, 2020, 6:14pm UTC](https://discourse.julialang.org/t/itensors-jl-custom-sitetypes/39717 "2020-06-08T18:14:14Z")

</div>

Hello, I have been tweaking around with ITensors.jl package (GitHub - ITensor/ITensors.jl: A Julia library for efficient tensor computations and tensor network calculations) to create custom SitesTypes. I have tried the…

---

## [Interested in Constraints Programming & Optimization, have some basic questions](https://discourse.julialang.org/t/interested-in-constraints-programming-optimization-have-some-basic-questions/36274)

<div class="topic-metadata">

**Author:** [@GavinRay](https://discourse.julialang.org/u/GavinRay)\
**Replies:** 6\
**Last updated:** [June 8, 2020, 4:56pm UTC](https://discourse.julialang.org/t/interested-in-constraints-programming-optimization-have-some-basic-questions/36274 "2020-06-08T16:56:08Z")

</div>

I apologize in advance for how likely stupid this is going to come off, but I have a few questions and was hoping someone might be kind enough to offer some insight. I became interested in Logic/Constraints programming …

---

## [Statistics on random matrices](https://discourse.julialang.org/t/statistics-on-random-matrices/40776)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 6\
**Last updated:** [June 8, 2020, 3:46pm UTC](https://discourse.julialang.org/t/statistics-on-random-matrices/40776 "2020-06-08T15:46:25Z")

</div>

Hi, I am generating a lot of random matrices and want to study their statistical properties. Right now I am storing them in a 3-dimensional array, where the first two dimensions are the matrix sizes, let’s say square ma…

---

## [Write to MPS](https://discourse.julialang.org/t/write-to-mps/40995)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [June 8, 2020, 3:37pm UTC](https://discourse.julialang.org/t/write-to-mps/40995 "2020-06-08T15:37:02Z")

</div>

How does the MPS writer of Gurobi work? using JuMP, Gurobi model = Model(Gurobi.Optimizer) @variables(model, begin 0 \<= x \<= 5 0 \<= y \<= 10, Int z, Bin end) @objective(model, Max, x + 2y + 5z) @constraint…

---

## [ModelingToolkit: using it with parallel ensemble simulations](https://discourse.julialang.org/t/modelingtoolkit-using-it-with-parallel-ensemble-simulations/40963)

<div class="topic-metadata">

**Author:** [@MFairley](https://discourse.julialang.org/u/MFairley)\
**Replies:** 4\
**Last updated:** [June 8, 2020, 3:07pm UTC](https://discourse.julialang.org/t/modelingtoolkit-using-it-with-parallel-ensemble-simulations/40963 "2020-06-08T15:07:04Z")

</div>

I’m testing out ModelingToolkit to see if I can get a performance improvement. I’ve converted my prob using modelingtoolkitize(prob). I’m wondering if the ModelingToolkit prob is compatible with EnsembleProblem, and what…

---

## [A question about Fuzzy C-means code](https://discourse.julialang.org/t/a-question-about-fuzzy-c-means-code/40988)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 2\
**Last updated:** [June 8, 2020, 2:47pm UTC](https://discourse.julialang.org/t/a-question-about-fuzzy-c-means-code/40988 "2020-06-08T14:47:48Z")

</div>

using RDatasets, Clustering, Plots using DataFrames using CSV iris = dataset("datasets", "iris"); # load the data features = collect(Matrix(iris\[:, 1:4\])'); # features to use for clustering result = fuzzy\_cmeans(features…

---

## [Cplex.jl change parameters and display info](https://discourse.julialang.org/t/cplex-jl-change-parameters-and-display-info/40821)

<div class="topic-metadata">

**Author:** [@geoffroyleconte](https://discourse.julialang.org/u/geoffroyleconte)\
**Replies:** 4\
**Last updated:** [June 8, 2020, 9:19am UTC](https://discourse.julialang.org/t/cplex-jl-change-parameters-and-display-info/40821 "2020-06-08T09:19:04Z")

</div>

Hello, I am trying to use cplex.jl to solve linear problems without using JuMP or MOI. I want to use the barrier method without presolve and crossover/vertex, so I used these commands: CPLEX.set\_param!(env, "CPX\_PARAM…

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

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