# Latest

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

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

**Page:** 1721

---

## [How to Calculate and Plot Fit Residuals from Numerical Integration to High Precision](https://discourse.julialang.org/t/how-to-calculate-and-plot-fit-residuals-from-numerical-integration-to-high-precision/41094)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 11\
**Last updated:** [June 11, 2020, 10:37pm UTC](https://discourse.julialang.org/t/how-to-calculate-and-plot-fit-residuals-from-numerical-integration-to-high-precision/41094 "2020-06-11T22:37:22Z")

</div>

Hi, I am learning how to use Numerical Integration, and want to test how well the Num Integration fits the analytical/theoretical model, by subtracting the model from the Num Integration results, and plotting & examining…

---

## [An incorrect result warning for OpenBLAS Archlinux users](https://discourse.julialang.org/t/an-incorrect-result-warning-for-openblas-archlinux-users/29436)

<div class="topic-metadata">

**Author:** [@mratsim](https://discourse.julialang.org/u/mratsim)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 9:03pm UTC](https://discourse.julialang.org/t/an-incorrect-result-warning-for-openblas-archlinux-users/29436 "2020-06-11T21:03:18Z")

</div>

The default OpenBLAS packaged in Archlinux can produce wrong results for float64. This is due to the fact that in Archlinux, the blas package (from netlib reference implementation) has been separated into blas for Fortr…

---

## [LightGraphs: inconsistency between weighted and non-weighted graphs?](https://discourse.julialang.org/t/lightgraphs-inconsistency-between-weighted-and-non-weighted-graphs/41223)

<div class="topic-metadata">

**Author:** [@gmouts](https://discourse.julialang.org/u/gmouts)\
**Replies:** 7\
**Last updated:** [June 11, 2020, 8:46pm UTC](https://discourse.julialang.org/t/lightgraphs-inconsistency-between-weighted-and-non-weighted-graphs/41223 "2020-06-11T20:46:30Z")

</div>

I want to get the unweighted adjacency matrix from a weighted graph. I thought that weighs gives the weighted adjacency matrix and adjacency\_matrix gives the unweighted adjacency matrix. I found out this is not true: gw…

---

## [Variable scope in for loop](https://discourse.julialang.org/t/variable-scope-in-for-loop/41228)

<div class="topic-metadata">

**Author:** [@Ken\_Lin](https://discourse.julialang.org/u/Ken_Lin)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 8:41pm UTC](https://discourse.julialang.org/t/variable-scope-in-for-loop/41228 "2020-06-11T20:41:33Z")

</div>

Hi, Please see the following code: for i = 1:2 a = 7 for i = 3 a = 9 end @show a @show i end which has the output: a = 9 i = 1 a = 9 i = 2 My question is, why is the value of “i” not modi…

---

## [Install julia packages on cluster, presumably behind a proxy](https://discourse.julialang.org/t/install-julia-packages-on-cluster-presumably-behind-a-proxy/41226)

<div class="topic-metadata">

**Author:** [@nabla](https://discourse.julialang.org/u/nabla)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 7:54pm UTC](https://discourse.julialang.org/t/install-julia-packages-on-cluster-presumably-behind-a-proxy/41226 "2020-06-11T19:54:09Z")

</div>

I had no trouble installing Julia on my laptop / office computer etc., but I’m trying to set it up on the front of a cluster, and on a completely fresh download of 1.4.2 (curl https://julialang-s3.julialang.org/bin/linux…

---

## [What is the expected behavior for metapackages?](https://discourse.julialang.org/t/what-is-the-expected-behavior-for-metapackages/41224)

<div class="topic-metadata">

**Author:** [@aliddell](https://discourse.julialang.org/u/aliddell)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 7:50pm UTC](https://discourse.julialang.org/t/what-is-the-expected-behavior-for-metapackages/41224 "2020-06-11T19:50:19Z")

</div>

Wherein I attempt to install StatsKit: (@v1.4) pkg\> add StatsKit Updating registry at \`C:\\Users\\alanc\\.julia\\registries\\General\` Updating git-repo \`https://github.com/JuliaRegistries/General.git\` Resolving packa…

---

## [Brilliant talk. Fascinating insights](https://discourse.julialang.org/t/brilliant-talk-fascinating-insights/40734)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 10\
**Last updated:** [June 11, 2020, 7:40pm UTC](https://discourse.julialang.org/t/brilliant-talk-fascinating-insights/40734 "2020-06-11T19:40:37Z")

</div>

If you have nowhere to be and nothing to do for an hour (heck, even if you do) sit down and watch it.

---

## [Simple way to precompile standard package for batch](https://discourse.julialang.org/t/simple-way-to-precompile-standard-package-for-batch/41192)

<div class="topic-metadata">

**Author:** [@compleat](https://discourse.julialang.org/u/compleat)\
**Replies:** 14\
**Last updated:** [June 11, 2020, 7:37pm UTC](https://discourse.julialang.org/t/simple-way-to-precompile-standard-package-for-batch/41192 "2020-06-11T19:37:22Z")

</div>

I have been Julia quite extensively for over a year now but because I’m me and Julia is Julia, I still consider myself a ‘newbie’, because I still struggle to do very basic things. \[I am not complaining about this, jus…

---

## [Julia tool to visualize code dependencies?](https://discourse.julialang.org/t/julia-tool-to-visualize-code-dependencies/41183)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 3\
**Last updated:** [June 11, 2020, 7:26pm UTC](https://discourse.julialang.org/t/julia-tool-to-visualize-code-dependencies/41183 "2020-06-11T19:26:08Z")

</div>

Is there a tool like this in Julia where we can visualise the dependencies of functions within a package?

---

## [In place Cholesky solve with zero allocation (simplical vs. supernodal)](https://discourse.julialang.org/t/in-place-cholesky-solve-with-zero-allocation-simplical-vs-supernodal/41115)

<div class="topic-metadata">

**Author:** [@samuelpowell](https://discourse.julialang.org/u/samuelpowell)\
**Replies:** 7\
**Last updated:** [June 11, 2020, 7:16pm UTC](https://discourse.julialang.org/t/in-place-cholesky-solve-with-zero-allocation-simplical-vs-supernodal/41115 "2020-06-11T19:16:43Z")

</div>

I am unable to avoid allocation when performing an in-place solve against a simplical Cholesky factorisation, but have no problems with a supernodal factorisation. Note that: the allocation is small, but since I am pe…

---

## [I need help creating a macro that makes Julia evaluate my floating point expressions as BigFloat](https://discourse.julialang.org/t/i-need-help-creating-a-macro-that-makes-julia-evaluate-my-floating-point-expressions-as-bigfloat/41213)

<div class="topic-metadata">

**Author:** [@Lucas\_Queiroz](https://discourse.julialang.org/u/Lucas_Queiroz)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 7:02pm UTC](https://discourse.julialang.org/t/i-need-help-creating-a-macro-that-makes-julia-evaluate-my-floating-point-expressions-as-bigfloat/41213 "2020-06-11T19:02:59Z")

</div>

I need a macro that takes any expression matching r"-?\[0-9\]+\\Q.\\E\[0-9\]+", and encloses it in a BigFloat constructor. For example, a macro that receives the source code below: @my\_macro function f() sum = 0.0 x = 902.4…

---

## [How to specify function name specific functions? Is that possible?](https://discourse.julialang.org/t/how-to-specify-function-name-specific-functions-is-that-possible/41218)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 6:48pm UTC](https://discourse.julialang.org/t/how-to-specify-function-name-specific-functions-is-that-possible/41218 "2020-06-11T18:48:11Z")

</div>

I currently have functions like function AnalyticalExpectation(distribution::Normal, g::Function) if(g==log) return ... else println("Not yet implemented") end end Is there a way to make t…

---

## [A question about data type](https://discourse.julialang.org/t/a-question-about-data-type/41204)

<div class="topic-metadata">

**Author:** [@abcde](https://discourse.julialang.org/u/abcde)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 6:41pm UTC](https://discourse.julialang.org/t/a-question-about-data-type/41204 "2020-06-11T18:41:05Z")

</div>

my data is not empty,but it always "missing ",so my initseeds function does not work. thanks! using CSV,Clustering,Gadfly data=CSV.read("D:\\\\数据\\\\数据.csv") load=convert(Array,data\[90001:120000,5\]) solar=convert(Array,…

---

## [Strange output](https://discourse.julialang.org/t/strange-output/41212)

<div class="topic-metadata">

**Author:** [@Wei\_Yang](https://discourse.julialang.org/u/Wei_Yang)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 6:40pm UTC](https://discourse.julialang.org/t/strange-output/41212 "2020-06-11T18:40:20Z")

</div>

using Primes function Triangle(n) return sum(1:n) end num=1 temp=3 while num\<500 A=collect(factor(Triangle(temp))) if prod(i-\>A\[i\]\[2\]+1, 1:length(A) )\<500 temp+=1 else num=5000 ans=Triangle(temp) en…

---

## [Why sortperm(Int32\[\]) return Int64\[\]](https://discourse.julialang.org/t/why-sortperm-int32-return-int64/41216)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 6:37pm UTC](https://discourse.julialang.org/t/why-sortperm-int32-return-int64/41216 "2020-06-11T18:37:00Z")

</div>

Do you know, why is it? a=Int32\[1,2,3,4\] sortperm(a)

---

## [Julia among the most loved languages](https://discourse.julialang.org/t/julia-among-the-most-loved-languages/40423)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 31\
**Last updated:** [June 11, 2020, 5:53pm UTC](https://discourse.julialang.org/t/julia-among-the-most-loved-languages/40423 "2020-06-11T17:53:17Z")

</div>

---

## [Scatter pyplot option: vector of value for colors, one for each point](https://discourse.julialang.org/t/scatter-pyplot-option-vector-of-value-for-colors-one-for-each-point/41211)

<div class="topic-metadata">

**Author:** [@juliauser](https://discourse.julialang.org/u/juliauser)\
**Replies:** 0\
**Last updated:** [June 11, 2020, 5:02pm UTC](https://discourse.julialang.org/t/scatter-pyplot-option-vector-of-value-for-colors-one-for-each-point/41211 "2020-06-11T17:02:28Z")

</div>

How can we feed a vector of values as color input into scatter plot using pyplot? I read one need to specify cmap, but I could find a clear example. My aim to having a vector of values, one per observation, that makes th…

---

## [Is the best number of threads used in parallel computing by using distribute 4?](https://discourse.julialang.org/t/is-the-best-number-of-threads-used-in-parallel-computing-by-using-distribute-4/40139)

<div class="topic-metadata">

**Author:** [@MTone](https://discourse.julialang.org/u/MTone)\
**Replies:** 4\
**Last updated:** [June 11, 2020, 4:56pm UTC](https://discourse.julialang.org/t/is-the-best-number-of-threads-used-in-parallel-computing-by-using-distribute-4/40139 "2020-06-11T16:56:33Z")

</div>

I am doing a numerical calculation using Julia, and recently I just tested the speed of my code using parallel computing by applying @distributed in the summation: (It is just part of my code. The attached part is enc…

---

## [Register or not register (tiny packages)?](https://discourse.julialang.org/t/register-or-not-register-tiny-packages/41120)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 3:26pm UTC](https://discourse.julialang.org/t/register-or-not-register-tiny-packages/41120 "2020-06-11T15:26:08Z")

</div>

In a few recent threads there are discussions about the appropriateness of tiny packages with trivial code in the General registry. Those threads started discussing specific cases of packages that only have a couple of s…

---

## [Incorrect display of Array{Float64,2} numbers](https://discourse.julialang.org/t/incorrect-display-of-array-float64-2-numbers/41200)

<div class="topic-metadata">

**Author:** [@rouckas](https://discourse.julialang.org/u/rouckas)\
**Replies:** 5\
**Last updated:** [June 11, 2020, 3:07pm UTC](https://discourse.julialang.org/t/incorrect-display-of-array-float64-2-numbers/41200 "2020-06-11T15:07:12Z")

</div>

Dear all, I am just starting to use Julia and I run into the following issue \[Julia Version 1.4.1 (2020-04-14)\]: julia\> arr = \[-498796.2749933266 408222.59838380764 -583210.404155956 266966.3188608052\]; julia\> arr 1×4 …

---

## [Using Flux to optimize a function of the Singular Values](https://discourse.julialang.org/t/using-flux-to-optimize-a-function-of-the-singular-values/39687)

<div class="topic-metadata">

**Author:** [@rajnrao](https://discourse.julialang.org/u/rajnrao)\
**Replies:** 6\
**Last updated:** [June 11, 2020, 3:04pm UTC](https://discourse.julialang.org/t/using-flux-to-optimize-a-function-of-the-singular-values/39687 "2020-06-11T15:04:13Z")

</div>

Update – using latest Flux. I’d like to optimize a function of the singular values of a matrix. The Flux training loop barfs. Here’s my code using Flux, ForwardDiff, LinearAlgebra, GenericLinearAlgebra m = 20 X = rand…

---

## [Are there any packages where I can pass in an IP Address string and it returns back the country/city?](https://discourse.julialang.org/t/are-there-any-packages-where-i-can-pass-in-an-ip-address-string-and-it-returns-back-the-country-city/41203)

<div class="topic-metadata">

**Author:** [@Julia1](https://discourse.julialang.org/u/Julia1)\
**Replies:** 1\
**Last updated:** [June 11, 2020, 2:42pm UTC](https://discourse.julialang.org/t/are-there-any-packages-where-i-can-pass-in-an-ip-address-string-and-it-returns-back-the-country-city/41203 "2020-06-11T14:42:28Z")

</div>

Hi how’s it going? I know there’s an IP2Location python library for getting the country and city etc based on an IP Address string. Do you know of anything similar in Julia? Or is PyCall the only option here Thank y…

---

## [\[ANN\] CMDC.jl : Client library to open COVID-19 database](https://discourse.julialang.org/t/ann-cmdc-jl-client-library-to-open-covid-19-database/41134)

<div class="topic-metadata">

**Author:** [@sglyon](https://discourse.julialang.org/u/sglyon)\
**Replies:** 2\
**Last updated:** [June 11, 2020, 2:34pm UTC](https://discourse.julialang.org/t/ann-cmdc-jl-client-library-to-open-covid-19-database/41134 "2020-06-11T14:34:57Z")

</div>

Hi everyone! I’m part of a team that has been hard at work on the COVID Modeling Data Collaborative (CMDC) We are a grant funded initiative to provide researchers, modelers, and policy makers with all the data they n…

---

## [Unpack array of tuples and structs](https://discourse.julialang.org/t/unpack-array-of-tuples-and-structs/41188)

<div class="topic-metadata">

**Author:** [@Olivier\_Merchiers](https://discourse.julialang.org/u/Olivier_Merchiers)\
**Replies:** 8\
**Last updated:** [June 11, 2020, 2:26pm UTC](https://discourse.julialang.org/t/unpack-array-of-tuples-and-structs/41188 "2020-06-11T14:26:57Z")

</div>

Hello everyone, I have a question which seems to be kind of related to Convert array of tuples to vector. Edit : I just realized I can do these things with StructArrays except for the tuple case. However, I wonder if …

---

## [AmplNLWriter with JuMP 0.21.2](https://discourse.julialang.org/t/amplnlwriter-with-jump-0-21-2/38545)

<div class="topic-metadata">

**Author:** [@noamgold](https://discourse.julialang.org/u/noamgold)\
**Replies:** 13\
**Last updated:** [June 11, 2020, 2:24pm UTC](https://discourse.julialang.org/t/amplnlwriter-with-jump-0-21-2/38545 "2020-06-11T14:24:26Z")

</div>

How to use Couenne (using AmplNLWriter) following the recent changes to the JuMP interface. In particular I am trying m = Model( () → AmplNLSolver(“couenne”) ) and I get the following error: ERROR: LoadError: The pro…

---

## [Julia 1.5, 1.6 twice as fast in sparse matrix solve as 1.4.2](https://discourse.julialang.org/t/julia-1-5-1-6-twice-as-fast-in-sparse-matrix-solve-as-1-4-2/41099)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 13\
**Last updated:** [June 11, 2020, 2:09pm UTC](https://discourse.julialang.org/t/julia-1-5-1-6-twice-as-fast-in-sparse-matrix-solve-as-1-4-2/41099 "2020-06-11T14:09:56Z")

</div>

On Windows 10. Any idea why that would be so?

---

## [How to obtain numeric arrays from a linear mixed model formula?](https://discourse.julialang.org/t/how-to-obtain-numeric-arrays-from-a-linear-mixed-model-formula/31633)

<div class="topic-metadata">

**Author:** [@kai](https://discourse.julialang.org/u/kai)\
**Replies:** 11\
**Last updated:** [June 11, 2020, 1:54pm UTC](https://discourse.julialang.org/t/how-to-obtain-numeric-arrays-from-a-linear-mixed-model-formula/31633 "2020-06-11T13:54:18Z")

</div>

Hello. I have a data frame (“dat”, with variables x1, y, and id) and a formula (@formula(y ~ 1 + x1 + (1 | id))). I want to obtain the following numeric arrays: y: response vector X: design matrix for fixed effect, wit…

---

## [CUDA device support](https://discourse.julialang.org/t/cuda-device-support/41161)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 7\
**Last updated:** [June 11, 2020, 1:42pm UTC](https://discourse.julialang.org/t/cuda-device-support/41161 "2020-06-11T13:42:15Z")

</div>

I have an old Nvidia 610M GPU on my laptop. It is not a powerful GPU but I wanted to play around and learn a bit of GPU computing. Although the GPU supports CUDA (I have version 9.1.112), I seem to encounter some problem…

---

## [Is it possible to force use Int32, instead of Int64](https://discourse.julialang.org/t/is-it-possible-to-force-use-int32-instead-of-int64/41179)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 14\
**Last updated:** [June 11, 2020, 1:34pm UTC](https://discourse.julialang.org/t/is-it-possible-to-force-use-int32-instead-of-int64/41179 "2020-06-11T13:34:56Z")

</div>

Is there any command, that will force to use Int32 instead of Int64?

---

## [Interactive Data Visualization](https://discourse.julialang.org/t/interactive-data-visualization/41133)

<div class="topic-metadata">

**Author:** [@Chris\_Anderson](https://discourse.julialang.org/u/Chris_Anderson)\
**Replies:** 9\
**Last updated:** [June 11, 2020, 1:20pm UTC](https://discourse.julialang.org/t/interactive-data-visualization/41133 "2020-06-11T13:20:26Z")

</div>

I have a bunch of data for several different companies. I’m interested in creating an interactive data visualization that I can share with colleagues. Ideally I’d have a drop down to select company (or other interesting …

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

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