# Specific Domains

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

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

**Page:** 437

---

## [Kronecker times vector with special structure](https://discourse.julialang.org/t/kronecker-times-vector-with-special-structure/42477)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 10\
**Last updated:** [July 5, 2020, 4:39pm UTC](https://discourse.julialang.org/t/kronecker-times-vector-with-special-structure/42477 "2020-07-05T16:39:11Z")

</div>

I would like to evaluate (I\_1 \\otimes a\_2^\\top \\otimes I\_3) \\cdot \\theta where I\_1 and I\_3 are identity matrices with size n \\times n and m \\times m, a\_2 is a vector of length k, \\theta is a vector of length mnk. …

---

## [Automatic Parallelization in Julia](https://discourse.julialang.org/t/automatic-parallelization-in-julia/42543)

<div class="topic-metadata">

**Author:** [@Honza9723](https://discourse.julialang.org/u/Honza9723)\
**Replies:** 5\
**Last updated:** [July 5, 2020, 3:05am UTC](https://discourse.julialang.org/t/automatic-parallelization-in-julia/42543 "2020-07-05T03:05:08Z")

</div>

Dear All, I would like to ask you, whether there is some automatic parallelization tool in Julia similar to auto parallelization capabilities of Intel/gcc compilers for Fortran/C++. It would be really awesome if Julia c…

---

## [Flux.jl: Convolutional VAE throws error after upgrading to 1.4.1/10.4](https://discourse.julialang.org/t/flux-jl-convolutional-vae-throws-error-after-upgrading-to-1-4-1-10-4/39746)

<div class="topic-metadata">

**Author:** [@flo](https://discourse.julialang.org/u/flo)\
**Replies:** 19\
**Last updated:** [July 4, 2020, 7:55pm UTC](https://discourse.julialang.org/t/flux-jl-convolutional-vae-throws-error-after-upgrading-to-1-4-1-10-4/39746 "2020-07-04T19:55:26Z")

</div>

Hello everyone, I am fairly new to Julia and even newer to this forum. I hope, this is the right subforum for my problem. Currently, I am working on a project that involves a Convolutional VAE which I implemented using …

---

## [Flux.jl: Error thrown during gradient calculation in conv VAE](https://discourse.julialang.org/t/flux-jl-error-thrown-during-gradient-calculation-in-conv-vae/42397)

<div class="topic-metadata">

**Author:** [@alecokas](https://discourse.julialang.org/u/alecokas)\
**Replies:** 4\
**Last updated:** [July 4, 2020, 12:18pm UTC](https://discourse.julialang.org/t/flux-jl-error-thrown-during-gradient-calculation-in-conv-vae/42397 "2020-07-04T12:18:01Z")

</div>

Hi, I’m just getting into Flux (and Julia more generally), but I’m finding it impossible to get rid of a very particular error in my convolutional VAE model. The code runs fine until the back(1f0) line where it throws E…

---

## [Optimization problem with Julia - Launch sequence](https://discourse.julialang.org/t/optimization-problem-with-julia-launch-sequence/42311)

<div class="topic-metadata">

**Author:** [@beske](https://discourse.julialang.org/u/beske)\
**Replies:** 14\
**Last updated:** [July 3, 2020, 11:01pm UTC](https://discourse.julialang.org/t/optimization-problem-with-julia-launch-sequence/42311 "2020-07-03T23:01:58Z")

</div>

Say you have n different shops in which you want to launch a product for n different months, and you want to maximize profits. The problem is determining the order of the launch sequence of the product when the price in …

---

## [Using complements in JuMP](https://discourse.julialang.org/t/using-complements-in-jump/42486)

<div class="topic-metadata">

**Author:** [@jovansam](https://discourse.julialang.org/u/jovansam)\
**Replies:** 5\
**Last updated:** [July 3, 2020, 6:47pm UTC](https://discourse.julialang.org/t/using-complements-in-jump/42486 "2020-07-03T18:47:03Z")

</div>

I am trying to use complements in Julia-JuMP. I appreciate the work put into this wonderful package, the manual is not detailed enough unfortunately. A working example that uses this feature in an optimization problem w…

---

## [Objective function error](https://discourse.julialang.org/t/objective-function-error/42482)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 2\
**Last updated:** [July 3, 2020, 6:18pm UTC](https://discourse.julialang.org/t/objective-function-error/42482 "2020-07-03T18:18:41Z")

</div>

I need to reproduce that model. using JuMP, Cbc Model1 = Model(with\_optimizer(Cbc.Optimizer)) a = 2 t = 2 w = 2 A = 1:a T = 1:t W = 1:w CR = \[11, 11\] @variable(Model1,r\[A,T\], lower\_bound=0) @variable(Model1,o\[A…

---

## [Get to know the seed for the next CUDA random number](https://discourse.julialang.org/t/get-to-know-the-seed-for-the-next-cuda-random-number/42363)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 3\
**Last updated:** [July 3, 2020, 2:19pm UTC](https://discourse.julialang.org/t/get-to-know-the-seed-for-the-next-cuda-random-number/42363 "2020-07-03T14:19:57Z")

</div>

Hi, I’m struggling to debug a code that does random sampling, and for that I use CUDA random numbers. In order to be able to reproduce the same numbers in a second run of the code, I set the random number generator usin…

---

## [Fourier transform freezes Julia](https://discourse.julialang.org/t/fourier-transform-freezes-julia/38771)

<div class="topic-metadata">

**Author:** [@Martijn-R](https://discourse.julialang.org/u/Martijn-R)\
**Replies:** 5\
**Last updated:** [July 3, 2020, 12:56pm UTC](https://discourse.julialang.org/t/fourier-transform-freezes-julia/38771 "2020-07-03T12:56:30Z")

</div>

I am processing an audio sample (about 20minutes long) in small parts of several seconds. At the moment my code freezes every now and then. The example below is a bit silly but is a minimal ‘working’ example which oft…

---

## [Flux bilinear upsampling](https://discourse.julialang.org/t/flux-bilinear-upsampling/37717)

<div class="topic-metadata">

**Author:** [@kevinczimmerman](https://discourse.julialang.org/u/kevinczimmerman)\
**Replies:** 3\
**Last updated:** [July 3, 2020, 12:21pm UTC](https://discourse.julialang.org/t/flux-bilinear-upsampling/37717 "2020-07-03T12:21:49Z")

</div>

What is the best way to use Flux to create a bilinear upsampling layer? Something analogous to tensorflow bilinear upsample. I appreciate your insight in advance.

---

## [VegaLite: Facet plots with independent scales for histograms](https://discourse.julialang.org/t/vegalite-facet-plots-with-independent-scales-for-histograms/42464)

<div class="topic-metadata">

**Author:** [@hellemo](https://discourse.julialang.org/u/hellemo)\
**Replies:** 0\
**Last updated:** [July 3, 2020, 8:27am UTC](https://discourse.julialang.org/t/vegalite-facet-plots-with-independent-scales-for-histograms/42464 "2020-07-03T08:27:13Z")

</div>

I would like to do a facet plot with independent scales for the x-axis, but can’t get it to work. It works for the y-axis though. Any ideas? EDIT: I tried switching the axes to no avail, so it seems it has to do with th…

---

## [Makie bug with tetrahedral meshes](https://discourse.julialang.org/t/makie-bug-with-tetrahedral-meshes/41834)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 13\
**Last updated:** [July 3, 2020, 3:27am UTC](https://discourse.julialang.org/t/makie-bug-with-tetrahedral-meshes/41834 "2020-07-03T03:27:52Z")

</div>

In Makie.jl there is a bug with displaying tetrahedral meshes. Using the example from TetGen.jl Note that at the corners there are missing edges and faces in the plot. However, I have verified that those edges/faces…

---

## [Getindex without a warning?](https://discourse.julialang.org/t/getindex-without-a-warning/42382)

<div class="topic-metadata">

**Author:** [@sw72](https://discourse.julialang.org/u/sw72)\
**Replies:** 3\
**Last updated:** [July 2, 2020, 7:57pm UTC](https://discourse.julialang.org/t/getindex-without-a-warning/42382 "2020-07-02T19:57:25Z")

</div>

I need to extract a single value from a CuArray for some calculation. Is there a way to do it without getting the “scalar operations” warning?

---

## [Efficient Way of Taking First and Second Order Derivatives of a Neural Net](https://discourse.julialang.org/t/efficient-way-of-taking-first-and-second-order-derivatives-of-a-neural-net/42163)

<div class="topic-metadata">

**Author:** [@astroboy](https://discourse.julialang.org/u/astroboy)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 7:42pm UTC](https://discourse.julialang.org/t/efficient-way-of-taking-first-and-second-order-derivatives-of-a-neural-net/42163 "2020-07-02T19:42:20Z")

</div>

Hey everyone, hope you’re all doing well and staying safe! I’m just going to preface this by saying that I am a still solidly a novice when it comes to both machine learning and Julia, so please bear with me here. I am a…

---

## [How to make a vector of symbols using a macro](https://discourse.julialang.org/t/how-to-make-a-vector-of-symbols-using-a-macro/42439)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 5:27pm UTC](https://discourse.julialang.org/t/how-to-make-a-vector-of-symbols-using-a-macro/42439 "2020-07-02T17:27:59Z")

</div>

How do I make a vector of symbols using a macro? macro foo() Expr(:vect, :x1, :x2) end julia\> @foo ERROR: UndefVarError: x1 not defined Clearly this making the expression \[x1, x2\]. However I would like to make the…

---

## [Start value Gurobi error](https://discourse.julialang.org/t/start-value-gurobi-error/42437)

<div class="topic-metadata">

**Author:** [@Miguel\_Goncalves](https://discourse.julialang.org/u/Miguel_Goncalves)\
**Replies:** 6\
**Last updated:** [July 2, 2020, 5:10pm UTC](https://discourse.julialang.org/t/start-value-gurobi-error/42437 "2020-07-02T17:10:48Z")

</div>

I am a casual/academic user of optimization with Julia/JuMP, and I noticed there is the possibility to include initial solution setting the function set\_start\_value, but I just want to set initially some variables of my …

---

## [CuArrays/CUDAnative PSA: Simplified package loading](https://discourse.julialang.org/t/cuarrays-cudanative-psa-simplified-package-loading/27897)

<div class="topic-metadata">

**Author:** [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Replies:** 17\
**Last updated:** [July 2, 2020, 2:20pm UTC](https://discourse.julialang.org/t/cuarrays-cudanative-psa-simplified-package-loading/27897 "2020-07-02T14:20:31Z")

</div>

Hi all, I’ve just tagged new versions of CuArrays/CUDAnative/… and among the usual slurry of features and bug fixes there’s a major change in how the packages are built and loaded. There used to be a Pkg.build step whic…

---

## [Derivatives of a production function](https://discourse.julialang.org/t/derivatives-of-a-production-function/42354)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 12\
**Last updated:** [July 2, 2020, 11:16am UTC](https://discourse.julialang.org/t/derivatives-of-a-production-function/42354 "2020-07-02T11:16:34Z")

</div>

I have a production function with several CES levels: function F(L2, A; λ=ones(4)./2, ρ=ones(4)./2) #L2 is 3x2, A is 1x1, λ and ρ are vectors of length 4 λ1 = λ\[1:2\] λ2 = λ\[3:4\] ρ1 = ρ\[1:2\] ρ2 = ρ\[3:…

---

## [Allocations when creating graphs, inefficiencies](https://discourse.julialang.org/t/allocations-when-creating-graphs-inefficiencies/42394)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 12\
**Last updated:** [July 2, 2020, 9:57am UTC](https://discourse.julialang.org/t/allocations-when-creating-graphs-inefficiencies/42394 "2020-07-02T09:57:55Z")

</div>

I am creating my own method to create a graph in 3D because graphplot has a bug, which I reported here and on Github, and I got no reply, and yet I still need the plot. Here is some MWE, which I run 2-3 times to make sur…

---

## [A question about module](https://discourse.julialang.org/t/a-question-about-module/42415)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 7:56am UTC](https://discourse.julialang.org/t/a-question-about-module/42415 "2020-07-02T07:56:24Z")

</div>

want to use another script’s module in one script,it always tell me “a” is not defind, module asd export a a=2 end include("Julia测试.jl") print(a) thanks!!

---

## [ODE Sundials not recognizing \`maxiters\` argument](https://discourse.julialang.org/t/ode-sundials-not-recognizing-maxiters-argument/42377)

<div class="topic-metadata">

**Author:** [@Yuki-Kanai](https://discourse.julialang.org/u/Yuki-Kanai)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 6:18am UTC](https://discourse.julialang.org/t/ode-sundials-not-recognizing-maxiters-argument/42377 "2020-07-02T06:18:18Z")

</div>

I am using OrdinaryDiffEq with Sundials. While other options such as stability\_limit\_detect max\_hnil\_warns max\_error\_test\_failures seem to be working, the option maxiters doesn’t seem to stop iteration at all; The it…

---

## [Ideas for useful packages missing from the ecosystem](https://discourse.julialang.org/t/ideas-for-useful-packages-missing-from-the-ecosystem/42063)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 15\
**Last updated:** [July 2, 2020, 5:57am UTC](https://discourse.julialang.org/t/ideas-for-useful-packages-missing-from-the-ecosystem/42063 "2020-07-02T05:57:17Z")

</div>

I wanted to share two packages which provide useful functionality but are currently not available in Julia. The following two would make Julia even more attractable for users in / with #hpc. SSH Tunneling (https://gi…

---

## [Add column names to a GLM.LinearModel estimated in matrix form](https://discourse.julialang.org/t/add-column-names-to-a-glm-linearmodel-estimated-in-matrix-form/40676)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 11\
**Last updated:** [July 1, 2020, 6:20pm UTC](https://discourse.julialang.org/t/add-column-names-to-a-glm-linearmodel-estimated-in-matrix-form/40676 "2020-07-01T18:20:33Z")

</div>

I am estimating a bunch of linear models using GLM.lm(X, y), where X is a matrix. I have column names for X from a database, and I would like to have the result from fit/lm to include them. MWE: using GLM X = hcat(ones(…

---

## [How to set up NLconstraints from multi-output user-defined function?](https://discourse.julialang.org/t/how-to-set-up-nlconstraints-from-multi-output-user-defined-function/42309)

<div class="topic-metadata">

**Author:** [@Liang\_Chen](https://discourse.julialang.org/u/Liang_Chen)\
**Replies:** 5\
**Last updated:** [July 1, 2020, 2:31pm UTC](https://discourse.julialang.org/t/how-to-set-up-nlconstraints-from-multi-output-user-defined-function/42309 "2020-07-01T14:31:22Z")

</div>

I have a non-linear user-defined function, y = myfun(x), where the output y is a 1\*2 array. I am going to use the output y to construct constraints. I will have 2 constraint equations since y has 2 components and each c…

---

## [Help Debugging GPU Performance Issue](https://discourse.julialang.org/t/help-debugging-gpu-performance-issue/42274)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 5\
**Last updated:** [July 1, 2020, 10:07am UTC](https://discourse.julialang.org/t/help-debugging-gpu-performance-issue/42274 "2020-07-01T10:07:43Z")

</div>

I’m having trouble debugging the following issue with CuArrays. I see very different performance using the findmax function when I call it from the REPL vs when I use it in my application. From the REPL I get the desired…

---

## [Statistics functions on GPU?](https://discourse.julialang.org/t/statistics-functions-on-gpu/42245)

<div class="topic-metadata">

**Author:** [@ogoid](https://discourse.julialang.org/u/ogoid)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 8:12am UTC](https://discourse.julialang.org/t/statistics-functions-on-gpu/42245 "2020-07-01T08:12:43Z")

</div>

Are there available any GPU implementations of the Statistics functions (cor, cov etc.)? Many of the functions on the Statistics module throw the “scalar getindex is disallowed” warning/error. Eg: julia\> Statistics.cor(…

---

## [Julia vs GNU Octave for plot fitting / finding peaks](https://discourse.julialang.org/t/julia-vs-gnu-octave-for-plot-fitting-finding-peaks/42237)

<div class="topic-metadata">

**Author:** [@doronbehar](https://discourse.julialang.org/u/doronbehar)\
**Replies:** 16\
**Last updated:** [July 1, 2020, 7:33am UTC](https://discourse.julialang.org/t/julia-vs-gnu-octave-for-plot-fitting-finding-peaks/42237 "2020-07-01T07:33:34Z")

</div>

I’m currently using GNU octave to fit a simple cosine with a phase to many data sets stored in text files. For most data sets, the fit works well, but for some others, it doesn’t. I’m wondering whether I’d be able to get…

---

## [Solve large number of linear inequalities with dynamic arrays](https://discourse.julialang.org/t/solve-large-number-of-linear-inequalities-with-dynamic-arrays/41821)

<div class="topic-metadata">

**Author:** [@LHR](https://discourse.julialang.org/u/LHR)\
**Replies:** 3\
**Last updated:** [July 1, 2020, 1:15am UTC](https://discourse.julialang.org/t/solve-large-number-of-linear-inequalities-with-dynamic-arrays/41821 "2020-07-01T01:15:59Z")

</div>

Hi, I am trying to make a script to remove dominated strategies from a pay-off matrix G for a game-theoretical problem that I have (2-player game, finite discrete strategy sets). The goal is to automate the iterative e…

---

## [Least squares with multi-dimensional output type](https://discourse.julialang.org/t/least-squares-with-multi-dimensional-output-type/42283)

<div class="topic-metadata">

**Author:** [@akahs](https://discourse.julialang.org/u/akahs)\
**Replies:** 3\
**Last updated:** [July 1, 2020, 12:22am UTC](https://discourse.julialang.org/t/least-squares-with-multi-dimensional-output-type/42283 "2020-07-01T00:22:53Z")

</div>

I am trying to use LsqFit to find out a 2D geometric transformation parameter, say a mapping from (x,y) to (xp,yp): x = \[x for x=-2.:2. for y=-2.:2.\] y = \[y for x=-2.:2. for y=-2.:2.\] in\_data = \[x y\] k = -0.02 @. xp = x…

---

## [DiffEqBiological: getting the error "type Symbol has no field head"](https://discourse.julialang.org/t/diffeqbiological-getting-the-error-type-symbol-has-no-field-head/42296)

<div class="topic-metadata">

**Author:** [@Sanji\_Vinsmoke](https://discourse.julialang.org/u/Sanji_Vinsmoke)\
**Replies:** 5\
**Last updated:** [June 30, 2020, 9:43pm UTC](https://discourse.julialang.org/t/diffeqbiological-getting-the-error-type-symbol-has-no-field-head/42296 "2020-06-30T21:43:21Z")

</div>

I want to make a simple model of enzyme kinetics,but I keep getting some errors This is what I tried: rn = @reaction\_network begin k\_f, E + S → ES k\_r, ES → E + S k\_p, ES → P end and I get the error: type Sym…

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

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