# Specific Domains

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

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

**Page:** 476

---

## [Multinomial accepts wrong parameters](https://discourse.julialang.org/t/multinomial-accepts-wrong-parameters/30917)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [November 10, 2019, 8:00pm UTC](https://discourse.julialang.org/t/multinomial-accepts-wrong-parameters/30917 "2019-11-10T20:00:35Z")

</div>

Distributions.Multinomial seems to accept a vector of probabilities that doesn’t sum to one, even if in the code reported in the documentation it should have ckeck\_args true by default. Why is that ? using Distributions…

---

## [Random numbers in \[0.f0,1.f0\]](https://discourse.julialang.org/t/random-numbers-in-0-f0-1-f0/30926)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 2\
**Last updated:** [November 10, 2019, 9:04pm UTC](https://discourse.julialang.org/t/random-numbers-in-0-f0-1-f0/30926 "2019-11-10T21:04:11Z")

</div>

Hi again, is there a simple way to have the same as this rand(\[0.f0,1.f0\],10) on the GPU? I need to generate random bits (in that case they’re Float32 but anyway), and trying the obvious thing refuses to work CuArray…

---

## [Numerical errors in logit normal model using Turing.jl](https://discourse.julialang.org/t/numerical-errors-in-logit-normal-model-using-turing-jl/30602)

<div class="topic-metadata">

**Author:** [@aammd](https://discourse.julialang.org/u/aammd)\
**Replies:** 27\
**Last updated:** [November 9, 2019, 10:06pm UTC](https://discourse.julialang.org/t/numerical-errors-in-logit-normal-model-using-turing-jl/30602 "2019-11-09T22:06:05Z")

</div>

Hello everyone, This is my first post in a Julia forum! I have really been enjoying studying Turing.jl , Gen, and Julia in general. Thank you to all developers! I am trying to fit a simple “logit normal” model, that is…

---

## [For loop expression evaluation in DifferEq solver](https://discourse.julialang.org/t/for-loop-expression-evaluation-in-differeq-solver/30563)

<div class="topic-metadata">

**Author:** [@jbarazesh3](https://discourse.julialang.org/u/jbarazesh3)\
**Replies:** 12\
**Last updated:** [November 8, 2019, 12:54pm UTC](https://discourse.julialang.org/t/for-loop-expression-evaluation-in-differeq-solver/30563 "2019-11-08T12:54:16Z")

</div>

I am trying to evaluate strings within a for loop within an R script using JuliaCall::julia\_eval . While I was able to accomplish this in R using the deSolve package, I am running into issues when converting the code …

---

## [Kernel Compilation error- KernelError: recursion is currently not supported](https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853)

<div class="topic-metadata">

**Author:** [@Batel\_Str](https://discourse.julialang.org/u/Batel_Str)\
**Replies:** 8\
**Last updated:** [November 8, 2019, 10:36am UTC](https://discourse.julialang.org/t/kernel-compilation-error-kernelerror-recursion-is-currently-not-supported/30853 "2019-11-08T10:36:37Z")

</div>

Hi i wrote this kernel function: function gpu\_kernel\_init\_format(format\_img) gpu\_lab\_image =CuArrays.fill(128, (10,10,3)) i = (blockIdx().x - 1) \* blockDim().x + threadIdx().x j = (blockIdx().y - 1) \* blockDim().y + …

---

## [YALMIP vs JuMP](https://discourse.julialang.org/t/yalmip-vs-jump/30776)

<div class="topic-metadata">

**Author:** [@raktim](https://discourse.julialang.org/u/raktim)\
**Replies:** 13\
**Last updated:** [November 8, 2019, 7:19am UTC](https://discourse.julialang.org/t/yalmip-vs-jump/30776 "2019-11-08T07:19:23Z")

</div>

I compared JuMP and YALMIP’s performance in parsing convex problem. I noticed a difference in the problem size of the final optimization problem that is passed to Mosek. The problem from JuMP was quite large, than YALMIP…

---

## [Rolling Sum](https://discourse.julialang.org/t/rolling-sum/30793)

<div class="topic-metadata">

**Author:** [@ggjp](https://discourse.julialang.org/u/ggjp)\
**Replies:** 28\
**Last updated:** [November 7, 2019, 2:45pm UTC](https://discourse.julialang.org/t/rolling-sum/30793 "2019-11-07T14:45:36Z")

</div>

What is the recommended way of doing a rolling / moving sum? I’ve found packages RollingFunctions.jl and MarketTechnicals.jl, but neither has this.

---

## [Developing Julia interface for Plotly Dash](https://discourse.julialang.org/t/developing-julia-interface-for-plotly-dash/30533)

<div class="topic-metadata">

**Author:** [@waralex](https://discourse.julialang.org/u/waralex)\
**Replies:** 18\
**Last updated:** [November 7, 2019, 7:19am UTC](https://discourse.julialang.org/t/developing-julia-interface-for-plotly-dash/30533 "2019-11-07T07:19:09Z")

</div>

Hi. I’m new to Julia and I need a single-page interactive dashboard. So I wrote the prototype of Julia interface for Plotly Dash - package Dashboards.jl Now it has all the basic functionality of Dash - you can create …

---

## [What's wrong with this Flux model definitin?](https://discourse.julialang.org/t/whats-wrong-with-this-flux-model-definitin/30816)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 1\
**Last updated:** [November 7, 2019, 3:13am UTC](https://discourse.julialang.org/t/whats-wrong-with-this-flux-model-definitin/30816 "2019-11-07T03:13:57Z")

</div>

I am on the latest master branch of Flux.jl using Flux using CuArrays CuArrays.allowscalar(false) x = gpu(rand(Float32, 1\_000\_000, 2)) y = 2 .\* x + gpu(rand(Float32, 1\_000\_000)) w = gpu(rand(2, 1)) loss(x, y) = Flux.m…

---

## [Siggraph 2019](https://discourse.julialang.org/t/siggraph-2019/27281)

<div class="topic-metadata">

**Author:** [@Orbots](https://discourse.julialang.org/u/Orbots)\
**Replies:** 9\
**Last updated:** [November 6, 2019, 9:28pm UTC](https://discourse.julialang.org/t/siggraph-2019/27281 "2019-11-06T21:28:34Z")

</div>

Any other Julian’s in the Computer Graphics domain? Julia is such an excellent fit here. Look at all that numerical programming: Technical Papers - SIGGRAPH 2019 Sadly not a single mention of Julia that i ran across …

---

## [Efficient way to handle operator splitting (periodically updating solution mid-solve) in JuliaDiffEq](https://discourse.julialang.org/t/efficient-way-to-handle-operator-splitting-periodically-updating-solution-mid-solve-in-juliadiffeq/30757)

<div class="topic-metadata">

**Author:** [@jimmielin](https://discourse.julialang.org/u/jimmielin)\
**Replies:** 3\
**Last updated:** [November 6, 2019, 9:04pm UTC](https://discourse.julialang.org/t/efficient-way-to-handle-operator-splitting-periodically-updating-solution-mid-solve-in-juliadiffeq/30757 "2019-11-06T21:04:29Z")

</div>

I am writing a simple model of atmospheric chemistry in Julia using DifferentialEquations.jl to solve the chemical kinetics ODEs. While chemical kinetics can be modeled using a system of ODEs, some processes in modern a…

---

## [Code using Flux slow on GPU](https://discourse.julialang.org/t/code-using-flux-slow-on-gpu/30696)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 9\
**Last updated:** [November 6, 2019, 4:09pm UTC](https://discourse.julialang.org/t/code-using-flux-slow-on-gpu/30696 "2019-11-06T16:09:16Z")

</div>

I am trying to make Julia code running on GPU for quantile function regression where the probability distribution is specified by a linear combination of Bernstein polynomials and its parameters are linked to the covaria…

---

## [How to set xtick names in Gadfly plots?](https://discourse.julialang.org/t/how-to-set-xtick-names-in-gadfly-plots/30795)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 1\
**Last updated:** [November 6, 2019, 2:20pm UTC](https://discourse.julialang.org/t/how-to-set-xtick-names-in-gadfly-plots/30795 "2019-11-06T14:20:50Z")

</div>

Hi all, I would like to see letters A,B,C,D in the xticks positions of the plot example below. Please, how cold I set this? using Gadfly, Random set\_default\_plot\_size(14cm, 8cm) Random.seed!(1234) plot(x=rand(10), y=ra…

---

## [Some JuMP variables values are out of bounds](https://discourse.julialang.org/t/some-jump-variables-values-are-out-of-bounds/26008)

<div class="topic-metadata">

**Author:** [@KestutisMa](https://discourse.julialang.org/u/KestutisMa)\
**Replies:** 7\
**Last updated:** [November 6, 2019, 2:20pm UTC](https://discourse.julialang.org/t/some-jump-variables-values-are-out-of-bounds/26008 "2019-11-06T14:20:35Z")

</div>

Hi, I have problem while running optimization of our biophysical model (which is using Markov chain methodology): some parameter values during JuMP optimisation procedure are set to “0” by autodiff, but this is out of bo…

---

## [How can I read a MetaGraph in GML format?](https://discourse.julialang.org/t/how-can-i-read-a-metagraph-in-gml-format/30786)

<div class="topic-metadata">

**Author:** [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)\
**Replies:** 0\
**Last updated:** [November 6, 2019, 10:18am UTC](https://discourse.julialang.org/t/how-can-i-read-a-metagraph-in-gml-format/30786 "2019-11-06T10:18:26Z")

</div>

Hi! I have a graph with edge and node metadata in GML format, how can I read it into a MetaGraph? Thanks in advance,

---

## [Fast solving of a cubic equation?](https://discourse.julialang.org/t/fast-solving-of-a-cubic-equation/30779)

<div class="topic-metadata">

**Author:** [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Replies:** 6\
**Last updated:** [November 6, 2019, 6:09am UTC](https://discourse.julialang.org/t/fast-solving-of-a-cubic-equation/30779 "2019-11-06T06:09:16Z")

</div>

i just want to know if of all the existing polynomial root solving packages, there is one that solves cubic equations with the exact formula (cardano’s method)

---

## ["Module Parsers is missing from the cache"](https://discourse.julialang.org/t/module-parsers-is-missing-from-the-cache/30765)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 1\
**Last updated:** [November 5, 2019, 7:08pm UTC](https://discourse.julialang.org/t/module-parsers-is-missing-from-the-cache/30765 "2019-11-05T19:08:53Z")

</div>

I made some changes to my package and then tried running it with workers. Now I get these errors on the workers: Warning: Module Parsers with build ID 337459641262600 is missing from the cache. Cannot write cache file …

---

## [How to read the @objective command?](https://discourse.julialang.org/t/how-to-read-the-objective-command/30752)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 5\
**Last updated:** [November 5, 2019, 5:33pm UTC](https://discourse.julialang.org/t/how-to-read-the-objective-command/30752 "2019-11-05T17:33:30Z")

</div>

@objective (m,Min,sum (LS \[i, j\]\*C\[i, j\] for i, j ∈ 1:f)) How to make this expression read the for i,j. The way I did the error appears: syntax: invalid iteration specification

---

## [Overlay plot with second plot with second y-axis to the right?](https://discourse.julialang.org/t/overlay-plot-with-second-plot-with-second-y-axis-to-the-right/6558)

<div class="topic-metadata">

**Author:** [@LotteVictor](https://discourse.julialang.org/u/LotteVictor)\
**Replies:** 9\
**Last updated:** [November 5, 2019, 4:12pm UTC](https://discourse.julialang.org/t/overlay-plot-with-second-plot-with-second-y-axis-to-the-right/6558 "2019-11-05T16:12:57Z")

</div>

Currently I’m using RCall, to plot in R, but I’m trying to switch to plotting directly in Julia (in Juno IDE, on Linux mint). I’m trying to overlay a plot I made with Plots.jl using the GR backend with a second plot with…

---

## [Solver iterates then declares model infeasible - what could explain this behaviour for a linear problem?](https://discourse.julialang.org/t/solver-iterates-then-declares-model-infeasible-what-could-explain-this-behaviour-for-a-linear-problem/27702)

<div class="topic-metadata">

**Author:** [@gobs](https://discourse.julialang.org/u/gobs)\
**Replies:** 7\
**Last updated:** [November 5, 2019, 3:13pm UTC](https://discourse.julialang.org/t/solver-iterates-then-declares-model-infeasible-what-could-explain-this-behaviour-for-a-linear-problem/27702 "2019-11-05T15:13:11Z")

</div>

I’m solving a linear problem with JuMP and Gurobi, and for some formulations I end up getting the following behaviour: Academic license - for non-commercial use only Optimize a model with 6725 rows, 6346 columns and 172…

---

## [Finding the least norm solution of least squares problem with a sparse matrix](https://discourse.julialang.org/t/finding-the-least-norm-solution-of-least-squares-problem-with-a-sparse-matrix/30702)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 7:56pm UTC](https://discourse.julialang.org/t/finding-the-least-norm-solution-of-least-squares-problem-with-a-sparse-matrix/30702 "2019-11-04T19:56:10Z")

</div>

I have a matrix M which is the transpose of the Laplacian of a graph and a vector d that may or may not be in the range of M. I want to compute pinv(M)\*d. I assumed that qr(M)\\d does what I want, however it does it only…

---

## [KNITRO on Jupyter notebook & Atom](https://discourse.julialang.org/t/knitro-on-jupyter-notebook-atom/30542)

<div class="topic-metadata">

**Author:** [@SingingKim](https://discourse.julialang.org/u/SingingKim)\
**Replies:** 5\
**Last updated:** [November 4, 2019, 4:07pm UTC](https://discourse.julialang.org/t/knitro-on-jupyter-notebook-atom/30542 "2019-11-04T16:07:15Z")

</div>

Dear all, I am trying out KNITRO solver with a toy example: using JuMP, KNITRO model = JuMP.Model(with\_optimizer(KNITRO.Optimizer)) @variable(model, x1 \>= 0) @variable(model, x2 \>= 0) @constraint(model, -1.5 \* x1 + 2.0…

---

## [Toy Flux example with one paramemeter not working?](https://discourse.julialang.org/t/toy-flux-example-with-one-paramemeter-not-working/30679)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [November 4, 2019, 10:21am UTC](https://discourse.julialang.org/t/toy-flux-example-with-one-paramemeter-not-working/30679 "2019-11-04T10:21:34Z")

</div>

I am trying to write a blog for people with no background in machine learning using the Flux framework. However, I can’t seem to figure out how to get it to work. using Flux w = param(rand()) x = 1 y = 0.5 loss(x) = (w…

---

## [Upsampling in Flux.jl](https://discourse.julialang.org/t/upsampling-in-flux-jl/25919)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 7\
**Last updated:** [November 3, 2019, 9:28pm UTC](https://discourse.julialang.org/t/upsampling-in-flux-jl/25919 "2019-11-03T21:28:05Z")

</div>

I try to implement a convolutional auto-encoder with Flux.jl . I have a simple version working in python (Tensforflow Keras API). However the Flux.jl based model does not seem to converge and gives poor results even on t…

---

## [PGFPlotsX arrows and axes questions](https://discourse.julialang.org/t/pgfplotsx-arrows-and-axes-questions/30658)

<div class="topic-metadata">

**Author:** [@squirrel](https://discourse.julialang.org/u/squirrel)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 6:00pm UTC](https://discourse.julialang.org/t/pgfplotsx-arrows-and-axes-questions/30658 "2019-11-03T18:00:13Z")

</div>

using PGFPlotsX x = range(0, 5; length = 200) y = .√x plottheme = @pgf {no\_marks, blue} @pgf TikzPicture( Axis({ xmin = -4, xmax = 4, xtick = -5:1:5, ymin = -4, ymax = 4, ytick = -5:1:5, …

---

## [Lengauer Tarjan Algorithm (Dominator Tree)](https://discourse.julialang.org/t/lengauer-tarjan-algorithm-dominator-tree/30593)

<div class="topic-metadata">

**Author:** [@markusb](https://discourse.julialang.org/u/markusb)\
**Replies:** 2\
**Last updated:** [November 3, 2019, 1:50pm UTC](https://discourse.julialang.org/t/lengauer-tarjan-algorithm-dominator-tree/30593 "2019-11-03T13:50:03Z")

</div>

Dear all, does anyone know if the Lengauer Tarjan algorithm for creating a domiator tree from a given directed graph (i’m using LightGraphs) is already implemented in a package? thanks in advance Markus

---

## [Difference between functor and treelike in Flux?](https://discourse.julialang.org/t/difference-between-functor-and-treelike-in-flux/30641)

<div class="topic-metadata">

**Author:** [@zht](https://discourse.julialang.org/u/zht)\
**Replies:** 1\
**Last updated:** [November 3, 2019, 8:56am UTC](https://discourse.julialang.org/t/difference-between-functor-and-treelike-in-flux/30641 "2019-11-03T08:56:03Z")

</div>

In Flux some layers are decorated with @functor and some are with @treelike. I assume this is so that functions like params can find the parameters. What is the difference between the two? For example I think Chain, Dens…

---

## [Plot the Histogram of given data (txt. file with 3 columns)](https://discourse.julialang.org/t/plot-the-histogram-of-given-data-txt-file-with-3-columns/30621)

<div class="topic-metadata">

**Author:** [@Haider17233](https://discourse.julialang.org/u/Haider17233)\
**Replies:** 5\
**Last updated:** [November 3, 2019, 8:51am UTC](https://discourse.julialang.org/t/plot-the-histogram-of-given-data-txt-file-with-3-columns/30621 "2019-11-03T08:51:09Z")

</div>

Histogram of the absolute frequencies (use classes of width 0.5°C) and additional plot with the histogram of the relative frequencies. Please plot the relative frequencies of the temperatures in the month October over t…

---

## [Export Vegalite Plot with Basic Interactivity](https://discourse.julialang.org/t/export-vegalite-plot-with-basic-interactivity/30603)

<div class="topic-metadata">

**Author:** [@Usor](https://discourse.julialang.org/u/Usor)\
**Replies:** 2\
**Last updated:** [November 2, 2019, 4:16pm UTC](https://discourse.julialang.org/t/export-vegalite-plot-with-basic-interactivity/30603 "2019-11-02T16:16:26Z")

</div>

After having opened a Vegalite plot in a compatible window, without having written any interactivity code, there is basic interactivity in the form of hovering over a piece causing information to pop up. If you save this…

---

## [Sparse arrays "\\"](https://discourse.julialang.org/t/sparse-arrays/30606)

<div class="topic-metadata">

**Author:** [@JuhaHeiskala](https://discourse.julialang.org/u/JuhaHeiskala)\
**Replies:** 2\
**Last updated:** [November 2, 2019, 9:00am UTC](https://discourse.julialang.org/t/sparse-arrays/30606 "2019-11-02T09:00:44Z")

</div>

Apparently “A\\b” is not fully supported for both A and b being sparse arrays. using SparseArrays A=sprand(10,10,0.4) b=sprand(10,10,0.3) A\\b ERROR: MethodError: no method matching ldiv!(::SuiteSparse.UMFPACK.Umfpack…

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

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