# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1958

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

**Page:** 1959

---

## [Global variables / anonymous function](https://discourse.julialang.org/t/global-variables-anonymous-function/26461)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 4\
**Last updated:** [July 17, 2019, 1:53pm UTC](https://discourse.julialang.org/t/global-variables-anonymous-function/26461 "2019-07-17T13:53:59Z")

</div>

We should avoid global variables, such as, for example: a = 2 function f(x) return (x + a)^2 end f(3) As I understand, one way to pass data into a function is the use of anonymous functions. In this case, we coul…

---

## [Cxx.jl calling the Julia error function from C++](https://discourse.julialang.org/t/cxx-jl-calling-the-julia-error-function-from-c/26449)

<div class="topic-metadata">

**Author:** [@ethomag](https://discourse.julialang.org/u/ethomag)\
**Replies:** 1\
**Last updated:** [July 17, 2019, 1:05pm UTC](https://discourse.julialang.org/t/cxx-jl-calling-the-julia-error-function-from-c/26449 "2019-07-17T13:05:03Z")

</div>

I am trying to propagate an error from C++ to Julia. From the Cxx.jl documentation, I found (which works fine): julia\> cxx"“” void testJuliaPrint() { $:(println(“\\nTo end this test, press any key”)::Nothing); } “…

---

## [Unusually bad performance of eigen() compared to eig() in Matlab](https://discourse.julialang.org/t/unusually-bad-performance-of-eigen-compared-to-eig-in-matlab/26433)

<div class="topic-metadata">

**Author:** [@doit](https://discourse.julialang.org/u/doit)\
**Replies:** 16\
**Last updated:** [July 17, 2019, 11:19am UTC](https://discourse.julialang.org/t/unusually-bad-performance-of-eigen-compared-to-eig-in-matlab/26433 "2019-07-17T11:19:35Z")

</div>

Hello everyone, I’m fairly new to Julia. I am working on implementing SBFEM in Julia. SBFEM requires solving a lot of eigenvalue problems. I noticed that my code in Matlab is running much (much) faster than in Julia. I …

---

## [Error compiling PyCall](https://discourse.julialang.org/t/error-compiling-pycall/26415)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 4\
**Last updated:** [July 17, 2019, 10:41am UTC](https://discourse.julialang.org/t/error-compiling-pycall/26415 "2019-07-17T10:41:45Z")

</div>

Hi guys, I am trying to get started with Matplotlib. My environment is versioninfo versioninfo (generic function with 2 methods) julia\> versioninfo() Julia Version 1.1.0 Commit 80516ca202 (2019-01-21 21:24 UTC) Platf…

---

## [Recipe for symlog scale](https://discourse.julialang.org/t/recipe-for-symlog-scale/26455)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 0\
**Last updated:** [July 17, 2019, 8:03am UTC](https://discourse.julialang.org/t/recipe-for-symlog-scale/26455 "2019-07-17T08:03:02Z")

</div>

I want to plot x/y data (lines) using a symlog scale. I wrote 2 functions to convert the data points and one to adapt the ticks. So basically I can do: using Plots x = collect(-10:0.01:10) y = collect(-10:0.01:10) plot(…

---

## [Luxor and Julia Can they dance?](https://discourse.julialang.org/t/luxor-and-julia-can-they-dance/25384)

<div class="topic-metadata">

**Author:** [@computerhoncho](https://discourse.julialang.org/u/computerhoncho)\
**Replies:** 8\
**Last updated:** [July 17, 2019, 7:42am UTC](https://discourse.julialang.org/t/luxor-and-julia-can-they-dance/25384 "2019-07-17T07:42:46Z")

</div>

All: I am exited to learn all I can with Julia and my reach focus, Luxor. I am building this out on Windows 10, 64-bit. I downloaded the current and most stable version of Julia, activated the prompt and run seve…

---

## [Memory usage reported by varinfo()](https://discourse.julialang.org/t/memory-usage-reported-by-varinfo/26452)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 2\
**Last updated:** [July 17, 2019, 7:42am UTC](https://discourse.julialang.org/t/memory-usage-reported-by-varinfo/26452 "2019-07-17T07:42:17Z")

</div>

Hi I understand that for a vector a b = a makes b refer to a But this is my lack of understanding, why then does varinfo() show that b occupies the same amount of memory as a? julia\> a = ones(2) 2-element Array{Float…

---

## [@sync block drops asynchronous errors in favor of synchronous errors](https://discourse.julialang.org/t/sync-block-drops-asynchronous-errors-in-favor-of-synchronous-errors/26440)

<div class="topic-metadata">

**Author:** [@Jasha10](https://discourse.julialang.org/u/Jasha10)\
**Replies:** 2\
**Last updated:** [July 17, 2019, 7:25am UTC](https://discourse.julialang.org/t/sync-block-drops-asynchronous-errors-in-favor-of-synchronous-errors/26440 "2019-07-17T07:25:04Z")

</div>

The @sync macro creates an array Any\[\] that is used to keep track of any @async tasks that are created within the (lexically-scoped) @sync block. After the code in the @sync block runs, the Base.sync\_end function is call…

---

## [Global constraints in functions](https://discourse.julialang.org/t/global-constraints-in-functions/26341)

<div class="topic-metadata">

**Author:** [@MuadhF](https://discourse.julialang.org/u/MuadhF)\
**Replies:** 7\
**Last updated:** [July 17, 2019, 6:00am UTC](https://discourse.julialang.org/t/global-constraints-in-functions/26341 "2019-07-17T06:00:24Z")

</div>

Hi, I declared some constraints in a function because I needed an if condition, and wanted to know if I can somehow make these constraints defined outside the function as well. Here’s part of the function: function amo…

---

## [Julia's processing capacity](https://discourse.julialang.org/t/julias-processing-capacity/26251)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 12\
**Last updated:** [July 17, 2019, 4:02am UTC](https://discourse.julialang.org/t/julias-processing-capacity/26251 "2019-07-17T04:02:22Z")

</div>

Julia provides information of type: number of iterations, solution time, gap, number of variables, number of constraints

---

## [What does this mean: "Entropy pool not available to seed RNG; using ad-hoc entropy sources"?](https://discourse.julialang.org/t/what-does-this-mean-entropy-pool-not-available-to-seed-rng-using-ad-hoc-entropy-sources/26432)

<div class="topic-metadata">

**Author:** [@Akon](https://discourse.julialang.org/u/Akon)\
**Replies:** 4\
**Last updated:** [July 17, 2019, 2:09am UTC](https://discourse.julialang.org/t/what-does-this-mean-entropy-pool-not-available-to-seed-rng-using-ad-hoc-entropy-sources/26432 "2019-07-17T02:09:58Z")

</div>

I am trying to use a package (Laplacians: https://github.com/danspielman/Laplacians.jl) with Julia- v1.0.4. However, I get the following message(error) when I use it: “Entropy pool not available to seed RNG; using ad-ho…

---

## [Don't understand what h5py people are thinking](https://discourse.julialang.org/t/dont-understand-what-h5py-people-are-thinking/26387)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 9\
**Last updated:** [July 17, 2019, 12:28am UTC](https://discourse.julialang.org/t/dont-understand-what-h5py-people-are-thinking/26387 "2019-07-17T00:28:15Z")

</div>

I was using h5py to read in some files, casually. h5f = h5py.File(..., "r") h5f\['kVals'\].value then I see this deprecation warning: dataset.value has been deprecated. Use dataset\[()\] instead. I guess if you look real…

---

## [Parametrize NLsolve function](https://discourse.julialang.org/t/parametrize-nlsolve-function/11886)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 4\
**Last updated:** [July 16, 2019, 10:28pm UTC](https://discourse.julialang.org/t/parametrize-nlsolve-function/11886 "2019-07-16T22:28:04Z")

</div>

Hello, I want to solve a function using NLsolve, which has parameters. I do not want to pass them using global variables. Simplified example: using NLsolve function f!(F, x) global a, b F\[1\] = a \* sin(x\[1\]) + …

---

## [Cuda - run code with list](https://discourse.julialang.org/t/cuda-run-code-with-list/26441)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 0\
**Last updated:** [July 16, 2019, 8:54pm UTC](https://discourse.julialang.org/t/cuda-run-code-with-list/26441 "2019-07-16T20:54:05Z")

</div>

I wanted to get line coordinates from startpoint to endpoint, but it didn’t work. I guess that the problem is in data type of Segment list(and overally a lists). In my program I will use lists to load data. using CUDAd…

---

## [How to unspecify parametric arguments](https://discourse.julialang.org/t/how-to-unspecify-parametric-arguments/26427)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 8:47pm UTC](https://discourse.julialang.org/t/how-to-unspecify-parametric-arguments/26427 "2019-07-16T20:47:07Z")

</div>

I want to write a method for a parametric type, where I specify some of the parameters (to have multiple dispatch) but leave some of the others alone, cause they don’t make a difference. To my “dismay” this MWE works… s…

---

## [MKL bundled Julia by Julia Computing](https://discourse.julialang.org/t/mkl-bundled-julia-by-julia-computing/18585)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 40\
**Last updated:** [July 16, 2019, 1:30pm UTC](https://discourse.julialang.org/t/mkl-bundled-julia-by-julia-computing/18585 "2019-07-16T13:30:11Z")

</div>

I was wondering if it is possible for Julia Computing to offer a MKL bundled Julia. I feel like JuliaPro free version is a little bit too large for me and it takes long time to install, and I can set up Atom and Juno by …

---

## [DiffEqFlux with discrete time-dependent input](https://discourse.julialang.org/t/diffeqflux-with-discrete-time-dependent-input/26397)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 4:45pm UTC](https://discourse.julialang.org/t/diffeqflux-with-discrete-time-dependent-input/26397 "2019-07-16T16:45:45Z")

</div>

Hello everyone, I would like to use DiffEqFlux to learn a discrete dynamic equation x(k+1) = A \* x(k) + B, where A(u(k)) and B(u(k)) are time-varying matrix and vector which depend on the input u(k) at the time step k.…

---

## [How to correctly initialize mutable structures in Callback functions with DifferentialEquations.jl](https://discourse.julialang.org/t/how-to-correctly-initialize-mutable-structures-in-callback-functions-with-differentialequations-jl/26428)

<div class="topic-metadata">

**Author:** [@luis\_munoz](https://discourse.julialang.org/u/luis_munoz)\
**Replies:** 3\
**Last updated:** [July 16, 2019, 3:48pm UTC](https://discourse.julialang.org/t/how-to-correctly-initialize-mutable-structures-in-callback-functions-with-differentialequations-jl/26428 "2019-07-16T15:48:16Z")

</div>

Hi, As part of my ODE problem, I create a mutable struct Event to store data in a readable manner within the Callback framework of DifferentialEquations.jl. I have then implemented an instance Buffer of type Event to co…

---

## [Second order conic constraints with CPLEX](https://discourse.julialang.org/t/second-order-conic-constraints-with-cplex/26413)

<div class="topic-metadata">

**Author:** [@giadasp](https://discourse.julialang.org/u/giadasp)\
**Replies:** 5\
**Last updated:** [July 16, 2019, 2:16pm UTC](https://discourse.julialang.org/t/second-order-conic-constraints-with-cplex/26413 "2019-07-16T14:16:52Z")

</div>

I have to solve a MISOCP problem with JuMP and CPLEX but I really didn’t understand how to write the constraints with the new syntax in SecondOrderCone(). I need to minimize the squared norm of a vector in which I have …

---

## [Following the object while Visualizing](https://discourse.julialang.org/t/following-the-object-while-visualizing/26421)

<div class="topic-metadata">

**Author:** [@obi1kenobe](https://discourse.julialang.org/u/obi1kenobe)\
**Replies:** 0\
**Last updated:** [July 16, 2019, 1:27pm UTC](https://discourse.julialang.org/t/following-the-object-while-visualizing/26421 "2019-07-16T13:27:01Z")

</div>

Hey, I am using the graphical interface GUI with MechanismVisualizer to visualize my objects. I have an object in floating but when it moves the camera stays fixed on the world object in the center. Is there a way for…

---

## [MKL: what are the issues these days?](https://discourse.julialang.org/t/mkl-what-are-the-issues-these-days/18191)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 13\
**Last updated:** [July 16, 2019, 1:17pm UTC](https://discourse.julialang.org/t/mkl-what-are-the-issues-these-days/18191 "2019-07-16T13:17:01Z")

</div>

I understand the JuliaPro does not ship MKL version anymore. There is an explanation of the situation in 2016 by @StefanKarpinski : This is not a technical issue primarily, it’s a legal one. You can easily build Julia w…

---

## [Linear Algebra over different fields (\`LinearAlgebra.det\` does not respect the \`+\` and \`\*\` multimethods)](https://discourse.julialang.org/t/linear-algebra-over-different-fields-linearalgebra-det-does-not-respect-the-and-multimethods/26391)

<div class="topic-metadata">

**Author:** [@Krastanov](https://discourse.julialang.org/u/Krastanov)\
**Replies:** 8\
**Last updated:** [July 16, 2019, 1:06pm UTC](https://discourse.julialang.org/t/linear-algebra-over-different-fields-linearalgebra-det-does-not-respect-the-and-multimethods/26391 "2019-07-16T13:06:14Z")

</div>

I want to get a random matrix of binary numbers (the GF(2) field, i.e. {0,1}), then check whether it is invertible by calculating its determinant and getting its inverse. From stylistic (and elegance of types) point of …

---

## [Problems with \] develop --local AbstractAlgebra](https://discourse.julialang.org/t/problems-with-develop-local-abstractalgebra/26411)

<div class="topic-metadata">

**Author:** [@wbhart](https://discourse.julialang.org/u/wbhart)\
**Replies:** 9\
**Last updated:** [July 16, 2019, 12:31pm UTC](https://discourse.julialang.org/t/problems-with-develop-local-abstractalgebra/26411 "2019-07-16T12:31:40Z")

</div>

Sorry for asking the same question twice, but I didn’t manage to find a solution. I want to check out a copy of AbstractAlgebra.jl to cut it down to a minimal example for a bug report for julia-1.2.0rc2. Here are the s…

---

## [Debugger fails on pycall](https://discourse.julialang.org/t/debugger-fails-on-pycall/23560)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 19\
**Last updated:** [July 16, 2019, 11:57am UTC](https://discourse.julialang.org/t/debugger-fails-on-pycall/23560 "2019-07-16T11:57:16Z")

</div>

I’m using Debugger.jl to debug an RL algorithm calling into OpenAIGym.jl using PyCall. Upon the call, the error ERROR: sigatomic\_end called in non-sigatomic region is thrown. Is this a known limitation of the debugger …

---

## [Speed of dispatch with heterogeneous functions and types](https://discourse.julialang.org/t/speed-of-dispatch-with-heterogeneous-functions-and-types/26282)

<div class="topic-metadata">

**Author:** [@mhinsch](https://discourse.julialang.org/u/mhinsch)\
**Replies:** 10\
**Last updated:** [July 16, 2019, 10:57am UTC](https://discourse.julialang.org/t/speed-of-dispatch-with-heterogeneous-functions-and-types/26282 "2019-07-16T10:57:51Z")

</div>

I am planning to implement a continuous-time version of a discrete-time agent-based simulation (see https://github.com/mhinsch/RRGraphs). That means there will be some sort of central scheduler that handles dispatch of a…

---

## [Question: JuliaDB and regression models](https://discourse.julialang.org/t/question-juliadb-and-regression-models/17723)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 16\
**Last updated:** [July 16, 2019, 10:43am UTC](https://discourse.julialang.org/t/question-juliadb-and-regression-models/17723 "2019-07-16T10:43:50Z")

</div>

How do you use JuliaDB for tasks such as fitting a regression model with random effects? (like MixedEffects.jl but with datasets larger than memory)

---

## [Type error while using Scikit-learn and PyCall for logistic regression](https://discourse.julialang.org/t/type-error-while-using-scikit-learn-and-pycall-for-logistic-regression/26410)

<div class="topic-metadata">

**Author:** [@richie96](https://discourse.julialang.org/u/richie96)\
**Replies:** 0\
**Last updated:** [July 16, 2019, 10:24am UTC](https://discourse.julialang.org/t/type-error-while-using-scikit-learn-and-pycall-for-logistic-regression/26410 "2019-07-16T10:24:31Z")

</div>

Hi, I have been trying to change a python code into Julia and when trying to fit the Logisic regression model using: @sk\_import linear\_model: LogisticRegression model = fit!(LogisticRegression(multi\_class=“multinomial…

---

## [ERROR: The following package names could not be resolved:](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/26409)

<div class="topic-metadata">

**Author:** [@min](https://discourse.julialang.org/u/min)\
**Replies:** 3\
**Last updated:** [July 16, 2019, 10:10am UTC](https://discourse.julialang.org/t/error-the-following-package-names-could-not-be-resolved/26409 "2019-07-16T10:10:07Z")

</div>

julia\> Pkg.add(“Ijulia”) Cloning default registries into C:\\Users\\default.DESKTOP-D2HJFCT\\.julia Cloning registry from “GitHub - JuliaRegistries/General: The official registry of general Julia packages” Added registry…

---

## [OnlineStats and regularization hyperparameters](https://discourse.julialang.org/t/onlinestats-and-regularization-hyperparameters/26140)

<div class="topic-metadata">

**Author:** [@GdMacmillan](https://discourse.julialang.org/u/GdMacmillan)\
**Replies:** 5\
**Last updated:** [July 16, 2019, 1:40am UTC](https://discourse.julialang.org/t/onlinestats-and-regularization-hyperparameters/26140 "2019-07-16T01:40:36Z")

</div>

I’m working with online stats to learn a classification model. I have a sparse array of tfidf features and binary target variables and have figured out how to train my model. The API documentation is lacking and needs to…

---

## [Immutable expression issue](https://discourse.julialang.org/t/immutable-expression-issue/26396)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 3\
**Last updated:** [July 16, 2019, 12:47am UTC](https://discourse.julialang.org/t/immutable-expression-issue/26396 "2019-07-16T00:47:58Z")

</div>

Dear all, how can define immutable in Julia 1.1.0? e.g.; immutable MySingleton end ERROR: syntax: extra token "MySingleton" after end of expression Best regards

[Previous page](https://discourse.julialang.org/latest.md?page=1957)

[Next page](https://discourse.julialang.org/latest.md?page=1959)
