# Latest

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

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

**Page:** 995

---

## [LinearRegressionKit results correctness](https://discourse.julialang.org/t/linearregressionkit-results-correctness/83579)

<div class="topic-metadata">

**Author:** [@Eric](https://discourse.julialang.org/u/Eric)\
**Replies:** 0\
**Last updated:** [June 30, 2022, 7:52pm UTC](https://discourse.julialang.org/t/linearregressionkit-results-correctness/83579 "2022-06-30T19:52:11Z")

</div>

I haven’t posted for a while, but I noticed some discussion on the forum about results correctness, and that got me thinking that maybe I should do more on my little package. Hence I used the tests that everyone seems t…

---

## [Dipatch on AbstractArray which contains missing values](https://discourse.julialang.org/t/dipatch-on-abstractarray-which-contains-missing-values/83598)

<div class="topic-metadata">

**Author:** [@Brian1](https://discourse.julialang.org/u/Brian1)\
**Replies:** 4\
**Last updated:** [July 1, 2022, 7:11am UTC](https://discourse.julialang.org/t/dipatch-on-abstractarray-which-contains-missing-values/83598 "2022-07-01T07:11:18Z")

</div>

I have a Vector: a\_vec=\[missing, 1, 2, 3\] When I need to calculate the mean of a\_vec, I used to do: mean(skipmissing(a\_vec)) 2 This is the most situation I met. So I would like to skipmissing by default, I would lik…

---

## [String representation of unitful types](https://discourse.julialang.org/t/string-representation-of-unitful-types/83535)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [July 1, 2022, 6:43am UTC](https://discourse.julialang.org/t/string-representation-of-unitful-types/83535 "2022-07-01T06:43:15Z")

</div>

julia\> typeof(1.0u"kg/m^3") \<: Number true julia\> typeof(1.0u"kg/m^3") Quantity{Float64, 𝐌 𝐋 ^-3, Unitful.FreeUnits{(kg, m^-3), 𝐌 𝐋 ^-3, nothing}} julia\> Quantity{Float64, 𝐌 𝐋 ^-3, Unitful.FreeUnits{(kg, m^-3), 𝐌 𝐋 ^…

---

## [Array comprehension: Can someone explain this typeof result?](https://discourse.julialang.org/t/array-comprehension-can-someone-explain-this-typeof-result/83597)

<div class="topic-metadata">

**Author:** [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Replies:** 7\
**Last updated:** [July 1, 2022, 6:23am UTC](https://discourse.julialang.org/t/array-comprehension-can-someone-explain-this-typeof-result/83597 "2022-07-01T06:23:02Z")

</div>

Running the code below, I expected Vector{Float64} for both cases. Is there an explanation for why I don’t get this for the g function? function ff(y) function a(x) x\>y ? x : "" end return a end g…

---

## [Spatial transformer (i.e. GPU-friendly interpolations with gradients) with Flux.jl?](https://discourse.julialang.org/t/spatial-transformer-i-e-gpu-friendly-interpolations-with-gradients-with-flux-jl/70836)

<div class="topic-metadata">

**Author:** [@afishy](https://discourse.julialang.org/u/afishy)\
**Replies:** 7\
**Last updated:** [July 1, 2022, 4:56am UTC](https://discourse.julialang.org/t/spatial-transformer-i-e-gpu-friendly-interpolations-with-gradients-with-flux-jl/70836 "2022-07-01T04:56:17Z")

</div>

Originally posted this on the flux-bridged Slack channel, but thought this might be a good place to post. I need a spatial transformer or something equivalent for a project, written so far entirely in Julia. I thought In…

---

## [Remove duplicate legend entries in PlotlyJS combined bar plot](https://discourse.julialang.org/t/remove-duplicate-legend-entries-in-plotlyjs-combined-bar-plot/83502)

<div class="topic-metadata">

**Author:** [@Mario\_Silva](https://discourse.julialang.org/u/Mario_Silva)\
**Replies:** 4\
**Last updated:** [July 1, 2022, 3:00am UTC](https://discourse.julialang.org/t/remove-duplicate-legend-entries-in-plotlyjs-combined-bar-plot/83502 "2022-07-01T03:00:34Z")

</div>

Greetings: I am vertically stacking two bar plots from PlotlyJS, which can be interpreted as a historical decomposition of output and the Solow residual over the business cycle into various shocks. The problem is that d…

---

## [StaticArrays: Sub-typing from FieldVector](https://discourse.julialang.org/t/staticarrays-sub-typing-from-fieldvector/83591)

<div class="topic-metadata">

**Author:** [@mfiano](https://discourse.julialang.org/u/mfiano)\
**Replies:** 2\
**Last updated:** [July 1, 2022, 2:47am UTC](https://discourse.julialang.org/t/staticarrays-sub-typing-from-fieldvector/83591 "2022-07-01T02:47:43Z")

</div>

New to Julia for serious programming, only having dabbled with the REPL for the last 7 years. I’m interested in using StaticArrays to experiment with. My plan is to create an abstract subtype of FieldVector: module MyMo…

---

## [Bug with initializing extra rows in sparse arrays](https://discourse.julialang.org/t/bug-with-initializing-extra-rows-in-sparse-arrays/83594)

<div class="topic-metadata">

**Author:** [@jsbryan4](https://discourse.julialang.org/u/jsbryan4)\
**Replies:** 1\
**Last updated:** [July 1, 2022, 2:36am UTC](https://discourse.julialang.org/t/bug-with-initializing-extra-rows-in-sparse-arrays/83594 "2022-07-01T02:36:59Z")

</div>

I found what I believe to be a bug in SparseArrays. If I try to make a sparse array with more rows than the max row number It fails with the error: 11×10 SparseMatrixCSC{Any, Int64} with 100 stored entries: ERROR: Metho…

---

## [Why SDDP.jl can not work together with nonlinear optimizer like juniper](https://discourse.julialang.org/t/why-sddp-jl-can-not-work-together-with-nonlinear-optimizer-like-juniper/83559)

<div class="topic-metadata">

**Author:** [@chenr86](https://discourse.julialang.org/u/chenr86)\
**Replies:** 5\
**Last updated:** [July 1, 2022, 1:56am UTC](https://discourse.julialang.org/t/why-sddp-jl-can-not-work-together-with-nonlinear-optimizer-like-juniper/83559 "2022-07-01T01:56:28Z")

</div>

Hello, I’m using JuMP.jl and Juniper.jl to solve a MINLP problem. Now I attempt to consider the uncertainty in some of the constraints by consulting theory guide of SDDP.jl. But I can’t understand how SDDP.jl deal with …

---

## [Indexing StaticArrays](https://discourse.julialang.org/t/indexing-staticarrays/83574)

<div class="topic-metadata">

**Author:** [@bmit](https://discourse.julialang.org/u/bmit)\
**Replies:** 8\
**Last updated:** [June 30, 2022, 10:50pm UTC](https://discourse.julialang.org/t/indexing-staticarrays/83574 "2022-06-30T22:50:59Z")

</div>

This is such a basic question that I almost feel bad asking it, but it would be nice to get some clarification and examples of how others are using StaticArrays.jl. I’ve found this thread, but I think my question is slig…

---

## [Understand Macro interconnections in OpenCL.jl package](https://discourse.julialang.org/t/understand-macro-interconnections-in-opencl-jl-package/83581)

<div class="topic-metadata">

**Author:** [@ImreMD](https://discourse.julialang.org/u/ImreMD)\
**Replies:** 0\
**Last updated:** [June 30, 2022, 8:31pm UTC](https://discourse.julialang.org/t/understand-macro-interconnections-in-opencl-jl-package/83581 "2022-06-30T20:31:43Z")

</div>

When you look in the OpenCL implementation code you stumble upon two macros one is ‘’‘@check’‘’ define in src/ macros.jl the other one ‘’‘@ocl\_func’‘’. @check is responsible for running the clfunc =\> $(esc(clfunc)), but …

---

## [\[ANN\] ArrayAllocators.jl v0.3 composes with OffsetArrays.jl v1.12.1+ for faster zeros with offset indexing](https://discourse.julialang.org/t/ann-arrayallocators-jl-v0-3-composes-with-offsetarrays-jl-v1-12-1-for-faster-zeros-with-offset-indexing/83161)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 4\
**Last updated:** [June 30, 2022, 8:12pm UTC](https://discourse.julialang.org/t/ann-arrayallocators-jl-v0-3-composes-with-offsetarrays-jl-v1-12-1-for-faster-zeros-with-offset-indexing/83161 "2022-06-30T20:12:41Z")

</div>

ArrrayAllocators.jl v0.3.0+ and OffsetArrays.jl v1.12.1+ now compose. This means that you can now construct an OffsetArray of 0s using the following equivalent lines of code. julia\> using OffsetArrays, ArrayAllocators …

---

## [Help with hosting documentation using Documenter.jl](https://discourse.julialang.org/t/help-with-hosting-documentation-using-documenter-jl/83575)

<div class="topic-metadata">

**Author:** [@JosePereiraUA](https://discourse.julialang.org/u/JosePereiraUA)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 6:37pm UTC](https://discourse.julialang.org/t/help-with-hosting-documentation-using-documenter-jl/83575 "2022-06-30T18:37:43Z")

</div>

Hi, I’m in desperate need of help: I don’t even know where to start. I’m developing this package https://github.com/sergio-santos-group/ProtoSyn.jl/tree/dev (I’m linking to the dev branch, this is what I’m trying to me…

---

## [Makie 3d plot cannot rotate in jupyter notebook?](https://discourse.julialang.org/t/makie-3d-plot-cannot-rotate-in-jupyter-notebook/68191)

<div class="topic-metadata">

**Author:** [@jt\_Yang](https://discourse.julialang.org/u/jt_Yang)\
**Replies:** 12\
**Last updated:** [June 30, 2022, 5:40pm UTC](https://discourse.julialang.org/t/makie-3d-plot-cannot-rotate-in-jupyter-notebook/68191 "2022-06-30T17:40:59Z")

</div>

Hi, I tried a Makie 3d plot sample both in REPL and jupyter notebook. REPL created a new Makie window for the plot and the plot can be rotated with mouse, however, jupyter only gave a fix pic which cannot be rotated at …

---

## [Unable to plot from the REPL with PyPlot](https://discourse.julialang.org/t/unable-to-plot-from-the-repl-with-pyplot/3112)

<div class="topic-metadata">

**Author:** [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)\
**Replies:** 15\
**Last updated:** [June 30, 2022, 4:06pm UTC](https://discourse.julialang.org/t/unable-to-plot-from-the-repl-with-pyplot/3112 "2022-06-30T16:06:57Z")

</div>

I recently decided to try Julia 0.6. I installed a Generic Linux binary (nightly build) on my machine. For plotting, I installed PyPlot, using my system’s installation of matplotlib (i.e., not Conda). Plotting works fine…

---

## [Arpack error when trying to use StatsPlots in a Bayesian Linear Regression example](https://discourse.julialang.org/t/arpack-error-when-trying-to-use-statsplots-in-a-bayesian-linear-regression-example/83493)

<div class="topic-metadata">

**Author:** [@sree\_datta](https://discourse.julialang.org/u/sree_datta)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 3:58pm UTC](https://discourse.julialang.org/t/arpack-error-when-trying-to-use-statsplots-in-a-bayesian-linear-regression-example/83493 "2022-06-30T15:58:57Z")

</div>

Hi New user of Julia. I’m using Julia1.7.3 on a Linux Ubuntu 21.04 machine. I created a new environment for testing simple and advanced Bayesian Models using Turing. These are models I have previously tested in R (brms…

---

## [Create Unit Circle with its Sin Cos Animation](https://discourse.julialang.org/t/create-unit-circle-with-its-sin-cos-animation/83467)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 21\
**Last updated:** [June 30, 2022, 3:33pm UTC](https://discourse.julialang.org/t/create-unit-circle-with-its-sin-cos-animation/83467 "2022-06-30T15:33:57Z")

</div>

I want to create animation that a circle will rotate around a unit circle, and the second plot the circle move along the sine function, and the third plot the circle move along the cosine function. Which package for anim…

---

## [Julia vs MATLAB for image processing and finding the forged part in the image](https://discourse.julialang.org/t/julia-vs-matlab-for-image-processing-and-finding-the-forged-part-in-the-image/13662)

<div class="topic-metadata">

**Author:** [@Avi07](https://discourse.julialang.org/u/Avi07)\
**Replies:** 5\
**Last updated:** [June 30, 2022, 2:31pm UTC](https://discourse.julialang.org/t/julia-vs-matlab-for-image-processing-and-finding-the-forged-part-in-the-image/13662 "2022-06-30T14:31:59Z")

</div>

Can i use Julia instead of Matlab for image processing and finding the forged part in the image?

---

## [Debug mode (Atom-Juno) skipping error during SVD in julia script](https://discourse.julialang.org/t/debug-mode-atom-juno-skipping-error-during-svd-in-julia-script/82692)

<div class="topic-metadata">

**Author:** [@Rafael\_Navarro](https://discourse.julialang.org/u/Rafael_Navarro)\
**Replies:** 2\
**Last updated:** [June 30, 2022, 3:05pm UTC](https://discourse.julialang.org/t/debug-mode-atom-juno-skipping-error-during-svd-in-julia-script/82692 "2022-06-30T15:05:25Z")

</div>

Hello julia developers, I am trying to apply a method called HePPCAT to my data. This method is able to reduce variance in heteroscedastic data by a nonconvex optimization through expectation maximization. During one of…

---

## [How to use function in REPL without module name](https://discourse.julialang.org/t/how-to-use-function-in-repl-without-module-name/83567)

<div class="topic-metadata">

**Author:** [@Maxim\_Lubov](https://discourse.julialang.org/u/Maxim_Lubov)\
**Replies:** 3\
**Last updated:** [June 30, 2022, 2:57pm UTC](https://discourse.julialang.org/t/how-to-use-function-in-repl-without-module-name/83567 "2022-06-30T14:57:24Z")

</div>

I am working in VSCode and I want to run functions from the module I’ve been developing in the REPL without writing module name. So, I want this transformation: julia\> MyModule.my\_function() → julia\> my\_function() I tr…

---

## [Docstring not rendering underscore](https://discourse.julialang.org/t/docstring-not-rendering-underscore/15818)

<div class="topic-metadata">

**Author:** [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Replies:** 5\
**Last updated:** [June 30, 2022, 12:31pm UTC](https://discourse.julialang.org/t/docstring-not-rendering-underscore/15818 "2022-06-30T12:31:55Z")

</div>

I have a docstring which is quoted in triple " When I use ?my\_fn the help which is shown, is missing SOME underscores, but not all. I tried masking the underscores with a backslash but that will not be parsed by julia. …

---

## [Weird error after defining Base.show method for custom DataType](https://discourse.julialang.org/t/weird-error-after-defining-base-show-method-for-custom-datatype/83562)

<div class="topic-metadata">

**Author:** [@dylanxyz](https://discourse.julialang.org/u/dylanxyz)\
**Replies:** 2\
**Last updated:** [June 30, 2022, 11:12am UTC](https://discourse.julialang.org/t/weird-error-after-defining-base-show-method-for-custom-datatype/83562 "2022-06-30T11:12:22Z")

</div>

I don’t know if defining a new method of Base.show for a custom type (the type itself and not it instances) is something that someone shouldn’t do, but basically: i have a type Operator{T} where T is a Symbol, and instea…

---

## [Equivalent to Rosetta in Julia](https://discourse.julialang.org/t/equivalent-to-rosetta-in-julia/32168)

<div class="topic-metadata">

**Author:** [@Seanny123](https://discourse.julialang.org/u/Seanny123)\
**Replies:** 4\
**Last updated:** [June 30, 2022, 10:24am UTC](https://discourse.julialang.org/t/equivalent-to-rosetta-in-julia/32168 "2022-06-30T10:24:43Z")

</div>

I’ve recently started working at a biotech startup. One of the tools used by these types of companies is the macromolecular modelling tool Rosetta. I don’t totally understand Rosetta’s various capabilities/limitations. T…

---

## [Does @simd hang Base.Threads.@spawn?](https://discourse.julialang.org/t/does-simd-hang-base-threads-spawn/83114)

<div class="topic-metadata">

**Author:** [@Nick\_Matzke](https://discourse.julialang.org/u/Nick_Matzke)\
**Replies:** 11\
**Last updated:** [June 30, 2022, 10:14am UTC](https://discourse.julialang.org/t/does-simd-hang-base-threads-spawn/83114 "2022-06-30T10:14:19Z")

</div>

Hi all, I have an expensive function, f(x), that is embarassingly parallel. E.g. I have to run f(x) 300 times on different x, and each f(x) can take 20 seconds. I wrote a function to parallelize the above, and it work…

---

## [Overwriting Functions from another package in your package](https://discourse.julialang.org/t/overwriting-functions-from-another-package-in-your-package/83545)

<div class="topic-metadata">

**Author:** [@arbitrandomuser](https://discourse.julialang.org/u/arbitrandomuser)\
**Replies:** 3\
**Last updated:** [June 30, 2022, 10:06am UTC](https://discourse.julialang.org/t/overwriting-functions-from-another-package-in-your-package/83545 "2022-06-30T10:06:37Z")

</div>

I’m implementing a feature for Javis . Javis is an animation library . To draw every frame it uses Luxor . Now for this feature to be implemented I need to change the behaviour of a few functions in Javis. I am overwri…

---

## [Create an image from matrix](https://discourse.julialang.org/t/create-an-image-from-matrix/83523)

<div class="topic-metadata">

**Author:** [@extremety1989](https://discourse.julialang.org/u/extremety1989)\
**Replies:** 4\
**Last updated:** [June 29, 2022, 4:51pm UTC](https://discourse.julialang.org/t/create-an-image-from-matrix/83523 "2022-06-29T16:51:44Z")

</div>

i am using gans to generate an image, it ouputs an array of size (256,256,3,1) “WHCB” how can build an image out of it ? here is an example what i tried, i think i need to remove dim ( channels and batch): function cre…

---

## [Symbolic Arrays have issues with Complex Numbers](https://discourse.julialang.org/t/symbolic-arrays-have-issues-with-complex-numbers/83538)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 9:35am UTC](https://discourse.julialang.org/t/symbolic-arrays-have-issues-with-complex-numbers/83538 "2022-06-30T09:35:11Z")

</div>

I can’t work with complex numbers multiplying Symbolic Arrays. Here an example: using Symbolics, SpecialFunctions N = 3 @variables r\[1:N, 1:N\], ϕ\[1:N, 1:N\] H = hankelh1.(0, r) P = cos.(ϕ) Q = im.\*cos.(ϕ)# also does n…

---

## [Loading a precompiled module does not respect the module import order](https://discourse.julialang.org/t/loading-a-precompiled-module-does-not-respect-the-module-import-order/83560)

<div class="topic-metadata">

**Author:** [@thautwarm](https://discourse.julialang.org/u/thautwarm)\
**Replies:** 0\
**Last updated:** [June 30, 2022, 9:34am UTC](https://discourse.julialang.org/t/loading-a-precompiled-module-does-not-respect-the-module-import-order/83560 "2022-06-30T09:34:52Z")

</div>

I’ve just made a package JuliaPythonAdaptor.jl that helps automatically setting up environment variables required by PythonCall.jl. Things works pretty fine if I use these two packages in REPL: # 'JuliaPythonAdaptor.\_\_…

---

## [DifferentialEquations.jl How to speed up the solver](https://discourse.julialang.org/t/differentialequations-jl-how-to-speed-up-the-solver/83549)

<div class="topic-metadata">

**Author:** [@Nalaka](https://discourse.julialang.org/u/Nalaka)\
**Replies:** 3\
**Last updated:** [June 30, 2022, 9:32am UTC](https://discourse.julialang.org/t/differentialequations-jl-how-to-speed-up-the-solver/83549 "2022-06-30T09:32:26Z")

</div>

I am using Julia to solve set of differential equations of a omni-wheeled mobile robot. It took 1264.41 sec (21.07 min) to solve the system (But in mathematica, it took less than 4s). In the time, it showed 99% time is f…

---

## [Efficient Evaluation of a Matrix of Function Products](https://discourse.julialang.org/t/efficient-evaluation-of-a-matrix-of-function-products/83466)

<div class="topic-metadata">

**Author:** [@martintb](https://discourse.julialang.org/u/martintb)\
**Replies:** 8\
**Last updated:** [June 30, 2022, 7:30am UTC](https://discourse.julialang.org/t/efficient-evaluation-of-a-matrix-of-function-products/83466 "2022-06-30T07:30:08Z")

</div>

Hi all, I’m trying to compute every product of two functions of a set of different functions fv (e.g., a set of wavefunctions) at different x to obtain a matrix y for each x of shape NxN where N is the number of functio…

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

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