# Latest

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

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

**Page:** 1292

---

## [How to use push!() in a two-dimensional matrix](https://discourse.julialang.org/t/how-to-use-push-in-a-two-dimensional-matrix/66790)

<div class="topic-metadata">

**Author:** [@soldin](https://discourse.julialang.org/u/soldin)\
**Replies:** 30\
**Last updated:** [August 22, 2021, 9:11pm UTC](https://discourse.julialang.org/t/how-to-use-push-in-a-two-dimensional-matrix/66790 "2021-08-22T21:11:00Z")

</div>

Hi everyone, I need to put values into a matrix initialized with 2 rows and 0 columns. I have tried the following three ways but without success. Please inform me the correct way. First y=zeros(Float16,2,0) display(y)…

---

## [Some strange problems in vscode](https://discourse.julialang.org/t/some-strange-problems-in-vscode/66807)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 2\
**Last updated:** [August 22, 2021, 6:59pm UTC](https://discourse.julialang.org/t/some-strange-problems-in-vscode/66807 "2021-08-22T18:59:59Z")

</div>

Hi, all In the past, when I was going to add a package, I entered \] and it would pop up： (@1.6) pkg\> but now, it pop up (IES) pkg\> IES is the first path in my workspace the other mistake is when I start Julia REPL …

---

## [Computing linear convolution efficiently](https://discourse.julialang.org/t/computing-linear-convolution-efficiently/66496)

<div class="topic-metadata">

**Author:** [@jinml](https://discourse.julialang.org/u/jinml)\
**Replies:** 22\
**Last updated:** [August 18, 2021, 5:24pm UTC](https://discourse.julialang.org/t/computing-linear-convolution-efficiently/66496 "2021-08-18T17:24:50Z")

</div>

Hi, I am looking for a way to efficiently compute linear convolution. I’m thinking about using the ToeplitzMatrix package with its Circulant matrix to store one of the two signals efficiently, and apply this matrix to an…

---

## [PlotlyJS: how to change the aspect ratio of a 3D plot](https://discourse.julialang.org/t/plotlyjs-how-to-change-the-aspect-ratio-of-a-3d-plot/66779)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 5\
**Last updated:** [August 22, 2021, 11:09am UTC](https://discourse.julialang.org/t/plotlyjs-how-to-change-the-aspect-ratio-of-a-3d-plot/66779 "2021-08-22T11:09:31Z")

</div>

I have tried to change the aspect ratio of a typical 3D plot using PlotlyJS. I searched but found no helpful answer to my problem. The MWE below produces a tall and thin cube with the surface in. I want to change the as…

---

## [Know whether a value is a "core" Julia type](https://discourse.julialang.org/t/know-whether-a-value-is-a-core-julia-type/66190)

<div class="topic-metadata">

**Author:** [@tlienart](https://discourse.julialang.org/u/tlienart)\
**Replies:** 10\
**Last updated:** [August 22, 2021, 8:02am UTC](https://discourse.julialang.org/t/know-whether-a-value-is-a-core-julia-type/66190 "2021-08-22T08:02:26Z")

</div>

In the context of serialisation, I’d like to know if a given variable has type part of Julia’s “core types” (i.e. does not depend on a user-defined type or an external lib). The context is that I’d like to have a differe…

---

## [A stable RNG for tests: request for feed-back](https://discourse.julialang.org/t/a-stable-rng-for-tests-request-for-feed-back/38195)

<div class="topic-metadata">

**Author:** [@rfourquet](https://discourse.julialang.org/u/rfourquet)\
**Replies:** 24\
**Last updated:** [August 22, 2021, 3:54pm UTC](https://discourse.julialang.org/t/a-stable-rng-for-tests-request-for-feed-back/38195 "2021-08-22T15:54:29Z")

</div>

I would like to extend and ask feed back on a discussion started yesterday on Slack. The problem is about the default Julia RNG whose stream of generated random numbers can change in minor Julia version. There is a good…

---

## [Pointwise getproperty](https://discourse.julialang.org/t/pointwise-getproperty/66806)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 3:52pm UTC](https://discourse.julialang.org/t/pointwise-getproperty/66806 "2021-08-22T15:52:02Z")

</div>

Hi, I am thinking about the neatest way to neatest way to project an iterable of structs to an iterable of a member of each of these structs. For example: struct Point x::Int y::Int end points=\[Point(1,11),Point(2,12)\]…

---

## [How to correct a package "building" error?](https://discourse.julialang.org/t/how-to-correct-a-package-building-error/66746)

<div class="topic-metadata">

**Author:** [@r0b0ty](https://discourse.julialang.org/u/r0b0ty)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 2:39pm UTC](https://discourse.julialang.org/t/how-to-correct-a-package-building-error/66746 "2021-08-22T14:39:06Z")

</div>

Hello everyone. I’m new to the Julia community and in the process of going through various tutorials. During a packages update to the Julia-DataFrames-Tutorial, I obtained a segmentation fault and the update aborts. (…

---

## [Any suggestions for speeding this simple scalar function up?](https://discourse.julialang.org/t/any-suggestions-for-speeding-this-simple-scalar-function-up/66748)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 36\
**Last updated:** [August 22, 2021, 2:35pm UTC](https://discourse.julialang.org/t/any-suggestions-for-speeding-this-simple-scalar-function-up/66748 "2021-08-22T14:35:24Z")

</div>

Hi! I’ve been playing around calculating this expression: P = b \* ((rho/rho0)^gamma - 1) Where values for b are shown how to be calculated in the code (see bottom spoiler). Running the different variants I have of the…

---

## [Reverting from development version of project to registered release](https://discourse.julialang.org/t/reverting-from-development-version-of-project-to-registered-release/66802)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 2:08pm UTC](https://discourse.julialang.org/t/reverting-from-development-version-of-project-to-registered-release/66802 "2021-08-22T14:08:43Z")

</div>

Sometimes when I am developing a package, I want to see how the changes might affect one of my projects. Typically, I do the following: Activate project environment: \] activate MyProject Switch the development versio…

---

## [Conversion from Matlab to Julia](https://discourse.julialang.org/t/conversion-from-matlab-to-julia/66317)

<div class="topic-metadata">

**Author:** [@Chaitanya](https://discourse.julialang.org/u/Chaitanya)\
**Replies:** 40\
**Last updated:** [August 22, 2021, 1:16pm UTC](https://discourse.julialang.org/t/conversion-from-matlab-to-julia/66317 "2021-08-22T13:16:14Z")

</div>

Hello Everyone. I have recently shifted to Julia from matlab. Storing data in julia with for loops has been a trouble for me Here, is the simple matlab code. I would appreciate if anyone could help me out the conversio…

---

## [Adding and accessing library files in julia package?](https://discourse.julialang.org/t/adding-and-accessing-library-files-in-julia-package/66799)

<div class="topic-metadata">

**Author:** [@Rajesh\_Nakka](https://discourse.julialang.org/u/Rajesh_Nakka)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 12:55pm UTC](https://discourse.julialang.org/t/adding-and-accessing-library-files-in-julia-package/66799 "2021-08-22T12:55:10Z")

</div>

My plan is writing a my\_Julia\_package which depends on third party libraries. These libraries (with extensions .dll, .so and .dylib) are available at an URL and have to be accessed in my package. I don’t want to include …

---

## [JET.jl Invalid Type Signature](https://discourse.julialang.org/t/jet-jl-invalid-type-signature/66719)

<div class="topic-metadata">

**Author:** [@jekyllstein](https://discourse.julialang.org/u/jekyllstein)\
**Replies:** 1\
**Last updated:** [August 22, 2021, 8:07am UTC](https://discourse.julialang.org/t/jet-jl-invalid-type-signature/66719 "2021-08-22T08:07:23Z")

</div>

I was trying to use JET.jl to analyze a package and I ran into a type signature error. I have a toy example that reproduces the same issue. module Test ParamType = Union{Tuple{Real, Vararg{Real, N} where N}, Tuple{Rea…

---

## [Plots.jl GR add space between the colorbar and the colorbar\_title](https://discourse.julialang.org/t/plots-jl-gr-add-space-between-the-colorbar-and-the-colorbar-title/66785)

<div class="topic-metadata">

**Author:** [@josePereiro](https://discourse.julialang.org/u/josePereiro)\
**Replies:** 4\
**Last updated:** [August 22, 2021, 6:10am UTC](https://discourse.julialang.org/t/plots-jl-gr-add-space-between-the-colorbar-and-the-colorbar-title/66785 "2021-08-22T06:10:51Z")

</div>

Hi, how can I control the space between the colorbar and the colorbar\_title? using Plots p = heatmap(rand(100, 100); colorbar\_title = "colorbar title", thickness\_scaling = 1.6, ) savefig(p, "test.png") Im usi…

---

## [List files](https://discourse.julialang.org/t/list-files/22542)

<div class="topic-metadata">

**Author:** [@Aquaman](https://discourse.julialang.org/u/Aquaman)\
**Replies:** 12\
**Last updated:** [August 22, 2021, 5:50am UTC](https://discourse.julialang.org/t/list-files/22542 "2021-08-22T05:50:40Z")

</div>

Hi, which command can we use for list files (shell script) in Julia Terminal Windows? Best!

---

## [Unexpected Allocation with Iterator Extension](https://discourse.julialang.org/t/unexpected-allocation-with-iterator-extension/66566)

<div class="topic-metadata">

**Author:** [@pulsipher](https://discourse.julialang.org/u/pulsipher)\
**Replies:** 2\
**Last updated:** [August 22, 2021, 3:04am UTC](https://discourse.julialang.org/t/unexpected-allocation-with-iterator-extension/66566 "2021-08-22T03:04:57Z")

</div>

I am trying to implement an iterator that acts on heterogenous types whose elements may or may not need to iterated over themselves. Hence, this is sort of a nested iterator. However, I keep running into unexpected alloc…

---

## [OLS: difference between \\ and normal equation (and inv or pinv)](https://discourse.julialang.org/t/ols-difference-between-and-normal-equation-and-inv-or-pinv/66739)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 10\
**Last updated:** [August 22, 2021, 12:06am UTC](https://discourse.julialang.org/t/ols-difference-between-and-normal-equation-and-inv-or-pinv/66739 "2021-08-22T00:06:39Z")

</div>

Hello, I am hoping to reference this in an upcoming article on JuliaActuary. Is there something fundamentally different in the above code vs ols(x,y) = x \\ y that would make this syntactically shorter version able to be…

---

## [Julia implementation of seqperiod (from MATLAB)](https://discourse.julialang.org/t/julia-implementation-of-seqperiod-from-matlab/66791)

<div class="topic-metadata">

**Author:** [@MathGuy](https://discourse.julialang.org/u/MathGuy)\
**Replies:** 12\
**Last updated:** [August 21, 2021, 11:50pm UTC](https://discourse.julialang.org/t/julia-implementation-of-seqperiod-from-matlab/66791 "2021-08-21T23:50:37Z")

</div>

Hi! I’ve been playing with Julia for a while. Suppose you are given a 2000-by10000 Matrix of Float64 type and were told to find the periodicity of each of the 10k columns and store it in some variable. Note that, very c…

---

## [Where can i find documentation about Flux modular (approach) for building models?](https://discourse.julialang.org/t/where-can-i-find-documentation-about-flux-modular-approach-for-building-models/66780)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 4\
**Last updated:** [August 21, 2021, 7:17pm UTC](https://discourse.julialang.org/t/where-can-i-find-documentation-about-flux-modular-approach-for-building-models/66780 "2021-08-21T19:17:02Z")

</div>

i found this example ,but no documentation how to build this way struct FFNetwork fc\_1 dropout fc\_2 FFNetwork( input\_dim::Int, hidden\_dim::Int, dropout::Float32, num\_classes::Int ) = new( …

---

## [Rand and Sampler interface for multiple samples](https://discourse.julialang.org/t/rand-and-sampler-interface-for-multiple-samples/66770)

<div class="topic-metadata">

**Author:** [@fedario](https://discourse.julialang.org/u/fedario)\
**Replies:** 2\
**Last updated:** [August 21, 2021, 6:10pm UTC](https://discourse.julialang.org/t/rand-and-sampler-interface-for-multiple-samples/66770 "2021-08-21T18:10:14Z")

</div>

Hi Julia community! I’m trying to implement the Random.rand function for a custom distribution. That distribution can have different “event” sizes, meaning a single sample could be a scalar, a vector, or in general an …

---

## [Upgrade to lower numbered package](https://discourse.julialang.org/t/upgrade-to-lower-numbered-package/66782)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 6\
**Last updated:** [August 21, 2021, 5:10pm UTC](https://discourse.julialang.org/t/upgrade-to-lower-numbered-package/66782 "2021-08-21T17:10:00Z")

</div>

When I update in Pkg it actually downgrades quite a lot of packages. My best guess was that this was happening as a result of some package that depend on old packages. But when I got a new version of julia, updated and…

---

## [LaTeX not working in Makie](https://discourse.julialang.org/t/latex-not-working-in-makie/66687)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 7\
**Last updated:** [August 21, 2021, 5:04pm UTC](https://discourse.julialang.org/t/latex-not-working-in-makie/66687 "2021-08-21T17:04:43Z")

</div>

I am trying to figure out how to use Makie. As a simple test, I decided to run the following code snippet: using CairoMakie, LaTeXStrings xs = 0.0:0.01:2.0 lines(xs, sin.(π.\*xs), axis=(title=L"\\sin{x}",)) However, I …

---

## [Statically typed Java? I take Julia every time](https://discourse.julialang.org/t/statically-typed-java-i-take-julia-every-time/66443)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 7\
**Last updated:** [August 21, 2021, 3:38pm UTC](https://discourse.julialang.org/t/statically-typed-java-i-take-julia-every-time/66443 "2021-08-21T15:38:23Z")

</div>

Wow. So much for statically typed language. High-level aggregate findings: Avg. Java application will throw 9.2 million errors/month Avg. Java application generates about 2.7TB of storage/month Avg. Java applic…

---

## [Running something atexit after all finalizer](https://discourse.julialang.org/t/running-something-atexit-after-all-finalizer/66778)

<div class="topic-metadata">

**Author:** [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Replies:** 3\
**Last updated:** [August 21, 2021, 3:36pm UTC](https://discourse.julialang.org/t/running-something-atexit-after-all-finalizer/66778 "2021-08-21T15:36:27Z")

</div>

I have some finalizers they need to ccall in order to free some external resources. I also have a function I need to call right at the end which completes the tear-down – it undoes something I do in \_\_init\_\_. That at-…

---

## [Efficient use of @turbo for linear algebra operations (LoopVectorization.jl)](https://discourse.julialang.org/t/efficient-use-of-turbo-for-linear-algebra-operations-loopvectorization-jl/66771)

<div class="topic-metadata">

**Author:** [@fipelle](https://discourse.julialang.org/u/fipelle)\
**Replies:** 6\
**Last updated:** [August 21, 2021, 3:04pm UTC](https://discourse.julialang.org/t/efficient-use-of-turbo-for-linear-algebra-operations-loopvectorization-jl/66771 "2021-08-21T15:04:55Z")

</div>

Hi, I am trying to understand how to use the @turbo macro from LoopVectorization.jl efficiently. I am starting with a generalised dot product, as implemented in LinearAlgebra. I basically took the code from LinearAlgeb…

---

## [Use of Coveralls](https://discourse.julialang.org/t/use-of-coveralls/66743)

<div class="topic-metadata">

**Author:** [@willtebbutt](https://discourse.julialang.org/u/willtebbutt)\
**Replies:** 2\
**Last updated:** [August 21, 2021, 1:39pm UTC](https://discourse.julialang.org/t/use-of-coveralls/66743 "2021-08-21T13:39:08Z")

</div>

I’m trying to transfer TemporalGPs.jl over to coveralls but am hitting a wall. I’ve added what I believe to be appropriate sections to my .github/workflows/ci.yml, but after tests have passed I’m not seeing any coverage …

---

## [Batch evaluation for NeuralODE?](https://discourse.julialang.org/t/batch-evaluation-for-neuralode/66753)

<div class="topic-metadata">

**Author:** [@kengyangyao](https://discourse.julialang.org/u/kengyangyao)\
**Replies:** 1\
**Last updated:** [August 21, 2021, 1:26pm UTC](https://discourse.julialang.org/t/batch-evaluation-for-neuralode/66753 "2021-08-21T13:26:06Z")

</div>

Hi, I am new to Julia and am trying to use NeuralODE as follows: d\_in, dim\_hidden = 25, 16 tspan = (0., 1.) t = range(tspan\[1\], tspan\[2\], length=100) dxdt = Chain(Dense(d\_in, dim\_hidden, tanh), Dense(dim\_hidden, dim\_hid…

---

## [Changing the smoothness of density function](https://discourse.julialang.org/t/changing-the-smoothness-of-density-function/66611)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 28\
**Last updated:** [August 21, 2021, 11:24am UTC](https://discourse.julialang.org/t/changing-the-smoothness-of-density-function/66611 "2021-08-21T11:24:32Z")

</div>

Hi, I wish to plot a density function (to compare to another density function I have plotted). Unfortunatley, all values are integers, typically between 0 and 5. This gives a very jagged, and ugly looking plot. Is there…

---

## [Cannot run Notebook from within VS Code "Running cells with 'Python 3.8.0 64-bit' requires notebook."](https://discourse.julialang.org/t/cannot-run-notebook-from-within-vs-code-running-cells-with-python-3-8-0-64-bit-requires-notebook/66192)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 2\
**Last updated:** [August 21, 2021, 11:03am UTC](https://discourse.julialang.org/t/cannot-run-notebook-from-within-vs-code-running-cells-with-python-3-8-0-64-bit-requires-notebook/66192 "2021-08-21T11:03:17Z")

</div>

Hi, I have a VS Code installation where I open a jupyter notebook I have previously created in jupyter lab. When I opened it I needed to install a python extension. I can edit cells, but when I try to run anything I get…

---

## [Solving A\\b in parallel](https://discourse.julialang.org/t/solving-a-b-in-parallel/10011)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 13\
**Last updated:** [August 21, 2021, 10:25am UTC](https://discourse.julialang.org/t/solving-a-b-in-parallel/10011 "2021-08-21T10:25:09Z")

</div>

I have an access to a large shared-memory machine. It has memory in the order of TB, and has 64 CPU cores. If I want to perform A\\b for a square matrix A and column vector b on this shared-memory machine using multiple…

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

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