# Latest

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

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

**Page:** 1790

---

## [Is there a way to speed up this implementation of BLSTM layer?](https://discourse.julialang.org/t/is-there-a-way-to-speed-up-this-implementation-of-blstm-layer/36429)

<div class="topic-metadata">

**Author:** [@Azamat](https://discourse.julialang.org/u/Azamat)\
**Replies:** 1\
**Last updated:** [March 28, 2020, 11:00am UTC](https://discourse.julialang.org/t/is-there-a-way-to-speed-up-this-implementation-of-blstm-layer/36429 "2020-03-28T11:00:46Z")

</div>

I have implemented the BLSTM layer for a batch of sequences input stored as a 3D array with dimensions ordered as \[features × time × batch\]. And I wonder if there is a faster way to implement it. I’m interested in the sp…

---

## [Bug when using DSDP versus SCS optimiser with JuMP](https://discourse.julialang.org/t/bug-when-using-dsdp-versus-scs-optimiser-with-jump/36554)

<div class="topic-metadata">

**Author:** [@tdp](https://discourse.julialang.org/u/tdp)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 8:30am UTC](https://discourse.julialang.org/t/bug-when-using-dsdp-versus-scs-optimiser-with-jump/36554 "2020-03-28T08:30:04Z")

</div>

Hi, How do I resolve the error below generated when I run my code using the DSDP optimiser? I get the right answer, without errors, when I run my code using the SCS optimiser instead. (This question is a follow-up to t…

---

## [Indexing SparseMatrixCSC using CartesianIndices](https://discourse.julialang.org/t/indexing-sparsematrixcsc-using-cartesianindices/36631)

<div class="topic-metadata">

**Author:** [@jlchan](https://discourse.julialang.org/u/jlchan)\
**Replies:** 2\
**Last updated:** [March 28, 2020, 7:56am UTC](https://discourse.julialang.org/t/indexing-sparsematrixcsc-using-cartesianindices/36631 "2020-03-28T07:56:43Z")

</div>

I’m having trouble indexing into SparseArrays using CartesianIndices (plural). The following Julia-1.4 code using SparseArrays A = sparse(randn(4,4)) A\[CartesianIndices((1:2,1:2))\] gives ERROR: MethodError: no method …

---

## [macOS Catalina: Julia cannot access general files](https://discourse.julialang.org/t/macos-catalina-julia-cannot-access-general-files/36601)

<div class="topic-metadata">

**Author:** [@rsilva](https://discourse.julialang.org/u/rsilva)\
**Replies:** 10\
**Last updated:** [March 27, 2020, 11:30pm UTC](https://discourse.julialang.org/t/macos-catalina-julia-cannot-access-general-files/36601 "2020-03-27T23:30:14Z")

</div>

I’ve spent some considerable amount of time looking for a solution to this, which I suppose is not very common at all. But I have the most basic Catalina 10.15.4 setup in a brand new machine, and Julia simply doesn’t hav…

---

## [Array of structs can be seen in the outer loop only](https://discourse.julialang.org/t/array-of-structs-can-be-seen-in-the-outer-loop-only/36615)

<div class="topic-metadata">

**Author:** [@mayar](https://discourse.julialang.org/u/mayar)\
**Replies:** 9\
**Last updated:** [March 27, 2020, 11:22pm UTC](https://discourse.julialang.org/t/array-of-structs-can-be-seen-in-the-outer-loop-only/36615 "2020-03-27T23:22:55Z")

</div>

Hello guys, I have an array of structs and I had no problem with it until I made a double loop my array of structs is not defined inside the inner loop whereas in the outer loop, its is fine How can this be explained?…

---

## [A clever way to find the available memory the host currently has free/available?](https://discourse.julialang.org/t/a-clever-way-to-find-the-available-memory-the-host-currently-has-free-available/36611)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 4\
**Last updated:** [March 27, 2020, 9:07pm UTC](https://discourse.julialang.org/t/a-clever-way-to-find-the-available-memory-the-host-currently-has-free-available/36611 "2020-03-27T21:07:11Z")

</div>

Writing a program which uses single files to large to fit in the memory of normal desktops or laptops, I thought it would be nice to dispatch on the available memory relative to some expected required memory. In case the…

---

## [Unique rows in distributed table](https://discourse.julialang.org/t/unique-rows-in-distributed-table/36549)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 7:14pm UTC](https://discourse.julialang.org/t/unique-rows-in-distributed-table/36549 "2020-03-27T19:14:13Z")

</div>

Hi, how do I get the unique rows of a Distributed Table in JuliaDB? df = table(\["a", "a", "a", "b", "b"\], \["x", "x", "y", "x", "x"\], names = (:X1, :X2), chunks = 2) julia\> df Distributed Table with 5 rows in 2 chunks:…

---

## [From GR.colormap to Plots.cgrad](https://discourse.julialang.org/t/from-gr-colormap-to-plots-cgrad/34920)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 6\
**Last updated:** [March 27, 2020, 4:14pm UTC](https://discourse.julialang.org/t/from-gr-colormap-to-plots-cgrad/34920 "2020-03-27T16:14:39Z")

</div>

I would like to use the bone color map. As the clibraries() does not have it, but GR has as it as a colormap, tried various permutations of: GR.setcolormap(15) # this works Plots.plot(xy, c=cgrad(GR.colormap()) # this …

---

## [Variation in computation time for execution of the exact same code](https://discourse.julialang.org/t/variation-in-computation-time-for-execution-of-the-exact-same-code/36333)

<div class="topic-metadata">

**Author:** [@jleman](https://discourse.julialang.org/u/jleman)\
**Replies:** 35\
**Last updated:** [March 27, 2020, 6:57pm UTC](https://discourse.julialang.org/t/variation-in-computation-time-for-execution-of-the-exact-same-code/36333 "2020-03-27T18:57:38Z")

</div>

I have a block of code (about 1000 lines) that performs electromagnetic computation. The code is executed multiple times with random variation of key input variables. Out of curiosity I set the input variables to be th…

---

## [Operating on many arrays of the same size: one loop, many loops, or broadcasting?](https://discourse.julialang.org/t/operating-on-many-arrays-of-the-same-size-one-loop-many-loops-or-broadcasting/36608)

<div class="topic-metadata">

**Author:** [@Dr.Merkwuedigliebe](https://discourse.julialang.org/u/Dr.Merkwuedigliebe)\
**Replies:** 3\
**Last updated:** [March 27, 2020, 6:22pm UTC](https://discourse.julialang.org/t/operating-on-many-arrays-of-the-same-size-one-loop-many-loops-or-broadcasting/36608 "2020-03-27T18:22:25Z")

</div>

I am working on a physical-process simulation, set on a large spatial grid. Each cell of the grid contains a set variables representing the status of the model. Let’s say the variables are a, b, c, d, and e, stored as ar…

---

## [Is there any smart way of doing pivot table?](https://discourse.julialang.org/t/is-there-any-smart-way-of-doing-pivot-table/15636)

<div class="topic-metadata">

**Author:** [@youngjae.woo](https://discourse.julialang.org/u/youngjae.woo)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 5:58pm UTC](https://discourse.julialang.org/t/is-there-any-smart-way-of-doing-pivot-table/15636 "2020-03-27T17:58:47Z")

</div>

I often look at pivot table (one like R function’s table) a lot for single dim array. It’s not too difficult to do so and am sharing my usage so far. However, I’m sure there are better and more intuitive way of doing thi…

---

## [LoadError:PyCall.PyError](https://discourse.julialang.org/t/loaderror-pycall-pyerror/28665)

<div class="topic-metadata">

**Author:** [@OmkarGadgil](https://discourse.julialang.org/u/OmkarGadgil)\
**Replies:** 7\
**Last updated:** [March 27, 2020, 5:52pm UTC](https://discourse.julialang.org/t/loaderror-pycall-pyerror/28665 "2020-03-27T17:52:57Z")

</div>

I am getting the following Error for PyCall and am on Julia v 1.2.0 Following is the Python setup and the Conda setup in build file ENV\["PYTHON"\] = " " Pkg.build("PyCall") using PyCall, Conda pyexec = pyimport("sys").…

---

## [Index starts at 1... why does the error refer to zero index](https://discourse.julialang.org/t/index-starts-at-1-why-does-the-error-refer-to-zero-index/36606)

<div class="topic-metadata">

**Author:** [@mayar](https://discourse.julialang.org/u/mayar)\
**Replies:** 4\
**Last updated:** [March 27, 2020, 5:24pm UTC](https://discourse.julialang.org/t/index-starts-at-1-why-does-the-error-refer-to-zero-index/36606 "2020-03-27T17:24:39Z")

</div>

---

## [Extract submatrix from QR factor is slow Julia 1.4](https://discourse.julialang.org/t/extract-submatrix-from-qr-factor-is-slow-julia-1-4/36582)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 3\
**Last updated:** [March 27, 2020, 4:58pm UTC](https://discourse.julialang.org/t/extract-submatrix-from-qr-factor-is-slow-julia-1-4/36582 "2020-03-27T16:58:10Z")

</div>

Hello everyone, I have a pretty large matrix A \\sim 600 \\times 200 on which I would like to perform a QR decomposition. Performing the QR decomposition takes 10ms, that seems slow to me, is there a way to make it fas…

---

## [Where can I get detailed longitudinal data of the COVID-19 pandemics?](https://discourse.julialang.org/t/where-can-i-get-detailed-longitudinal-data-of-the-covid-19-pandemics/36577)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 4\
**Last updated:** [March 27, 2020, 4:56pm UTC](https://discourse.julialang.org/t/where-can-i-get-detailed-longitudinal-data-of-the-covid-19-pandemics/36577 "2020-03-27T16:56:32Z")

</div>

Where can I download a full dataset of the SARS-CoV-2 pandemics containing time information for each individual (date of infection, date of death, age, gender, weight, censoring information…) It’s important to get this …

---

## [Installing Ipopt](https://discourse.julialang.org/t/installing-ipopt/35608)

<div class="topic-metadata">

**Author:** [@varun\_yaramasu](https://discourse.julialang.org/u/varun_yaramasu)\
**Replies:** 8\
**Last updated:** [March 27, 2020, 4:46pm UTC](https://discourse.julialang.org/t/installing-ipopt/35608 "2020-03-27T16:46:58Z")

</div>

julia\> Pkg.build("Ipopt") Building CodecZlib ─→ \`C:\\Users\\yaramasv\\.juliapro\\JuliaPro\_v1.3.1-1\\packages\\CodecZlib\\5t9zO\\deps\\build.log\` Building MbedTLS ───→ \`C:\\Users\\yaramasv\\.juliapro\\JuliaPro\_v1.3.1-1\\packages\\…

---

## [How to take slice of array without it turning into vector](https://discourse.julialang.org/t/how-to-take-slice-of-array-without-it-turning-into-vector/36352)

<div class="topic-metadata">

**Author:** [@kw\_martin](https://discourse.julialang.org/u/kw_martin)\
**Replies:** 21\
**Last updated:** [March 27, 2020, 3:58pm UTC](https://discourse.julialang.org/t/how-to-take-slice-of-array-without-it-turning-into-vector/36352 "2020-03-27T15:58:36Z")

</div>

Background, I am realizing a filter bank of FIR filters that involve matrix operations on Array{ComplexF64,2}. Every time I take a slice, it turns into an Array{ComplexF64,1} and I have to reshape to get it back into an …

---

## [Point Julia to Cbc built from source](https://discourse.julialang.org/t/point-julia-to-cbc-built-from-source/36516)

<div class="topic-metadata">

**Author:** [@joshuastowell25](https://discourse.julialang.org/u/joshuastowell25)\
**Replies:** 5\
**Last updated:** [March 27, 2020, 3:30pm UTC](https://discourse.julialang.org/t/point-julia-to-cbc-built-from-source/36516 "2020-03-27T15:30:57Z")

</div>

Hello All, I am trying to get JuMP and Cbc to use multithreading. Turns out that in order to do this you have to build Cbc from source with the --enable-cbc-parallel option. I have followed the cbc build instructions i…

---

## [Running julia from a shell](https://discourse.julialang.org/t/running-julia-from-a-shell/36395)

<div class="topic-metadata">

**Author:** [@AhmedAlreweny](https://discourse.julialang.org/u/AhmedAlreweny)\
**Replies:** 7\
**Last updated:** [March 27, 2020, 3:12pm UTC](https://discourse.julialang.org/t/running-julia-from-a-shell/36395 "2020-03-27T15:12:22Z")

</div>

I am trying to run a Julia code on a cluster shell (linux-based). I tried to to generate an .exe or .so file using PackageCompiler.jl to avoid having to install all of the libraries and the packages that are used in the …

---

## [Convert model with anonymous variables to "readable" form](https://discourse.julialang.org/t/convert-model-with-anonymous-variables-to-readable-form/36594)

<div class="topic-metadata">

**Author:** [@richard046](https://discourse.julialang.org/u/richard046)\
**Replies:** 5\
**Last updated:** [March 27, 2020, 2:29pm UTC](https://discourse.julialang.org/t/convert-model-with-anonymous-variables-to-readable-form/36594 "2020-03-27T14:29:34Z")

</div>

Hello, I have a code(written by others) that builds a JuMP model, but I can’t see what are the constraints, becouse it has \_\_anon\_\_ variables, like this: Min \_\_anon\_\_ + \_\_anon\_\_ Subject to \_\_anon\_\_ - \_\_anon\_\_ == 0.5 …

---

## [Structs... creating a struct without passing all variables](https://discourse.julialang.org/t/structs-creating-a-struct-without-passing-all-variables/36588)

<div class="topic-metadata">

**Author:** [@mayar](https://discourse.julialang.org/u/mayar)\
**Replies:** 14\
**Last updated:** [March 27, 2020, 2:25pm UTC](https://discourse.julialang.org/t/structs-creating-a-struct-without-passing-all-variables/36588 "2020-03-27T14:25:39Z")

</div>

hello guys, I have defined a struct with 5 variables then I created one and I passed 3 out of 5 variables now I am getting error How do I define a struct without needing to define all variables Thank you

---

## [@deprecate of call overload](https://discourse.julialang.org/t/deprecate-of-call-overload/36578)

<div class="topic-metadata">

**Author:** [@abulak](https://discourse.julialang.org/u/abulak)\
**Replies:** 1\
**Last updated:** [March 27, 2020, 1:08pm UTC](https://discourse.julialang.org/t/deprecate-of-call-overload/36578 "2020-03-27T13:08:59Z")

</div>

module MyModule struct AAA end Base.one(A::AAA) = 1 @deprecate zero(A::AAA) one(A::AAA) end MyModule.zero(MyModule.AAA()) ┌ Warning: \`zero(A::AAA)\` is deprecated, use \`one(A::AAA)\` instead. │ caller = top-l…

---

## [Initializing "late" workers](https://discourse.julialang.org/t/initializing-late-workers/36591)

<div class="topic-metadata">

**Author:** [@pfarndt](https://discourse.julialang.org/u/pfarndt)\
**Replies:** 0\
**Last updated:** [March 27, 2020, 11:29am UTC](https://discourse.julialang.org/t/initializing-late-workers/36591 "2020-03-27T11:29:53Z")

</div>

I am using the ClusterManagers.ElasticManager to handle up to hundreds of julia processes in my cluster. Say I do: using Distributed, ClusterManagers c = ClusterManagers.ElasticManager(myip, port, "foobar") and then s…

---

## [MLJ probabilistic models basics](https://discourse.julialang.org/t/mlj-probabilistic-models-basics/36009)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 9\
**Last updated:** [March 27, 2020, 9:26am UTC](https://discourse.julialang.org/t/mlj-probabilistic-models-basics/36009 "2020-03-27T09:26:29Z")

</div>

I am new to MLJ and trying to do a linear regression: using MLJ nexamples = 10 nfeatures = 3 X = randn(nexamples, nfeatures) A = randn(nfeatures, 1) b = randn() noise = 0.1\*randn(nexamples) y = vec(X \* A .+ b) + nois…

---

## [Defining a specific dictionary key](https://discourse.julialang.org/t/defining-a-specific-dictionary-key/36485)

<div class="topic-metadata">

**Author:** [@CH-8](https://discourse.julialang.org/u/CH-8)\
**Replies:** 6\
**Last updated:** [March 27, 2020, 9:18am UTC](https://discourse.julialang.org/t/defining-a-specific-dictionary-key/36485 "2020-03-27T09:18:02Z")

</div>

Hi, I am trying to define a dictionary structure where I use a 2 element tuple as a key. A = Dict{Tuple{Int64, Int64}, Float64}(); A\[(1,2)\] = 7.0 The catch is, I don’t care for the order of the tuple. Therefore, A…

---

## [Plot, set a color to a smooth line?](https://discourse.julialang.org/t/plot-set-a-color-to-a-smooth-line/36567)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 2\
**Last updated:** [March 27, 2020, 8:34am UTC](https://discourse.julialang.org/t/plot-set-a-color-to-a-smooth-line/36567 "2020-03-27T08:34:21Z")

</div>

I am sorry for the easy question. Would you suggest, how to set a color for a smooth line? Thank you in advance.

---

## [Spearman Correlation, How do I find rho?](https://discourse.julialang.org/t/spearman-correlation-how-do-i-find-rho/36291)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 17\
**Last updated:** [March 27, 2020, 8:26am UTC](https://discourse.julialang.org/t/spearman-correlation-how-do-i-find-rho/36291 "2020-03-27T08:26:57Z")

</div>

B= df.Crude\_Birth\_Rate Employment\_df = DataFrame(A=df.Female\_Employment,B=df.Crude\_Birth\_Rate, )corspearman(x=A, y=B) = cor(tiedrank(A), tiedrank(B)) I’m trying to do a Spearman Correlation Test, because I know from my…

---

## [Using a Voronoi tessellation to represent a density field](https://discourse.julialang.org/t/using-a-voronoi-tessellation-to-represent-a-density-field/36585)

<div class="topic-metadata">

**Author:** [@arnauqb](https://discourse.julialang.org/u/arnauqb)\
**Replies:** 0\
**Last updated:** [March 27, 2020, 7:13am UTC](https://discourse.julialang.org/t/using-a-voronoi-tessellation-to-represent-a-density-field/36585 "2020-03-27T07:13:16Z")

</div>

Hi all, I have a set of 2D points (x,y) with a density value associated to them. I want to create a 2D density field from that, using a Voronoi tessellation. I am then interested to be able to query the density value fo…

---

## [Time each line of a code](https://discourse.julialang.org/t/time-each-line-of-a-code/36559)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 5\
**Last updated:** [March 27, 2020, 6:46am UTC](https://discourse.julialang.org/t/time-each-line-of-a-code/36559 "2020-03-27T06:46:53Z")

</div>

Hello, Is there a way to time each line of a function without having to write @time in front of each line. I am trying to figure out what are the slowest parts of my code.

---

## [JuliaPro pkg installation: ERROR: IOError: unlink: permission denied (EACCES)](https://discourse.julialang.org/t/juliapro-pkg-installation-error-ioerror-unlink-permission-denied-eacces/35912)

<div class="topic-metadata">

**Author:** [@donkeysaddle](https://discourse.julialang.org/u/donkeysaddle)\
**Replies:** 6\
**Last updated:** [March 27, 2020, 5:32am UTC](https://discourse.julialang.org/t/juliapro-pkg-installation-error-ioerror-unlink-permission-denied-eacces/35912 "2020-03-27T05:32:48Z")

</div>

I just installed JuliaPro. I have Juno up and running and have executed some basic code. I am, however, unable to install any packages. Instead I keep getting the error: ERROR: IOError: unlink: permission denied (EACCE…

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

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