# Latest

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

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

**Page:** 1669

---

## [Question about Types](https://discourse.julialang.org/t/question-about-types/44386)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 9\
**Last updated:** [August 6, 2020, 4:22am UTC](https://discourse.julialang.org/t/question-about-types/44386 "2020-08-06T04:22:19Z")

</div>

a=convert(Vector{Float64},rand(20)) In Workplace it is of type Vector, but in REPL it is of type Array. Why is that?Thank you very much!

---

## [Cross correlation with StatsBase.crosscor answer does not make sense](https://discourse.julialang.org/t/cross-correlation-with-statsbase-crosscor-answer-does-not-make-sense/44374)

<div class="topic-metadata">

**Author:** [@Ruan\_Stander](https://discourse.julialang.org/u/Ruan_Stander)\
**Replies:** 1\
**Last updated:** [August 6, 2020, 1:55am UTC](https://discourse.julialang.org/t/cross-correlation-with-statsbase-crosscor-answer-does-not-make-sense/44374 "2020-08-06T01:55:58Z")

</div>

Using StatsBase.crosscor and finding unexpected answers Example below: answer below is 0.66666 and I think it should be 1 since crosscor calculates the correlation of numone with the 1 lag correlation of numtwo which i…

---

## [Calling MATLAB function from Julia using the run() command](https://discourse.julialang.org/t/calling-matlab-function-from-julia-using-the-run-command/44299)

<div class="topic-metadata">

**Author:** [@josimar](https://discourse.julialang.org/u/josimar)\
**Replies:** 5\
**Last updated:** [August 6, 2020, 12:38am UTC](https://discourse.julialang.org/t/calling-matlab-function-from-julia-using-the-run-command/44299 "2020-08-06T00:38:29Z")

</div>

I am trying to call a MATLAB function from Julia but I am getting the error below. There is something wrong with the way that I am setting up the quotes. In the context of my problem below, I don’t know how to interpret…

---

## [Split char from word](https://discourse.julialang.org/t/split-char-from-word/44364)

<div class="topic-metadata">

**Author:** [@Fuad\_Sami](https://discourse.julialang.org/u/Fuad_Sami)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 11:56pm UTC](https://discourse.julialang.org/t/split-char-from-word/44364 "2020-08-05T23:56:58Z")

</div>

help please i have an array arr = \[AAAAA\] i need to split it to arr = \[A,A,A,A,A\] i tried the split method put it does not work

---

## [How to model a \<= 1/b](https://discourse.julialang.org/t/how-to-model-a-1-b/44370)

<div class="topic-metadata">

**Author:** [@sobhan](https://discourse.julialang.org/u/sobhan)\
**Replies:** 5\
**Last updated:** [August 5, 2020, 10:42pm UTC](https://discourse.julialang.org/t/how-to-model-a-1-b/44370 "2020-08-05T22:42:15Z")

</div>

i know we can write a \\geq \\frac{1}{b} as \[a +b, a - b, 2\] in SecondOrderCone() or a + b \\geq ||(a-b, 2)||\_2 But how can i rewrite a \\leq \\frac{1}{b} with Second Order cones, power cones, exponential cones, basically an…

---

## [Method naming conflicts even if method signature does not?](https://discourse.julialang.org/t/method-naming-conflicts-even-if-method-signature-does-not/44350)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 5\
**Last updated:** [August 5, 2020, 10:32pm UTC](https://discourse.julialang.org/t/method-naming-conflicts-even-if-method-signature-does-not/44350 "2020-08-05T22:32:33Z")

</div>

I have a simple question: If I export a function like weights(m::MyType) = m.weights from my package, why do I get things like WARNING: both MyPackage and StatsBase export "weights"; uses of it in module Main must be qu…

---

## [Order dependence of calls to isa through Cassette](https://discourse.julialang.org/t/order-dependence-of-calls-to-isa-through-cassette/44259)

<div class="topic-metadata">

**Author:** [@ckfinite](https://discourse.julialang.org/u/ckfinite)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 10:07pm UTC](https://discourse.julialang.org/t/order-dependence-of-calls-to-isa-through-cassette/44259 "2020-08-05T22:07:59Z")

</div>

I’m having a bit of a weird problem with Cassette when trying to overdub isa , as the result appears to change based on the sequence of calls despite no explicit state being shared between the calls. The example using C…

---

## [Expand matrix from n x n to n+1 x n+1](https://discourse.julialang.org/t/expand-matrix-from-n-x-n-to-n-1-x-n-1/44365)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 9:26pm UTC](https://discourse.julialang.org/t/expand-matrix-from-n-x-n-to-n-1-x-n-1/44365 "2020-08-05T21:26:25Z")

</div>

Hello, Is there a convenient function to augment in-place a matrix A from n \\times n to n+1 \\times n+1. We can always do A = hcat(vcat(A, zeros(1, size(A,1))), zeros(size(A,1)+1,1))

---

## [Detecting crosses in grids](https://discourse.julialang.org/t/detecting-crosses-in-grids/6720)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 53\
**Last updated:** [August 5, 2020, 9:03pm UTC](https://discourse.julialang.org/t/detecting-crosses-in-grids/6720 "2020-08-05T21:03:49Z")

</div>

Hi all, Thought I’d ask for some image analysis advice: I want to detect the cross points in images of a grid (marked a couple of these in red, just as an example): (a clean and full resolution of this image is avai…

---

## [JunoDebugger or JuliaInterpreter error](https://discourse.julialang.org/t/junodebugger-or-juliainterpreter-error/44342)

<div class="topic-metadata">

**Author:** [@jxl](https://discourse.julialang.org/u/jxl)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 9:02pm UTC](https://discourse.julialang.org/t/junodebugger-or-juliainterpreter-error/44342 "2020-08-05T21:02:19Z")

</div>

Hi! I added a package. I could run the code bug-free, but when I tried to debug it, the following error message occurs. The Stacktrace does not contain any of the files in the package. Does anyone know what the problem …

---

## [Strange inconsistent in complex algebra](https://discourse.julialang.org/t/strange-inconsistent-in-complex-algebra/36851)

<div class="topic-metadata">

**Author:** [@gangchern](https://discourse.julialang.org/u/gangchern)\
**Replies:** 46\
**Last updated:** [August 5, 2020, 8:50pm UTC](https://discourse.julialang.org/t/strange-inconsistent-in-complex-algebra/36851 "2020-08-05T20:50:39Z")

</div>

The following code generate different result 1 Complex((-0.5) \* 0.5^2)^(-0.2) 2. ((-0.5) \* Complex(0.5)^2)^(-0.2) I run the code in Julia 1.1, the results are as following I thinks the point is how to define (…

---

## [VS code keybinding conflict on macOS](https://discourse.julialang.org/t/vs-code-keybinding-conflict-on-macos/44256)

<div class="topic-metadata">

**Author:** [@luraess](https://discourse.julialang.org/u/luraess)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 8:05pm UTC](https://discourse.julialang.org/t/vs-code-keybinding-conflict-on-macos/44256 "2020-08-05T20:05:29Z")

</div>

Trying the define the cursorEndSelect and cursorHomeSelect keybindings in VS code under macOS is not working as it conflicts with macOS “mission control’s spaces switching” keyboard shortcuts. The keybindings entries I …

---

## [Implementing a "keepAlive" call to Betfair's API](https://discourse.julialang.org/t/implementing-a-keepalive-call-to-betfairs-api/44363)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 0\
**Last updated:** [August 5, 2020, 7:43pm UTC](https://discourse.julialang.org/t/implementing-a-keepalive-call-to-betfairs-api/44363 "2020-08-05T19:43:28Z")

</div>

I am trying to implement a “keepAlive” call to Betfair’s API and thereby keep my session alive. Unfortunately, I am having some difficulty, and I am hoping that someone here can help me. (Please see the attached images …

---

## [Docs.julialang.org in Chrome cert revoked](https://discourse.julialang.org/t/docs-julialang-org-in-chrome-cert-revoked/44322)

<div class="topic-metadata">

**Author:** [@oheil](https://discourse.julialang.org/u/oheil)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 6:43pm UTC](https://discourse.julialang.org/t/docs-julialang-org-in-chrome-cert-revoked/44322 "2020-08-05T18:43:32Z")

</div>

I currently can’t open docs.julialang.org in Chrome (latest version): It doesn’t happen in Firefox. Anybody else has this problem?

---

## [How to create a neural network using ReverseDiff.jl?](https://discourse.julialang.org/t/how-to-create-a-neural-network-using-reversediff-jl/44360)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 0\
**Last updated:** [August 5, 2020, 6:24pm UTC](https://discourse.julialang.org/t/how-to-create-a-neural-network-using-reversediff-jl/44360 "2020-08-05T18:24:01Z")

</div>

I want to create a neural network using ReverseDiff.jl. Is it simple?

---

## [GLMM - Cholesky factorization failed](https://discourse.julialang.org/t/glmm-cholesky-factorization-failed/43925)

<div class="topic-metadata">

**Author:** [@laut](https://discourse.julialang.org/u/laut)\
**Replies:** 9\
**Last updated:** [August 5, 2020, 5:59pm UTC](https://discourse.julialang.org/t/glmm-cholesky-factorization-failed/43925 "2020-08-05T17:59:35Z")

</div>

I’m not sure what I’m doing wrong here to fit a Generalized Linear Mixed Model (@dmbates): using CSV, DataFrames, Statsbase, MixedModels orange = DataFrame(CSV.read(download(“https://raw.githubusercontent.com/timothys…

---

## [Ethics in Julia](https://discourse.julialang.org/t/ethics-in-julia/43232)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 51\
**Last updated:** [August 5, 2020, 4:31pm UTC](https://discourse.julialang.org/t/ethics-in-julia/43232 "2020-08-05T16:31:36Z")

</div>

The Julia community is amazing and I feel that many people here aim at solving problems in the best possible way. I was wondering if there is a group of people who think/care about (business) ethical questions in the Ju…

---

## [Issues when ODE solver and interpolations.jl are used together or something else perhaps?](https://discourse.julialang.org/t/issues-when-ode-solver-and-interpolations-jl-are-used-together-or-something-else-perhaps/44348)

<div class="topic-metadata">

**Author:** [@cbasile21](https://discourse.julialang.org/u/cbasile21)\
**Replies:** 4\
**Last updated:** [August 5, 2020, 4:27pm UTC](https://discourse.julialang.org/t/issues-when-ode-solver-and-interpolations-jl-are-used-together-or-something-else-perhaps/44348 "2020-08-05T16:27:37Z")

</div>

There was an unexpected behavior I noticed when using ode solver and itp that I would appreciate your help. I am sharing a problem where u\[1\] can be a assign to a value like 3000 , where the final solution was the value…

---

## [Adding more data to a JLD2 file](https://discourse.julialang.org/t/adding-more-data-to-a-jld2-file/44323)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 5\
**Last updated:** [August 5, 2020, 3:51pm UTC](https://discourse.julialang.org/t/adding-more-data-to-a-jld2-file/44323 "2020-08-05T15:51:59Z")

</div>

I’m slow with these things, but I cannot get a JLD2 file to open and save new information. Using the instructions here jldopen("example.jld2", "w") do file file\["bigdata"\] end Is file supposed to be the name of t…

---

## [System of ODE passed to the OrdinaryDiffEq solver in the symbolical array does not work](https://discourse.julialang.org/t/system-of-ode-passed-to-the-ordinarydiffeq-solver-in-the-symbolical-array-does-not-work/44329)

<div class="topic-metadata">

**Author:** [@Eldavi](https://discourse.julialang.org/u/Eldavi)\
**Replies:** 3\
**Last updated:** [August 5, 2020, 3:48pm UTC](https://discourse.julialang.org/t/system-of-ode-passed-to-the-ordinarydiffeq-solver-in-the-symbolical-array-does-not-work/44329 "2020-08-05T15:48:15Z")

</div>

I have a bulky system of 26 differential equations with 26 variables. There is a trouble of solving such a system when I pass it to the function “ode!” as an array of symbolic equations. As a demonstration example of ho…

---

## [Speeding up force calculations and mutable structs](https://discourse.julialang.org/t/speeding-up-force-calculations-and-mutable-structs/44228)

<div class="topic-metadata">

**Author:** [@Michael\_Wang](https://discourse.julialang.org/u/Michael_Wang)\
**Replies:** 20\
**Last updated:** [August 5, 2020, 3:45pm UTC](https://discourse.julialang.org/t/speeding-up-force-calculations-and-mutable-structs/44228 "2020-08-05T15:45:07Z")

</div>

I put together a simple package to simulate many interacting Brownian particles. I’m trying to speed up the force calculation (for Lennard-Jones). Below is the force calculation using cell lists to find neighbors. The…

---

## [Zygote: Mutating arrays is not supported](https://discourse.julialang.org/t/zygote-mutating-arrays-is-not-supported/44309)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 3\
**Last updated:** [August 5, 2020, 3:42pm UTC](https://discourse.julialang.org/t/zygote-mutating-arrays-is-not-supported/44309 "2020-08-05T15:42:15Z")

</div>

I am trying to calculate the laplacian of a neural network using Flux library. My code is: using Flux using Zygote model = Chain(Dense(2,5,sigmoid), Dense(5,1)) function laplace(x) a, b = size(x) Δ = Zygote.Bu…

---

## [Question about the data analysis](https://discourse.julialang.org/t/question-about-the-data-analysis/44345)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 0\
**Last updated:** [August 5, 2020, 3:34pm UTC](https://discourse.julialang.org/t/question-about-the-data-analysis/44345 "2020-08-05T15:34:33Z")

</div>

I’m working on power system forecasting, and time series analysis is an indispensable part of it.Is there any Pkg in Julia that can be used for time series feature extraction?For example, the existing EMD(Empirical Mode …

---

## [Question about EMD](https://discourse.julialang.org/t/question-about-emd/44336)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 3:32pm UTC](https://discourse.julialang.org/t/question-about-emd/44336 "2020-08-05T15:32:25Z")

</div>

May I ask which time series data can be processed in Julia’s Pkg?Like EMD(Mode Decomposition).The Pkg on Github is no longer available :persevere: thanks!

---

## [While loop until value falls within a range](https://discourse.julialang.org/t/while-loop-until-value-falls-within-a-range/44330)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 6\
**Last updated:** [August 5, 2020, 3:15pm UTC](https://discourse.julialang.org/t/while-loop-until-value-falls-within-a-range/44330 "2020-08-05T15:15:00Z")

</div>

I’d like to be able to randomly pick a species that has a trophic level within a certain range. num\_animals = 40 trophic\_position = rand(num\_animals) function target\_species\_check\_change() sp = rand((num\_animal),1)…

---

## [Atom/Juno: path with parenthesis](https://discourse.julialang.org/t/atom-juno-path-with-parenthesis/44341)

<div class="topic-metadata">

**Author:** [@Seba](https://discourse.julialang.org/u/Seba)\
**Replies:** 0\
**Last updated:** [August 5, 2020, 3:09pm UTC](https://discourse.julialang.org/t/atom-juno-path-with-parenthesis/44341 "2020-08-05T15:09:49Z")

</div>

Hi, I don’t sure if it is a bug, a configuration problem, or another thing. But on the REPL window, the link (crtl+click) to the error line doesn’t work when the path name include a parenthesis. Thanks in advance

---

## [DiffEqTutorials not working in Julia 1.5.0](https://discourse.julialang.org/t/diffeqtutorials-not-working-in-julia-1-5-0/44334)

<div class="topic-metadata">

**Author:** [@kapple](https://discourse.julialang.org/u/kapple)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 2:17pm UTC](https://discourse.julialang.org/t/diffeqtutorials-not-working-in-julia-1-5-0/44334 "2020-08-05T14:17:45Z")

</div>

Hi all, I’ve decided to give differential equations a go, and wanted to follow along with the notebooks, I have Julia 1.5.0 installed. The documentation for DifferentialEquations.jl says to run using Pkg pkg"add https:…

---

## [Why does this conversion happen implicitly?](https://discourse.julialang.org/t/why-does-this-conversion-happen-implicitly/44290)

<div class="topic-metadata">

**Author:** [@Benjia](https://discourse.julialang.org/u/Benjia)\
**Replies:** 6\
**Last updated:** [August 5, 2020, 2:15pm UTC](https://discourse.julialang.org/t/why-does-this-conversion-happen-implicitly/44290 "2020-08-05T14:15:07Z")

</div>

julia\> d = Dict{String,Vector{Int}}() Dict{String,Array{Int64,1}}() julia\> v = view(zeros(Int, 10), :) 10-element view(::Array{Int64,1}, :) with eltype Int64: 0 0 0 0 0 0 0 0 0 0 julia\> d\["as"\] = v julia\> d\[…

---

## [Question about Timeseries](https://discourse.julialang.org/t/question-about-timeseries/44235)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 2\
**Last updated:** [August 5, 2020, 2:12pm UTC](https://discourse.julialang.org/t/question-about-timeseries/44235 "2020-08-05T14:12:20Z")

</div>

using CSV,Clustering,Statistics,DataFrames,TimeSeries,MarketData readtimearray("E:\\\\测试数据\\\\汇总15min.csv"; delim=',', meta=nothing, format="") This is the statement on the official website. Why does the program repor…

---

## [BilevelJuMP: Best way to initialize primal and dual problem](https://discourse.julialang.org/t/bileveljump-best-way-to-initialize-primal-and-dual-problem/44276)

<div class="topic-metadata">

**Author:** [@davide-f](https://discourse.julialang.org/u/davide-f)\
**Replies:** 1\
**Last updated:** [August 5, 2020, 2:09pm UTC](https://discourse.julialang.org/t/bileveljump-best-way-to-initialize-primal-and-dual-problem/44276 "2020-08-05T14:09:18Z")

</div>

Dear Community, I have a relatively large bilevel optimization problem that I’m trying to solve with BilevelJuMP; however it is very slow in reaching a feasible solution. I am using the FortuntyAmat mode, aiming to fas…

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

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