# Latest

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

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

**Page:** 1878

---

## [Promote failed to change any arguments](https://discourse.julialang.org/t/promote-failed-to-change-any-arguments/31361)

<div class="topic-metadata">

**Author:** [@venuur](https://discourse.julialang.org/u/venuur)\
**Replies:** 5\
**Last updated:** [November 22, 2019, 2:54pm UTC](https://discourse.julialang.org/t/promote-failed-to-change-any-arguments/31361 "2019-11-22T14:54:19Z")

</div>

I am having trouble figuring out how to implement promotions for a type. The main idea is the create a class that tracks operations applied to a variable type. This is perhaps not so different from Flux, but I wanted to …

---

## [Accessing the solution of differential equations: understanding alloc](https://discourse.julialang.org/t/accessing-the-solution-of-differential-equations-understanding-alloc/31364)

<div class="topic-metadata">

**Author:** [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 2:30pm UTC](https://discourse.julialang.org/t/accessing-the-solution-of-differential-equations-understanding-alloc/31364 "2019-11-22T14:30:41Z")

</div>

I’m preallocating an array for the solution of an ODE at each time step, for post-processing. However, julia --track-allocation=user foo.jl still reports large allocations. To simplify with @btime: using DifferentialEqu…

---

## [Accessing 2D array/matrix values with Booleans](https://discourse.julialang.org/t/accessing-2d-array-matrix-values-with-booleans/31384)

<div class="topic-metadata">

**Author:** [@keeler](https://discourse.julialang.org/u/keeler)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 2:03pm UTC](https://discourse.julialang.org/t/accessing-2d-array-matrix-values-with-booleans/31384 "2019-11-22T14:03:26Z")

</div>

Take a matrix A and a vector of Booleans , say, booleRand (whose length is the same as the number of columns or rows in A). I want to be able to access entire rows or columns using the Boolean vector. I am a bit surpris…

---

## [For loop in function and multiplication of larger matrices, slow speed in parallel](https://discourse.julialang.org/t/for-loop-in-function-and-multiplication-of-larger-matrices-slow-speed-in-parallel/31258)

<div class="topic-metadata">

**Author:** [@luboshanus](https://discourse.julialang.org/u/luboshanus)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 1:42pm UTC](https://discourse.julialang.org/t/for-loop-in-function-and-multiplication-of-larger-matrices-slow-speed-in-parallel/31258 "2019-11-22T13:42:58Z")

</div>

Hello, I’d like to understand how does the performance of large for loops in julia work? Running the same function on one core or on multiple cores does not give me similar time results. The computer has 48 physical co…

---

## [StatsPlots dendrogram on the right side or rotated](https://discourse.julialang.org/t/statsplots-dendrogram-on-the-right-side-or-rotated/31348)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 3\
**Last updated:** [November 22, 2019, 12:39pm UTC](https://discourse.julialang.org/t/statsplots-dendrogram-on-the-right-side-or-rotated/31348 "2019-11-22T12:39:42Z")

</div>

I try to generate a heatmap with clustered rows and columns and want the dendrograms displayed on top and on the side. The top dendrogram is no problem, but I can’t find a way to create a dendrogram which is displayed fr…

---

## [Feedback on Julia 1.3 RC5](https://discourse.julialang.org/t/feedback-on-julia-1-3-rc5/31362)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 8\
**Last updated:** [November 22, 2019, 12:36pm UTC](https://discourse.julialang.org/t/feedback-on-julia-1-3-rc5/31362 "2019-11-22T12:36:54Z")

</div>

I have started using Julia 1.3 RC5 and I would like to provide some feedback Firstly, Multithreading makes things easy to paralyse because unlike Distributed, I don’t have to use the keyword @everywhere everywhere and …

---

## [Improving Performance of this Code](https://discourse.julialang.org/t/improving-performance-of-this-code/31326)

<div class="topic-metadata">

**Author:** [@jmcastro2109](https://discourse.julialang.org/u/jmcastro2109)\
**Replies:** 12\
**Last updated:** [November 22, 2019, 11:59am UTC](https://discourse.julialang.org/t/improving-performance-of-this-code/31326 "2019-11-22T11:59:25Z")

</div>

Hello! I am trying to solve a big model and at the core I have the following loop which essentially solves a Backward Induction Problem. In what follows I provide a MWE. In my model, I am solving this problem many many…

---

## [Save Array of Arrays in HDF5](https://discourse.julialang.org/t/save-array-of-arrays-in-hdf5/31359)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 9:26am UTC](https://discourse.julialang.org/t/save-array-of-arrays-in-hdf5/31359 "2019-11-22T09:26:43Z")

</div>

Continuing the discussion from here and here, how can I best save a large number of arrays using HDF5? And more generally, how can I save an array of arrays? I know that HDF5 doesn’t support array of arrays, so trying t…

---

## [Plots.jl/Makie.jl tick locations?](https://discourse.julialang.org/t/plots-jl-makie-jl-tick-locations/31371)

<div class="topic-metadata">

**Author:** [@Raf](https://discourse.julialang.org/u/Raf)\
**Replies:** 1\
**Last updated:** [November 22, 2019, 7:17am UTC](https://discourse.julialang.org/t/plots-jl-makie-jl-tick-locations/31371 "2019-11-22T07:17:14Z")

</div>

I’m wondering if there is a way of specifying the location of the ticks/ labels within each x/y value - ie start, center, end. For an example application, sometimes you want the month to show as the whole period, not th…

---

## [\[ANN\] PrettyTables 0.7.0](https://discourse.julialang.org/t/ann-prettytables-0-7-0/31369)

<div class="topic-metadata">

**Author:** [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Replies:** 0\
**Last updated:** [November 22, 2019, 12:36am UTC](https://discourse.julialang.org/t/ann-prettytables-0-7-0/31369 "2019-11-22T00:36:31Z")

</div>

Hi! I just tag a new version of PrettyTables.jl (v0.7.0). This version has two major improvements. HTML backend Now, PrettyTables.jl can print tables in HTML format. This is the very first version to support this back…

---

## [Isapprox documentation has argument norm, but call signature does not?](https://discourse.julialang.org/t/isapprox-documentation-has-argument-norm-but-call-signature-does-not/31072)

<div class="topic-metadata">

**Author:** [@jtg](https://discourse.julialang.org/u/jtg)\
**Replies:** 5\
**Last updated:** [November 21, 2019, 11:01pm UTC](https://discourse.julialang.org/t/isapprox-documentation-has-argument-norm-but-call-signature-does-not/31072 "2019-11-21T23:01:17Z")

</div>

I noticed this trying to extend the function. I am using: Julia Version 1.3.0-rc4.1 Commit 8c4656b97a (2019-10-15 14:08 UTC) Platform Info: OS: macOS (x86\_64-apple-darwin18.6.0) CPU: Intel(R) Core(TM) i5-8279U CPU…

---

## [How can I make this plot?](https://discourse.julialang.org/t/how-can-i-make-this-plot/31278)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 11\
**Last updated:** [November 21, 2019, 4:37pm UTC](https://discourse.julialang.org/t/how-can-i-make-this-plot/31278 "2019-11-21T16:37:01Z")

</div>

I came across this article on Freakonometrics and it has the following really nice plot in it (generated with R, I believe): Has anyone seen anything similar plotted in Julia or does anyone know if this is at least po…

---

## [Trying to understand the "gradient()" function from the Flux.jl/Zygote.jl package](https://discourse.julialang.org/t/trying-to-understand-the-gradient-function-from-the-flux-jl-zygote-jl-package/31328)

<div class="topic-metadata">

**Author:** [@rapasite](https://discourse.julialang.org/u/rapasite)\
**Replies:** 4\
**Last updated:** [November 21, 2019, 9:19pm UTC](https://discourse.julialang.org/t/trying-to-understand-the-gradient-function-from-the-flux-jl-zygote-jl-package/31328 "2019-11-21T21:19:45Z")

</div>

Hi there, need some help to dig into https://github.com/FluxML/Zygote.jl/blob/master/src/compiler/interface.jl. So it start like this: function gradient(f, args...) y, back = pullback(f, args...) return back(sensi…

---

## [ANN: QuickPOMDPs and POMDPs v0.8](https://discourse.julialang.org/t/ann-quickpomdps-and-pomdps-v0-8/31357)

<div class="topic-metadata">

**Author:** [@zsunberg](https://discourse.julialang.org/u/zsunberg)\
**Replies:** 0\
**Last updated:** [November 21, 2019, 9:05pm UTC](https://discourse.julialang.org/t/ann-quickpomdps-and-pomdps-v0-8/31357 "2019-11-21T21:05:34Z")

</div>

Hi All, I’d like to announce some enhancements to the POMDPs ecosystem. First, we have introduced the QuickPOMDPs.jl package, which makes it much easier to define Markov decision processes (MDPs) and partially observabl…

---

## [Optimization of Code for NaN Operations](https://discourse.julialang.org/t/optimization-of-code-for-nan-operations/31339)

<div class="topic-metadata">

**Author:** [@natgeo-wong](https://discourse.julialang.org/u/natgeo-wong)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 8:50pm UTC](https://discourse.julialang.org/t/optimization-of-code-for-nan-operations/31339 "2019-11-21T20:50:33Z")

</div>

Hi, I’ve been trying to perform operations on Arrays that may have missing values, using the below prototype function: function nanop(f::Function,data::Array;dim=1) ndim = ndims(data); dsize = size(data); if nd…

---

## [Porting an example from QuantEcon.jl to POMDPs.jl](https://discourse.julialang.org/t/porting-an-example-from-quantecon-jl-to-pomdps-jl/16377)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 8:23pm UTC](https://discourse.julialang.org/t/porting-an-example-from-quantecon-jl-to-pomdps-jl/16377 "2019-11-21T20:23:22Z")

</div>

Just for fun (and to learn about POMDP) I am porting an example of dynamic programming from QuantEcon.jl to POMDPs.jl. The example is available here: https://lectures.quantecon.org/jl/discrete\_dp.html#example-a-growth-mo…

---

## [How to proper debug Julia?](https://discourse.julialang.org/t/how-to-proper-debug-julia/31234)

<div class="topic-metadata">

**Author:** [@adrpo](https://discourse.julialang.org/u/adrpo)\
**Replies:** 6\
**Last updated:** [November 21, 2019, 7:31pm UTC](https://discourse.julialang.org/t/how-to-proper-debug-julia/31234 "2019-11-21T19:31:27Z")

</div>

Hi all, I have some code that works fine in Atom/Juno debugger but when I run it directly in Julia it goes in some sort of cycle and spins forever. Any ideas on how to debug such a thing? I have tried to attach to the j…

---

## [StatsPlots, precompiling error](https://discourse.julialang.org/t/statsplots-precompiling-error/31354)

<div class="topic-metadata">

**Author:** [@Gunter\_Faes](https://discourse.julialang.org/u/Gunter_Faes)\
**Replies:** 0\
**Last updated:** [November 21, 2019, 7:20pm UTC](https://discourse.julialang.org/t/statsplots-precompiling-error/31354 "2019-11-21T19:20:43Z")

</div>

Hi, I am currently experimenting with my nVIDIA Jetson Nano and have had no problems so far. Now I want to use StatsPlots in addition to PLots, but for StastPlots it is noted in the precompiling phase that the Arpack pa…

---

## [Calculating the \`k\` smallest positive eigenvalues of a matrix with ARPACK](https://discourse.julialang.org/t/calculating-the-k-smallest-positive-eigenvalues-of-a-matrix-with-arpack/28864)

<div class="topic-metadata">

**Author:** [@sergevic](https://discourse.julialang.org/u/sergevic)\
**Replies:** 25\
**Last updated:** [November 21, 2019, 7:13pm UTC](https://discourse.julialang.org/t/calculating-the-k-smallest-positive-eigenvalues-of-a-matrix-with-arpack/28864 "2019-11-21T19:13:20Z")

</div>

I have a sqaure matrix that is not necessarily positive definite, for example rand(10000,10000), and I’m trying to obtain the k smallest positive eigenvalues with the command eigs() from ARPACK. How can I achieve that pr…

---

## [Gradient of a Hessian dependent loss function](https://discourse.julialang.org/t/gradient-of-a-hessian-dependent-loss-function/31322)

<div class="topic-metadata">

**Author:** [@mtgd](https://discourse.julialang.org/u/mtgd)\
**Replies:** 1\
**Last updated:** [November 21, 2019, 6:35pm UTC](https://discourse.julialang.org/t/gradient-of-a-hessian-dependent-loss-function/31322 "2019-11-21T18:35:38Z")

</div>

For my application it would be useful to have a loss function that depends on the Hessian of a model. Computing the Hessian with respect to the input variable (using Tracker) works fine, but trying to get the gradient w…

---

## [Save PyPlot figure as SVG file with text rendered as text, not path](https://discourse.julialang.org/t/save-pyplot-figure-as-svg-file-with-text-rendered-as-text-not-path/31288)

<div class="topic-metadata">

**Author:** [@hrchen](https://discourse.julialang.org/u/hrchen)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 4:34pm UTC](https://discourse.julialang.org/t/save-pyplot-figure-as-svg-file-with-text-rendered-as-text-not-path/31288 "2019-11-21T16:34:07Z")

</div>

I want to save a PyPlot figure as an SVG file with the text in the figure rendered as editable text, not as a path. I read that in Python one can do: plt.rcParams\['svg.fonttype'\] = 'none' but the following doesn’t work w…

---

## [Current practice for specifying custom target dependencies?](https://discourse.julialang.org/t/current-practice-for-specifying-custom-target-dependencies/31349)

<div class="topic-metadata">

**Author:** [@garborg](https://discourse.julialang.org/u/garborg)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 4:10pm UTC](https://discourse.julialang.org/t/current-practice-for-specifying-custom-target-dependencies/31349 "2019-11-21T16:10:15Z")

</div>

I’m looking to specify extra dependencies for code in an ‘example’ dir and separately for code in a ‘benchmark’ dir of a package. Akin to how ‘targets’ and ‘extras’ works for test dependencies. Early discussions I saw …

---

## [Check whether the type of an object is from a package not loaded](https://discourse.julialang.org/t/check-whether-the-type-of-an-object-is-from-a-package-not-loaded/31344)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 2:03pm UTC](https://discourse.julialang.org/t/check-whether-the-type-of-an-object-is-from-a-package-not-loaded/31344 "2019-11-21T14:03:44Z")

</div>

I have a package A in which I’d like to have a functionality foo which works on AbstractArray but does something different on LazyArrays.ApplyArray. twist: I would like not to have LazyArrays loaded in A. Is this pos…

---

## [Periodic Schur decomposition](https://discourse.julialang.org/t/periodic-schur-decomposition/30682)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 2:31pm UTC](https://discourse.julialang.org/t/periodic-schur-decomposition/30682 "2019-11-21T14:31:03Z")

</div>

Hi, I am wondering if anybody has implemented, and is willing to share, a periodic Schur decomposition. The first paper mentioning it is D. Kressner, An efficient and reliable implementation of the periodic qz algorith…

---

## [CSV, DataFrames problems with threads](https://discourse.julialang.org/t/csv-dataframes-problems-with-threads/31318)

<div class="topic-metadata">

**Author:** [@Rudi79](https://discourse.julialang.org/u/Rudi79)\
**Replies:** 2\
**Last updated:** [November 21, 2019, 2:30pm UTC](https://discourse.julialang.org/t/csv-dataframes-problems-with-threads/31318 "2019-11-21T14:30:44Z")

</div>

Today I encountered an odd problem: using CSV, DataFrames dt = DataFrame(a = rand(10000), b = rand(10000), c = rand(10000)) CSV.write("test.csv", dt) df = CSV.File("test.csv") |\> DataFrame! df\[(ismissing.(df.a)) .| (is…

---

## [Anyone using a PAID source for Sp500 options data specifically 30 day mean implied volatility?](https://discourse.julialang.org/t/anyone-using-a-paid-source-for-sp500-options-data-specifically-30-day-mean-implied-volatility/31324)

<div class="topic-metadata">

**Author:** [@anon97116444](https://discourse.julialang.org/u/anon97116444)\
**Replies:** 8\
**Last updated:** [November 21, 2019, 2:24pm UTC](https://discourse.julialang.org/t/anyone-using-a-paid-source-for-sp500-options-data-specifically-30-day-mean-implied-volatility/31324 "2019-11-21T14:24:24Z")

</div>

I can’t seem to find any discussion on discourse about live options data? I’m looking for the following. date,time,symbol,last,volume, open interest, 30 day mean implied volatility. don’t need HFT just 1 - 5 minutes w…

---

## [What is Julia's equivalent of R's %in%](https://discourse.julialang.org/t/what-is-julias-equivalent-of-rs-in/28720)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 9\
**Last updated:** [November 21, 2019, 2:16pm UTC](https://discourse.julialang.org/t/what-is-julias-equivalent-of-rs-in/28720 "2019-11-21T14:16:10Z")

</div>

hello, I have two different dataframes with different columns and headers, but the columns Start and Start\_site are related and in particular I want to select the rows of the first dataframe with Start matching the seco…

---

## [Inner constructors with parametric types, can't seem to get them to work for me](https://discourse.julialang.org/t/inner-constructors-with-parametric-types-cant-seem-to-get-them-to-work-for-me/31337)

<div class="topic-metadata">

**Author:** [@tlnagy](https://discourse.julialang.org/u/tlnagy)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 1:56pm UTC](https://discourse.julialang.org/t/inner-constructors-with-parametric-types-cant-seem-to-get-them-to-work-for-me/31337 "2019-11-21T13:56:13Z")

</div>

Say I have a type that looks the following: julia\> struct Test{T, N, A} \<: AbstractArray{T, N} a::Dict{NTuple{N, Int}, String} b::Type{T} c::A d::Array{T, 2} funct…

---

## [Trignometric functions on GPU](https://discourse.julialang.org/t/trignometric-functions-on-gpu/31338)

<div class="topic-metadata">

**Author:** [@ennvvy](https://discourse.julialang.org/u/ennvvy)\
**Replies:** 4\
**Last updated:** [November 21, 2019, 8:55am UTC](https://discourse.julialang.org/t/trignometric-functions-on-gpu/31338 "2019-11-21T08:55:17Z")

</div>

I tried executing a simple function involving sin and cos as below: using CUDAdrv,CUDAnative,CuArrays sine(x::Float32) = sin(x) cosine(x::Float32) = cos(x) CuArrays.@cufunc sine(x::Real) = sin(x) CuArrays.@cufunc cosin…

---

## [Performance of the iterator approach](https://discourse.julialang.org/t/performance-of-the-iterator-approach/31293)

<div class="topic-metadata">

**Author:** [@alanderos](https://discourse.julialang.org/u/alanderos)\
**Replies:** 3\
**Last updated:** [November 21, 2019, 7:27am UTC](https://discourse.julialang.org/t/performance-of-the-iterator-approach/31293 "2019-11-21T07:27:11Z")

</div>

I started using IterativeSolvers.jl in some of my work and found the iterator-based code to be easy on the eyes and rather slick. It seems to me that any Julia implementation of an iterative algorithm ought to adopt this…

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

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