# Latest

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

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

**Page:** 716

---

## [Maximum likelihood for t-distribution by gradient descent](https://discourse.julialang.org/t/maximum-likelihood-for-t-distribution-by-gradient-descent/97954)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 24\
**Last updated:** [April 28, 2023, 5:37pm UTC](https://discourse.julialang.org/t/maximum-likelihood-for-t-distribution-by-gradient-descent/97954 "2023-04-28T17:37:38Z")

</div>

Hello, I am interested in the estimation of parameters of a multivariate t-distribution from samples. A multivariate random variable X \\in \\mathbb{R}^n with density \\pi\_X is characterized by a mean vector \\mu \\in \\math…

---

## [Reshape a Matrix to a vector](https://discourse.julialang.org/t/reshape-a-matrix-to-a-vector/98042)

<div class="topic-metadata">

**Author:** [@gsh19](https://discourse.julialang.org/u/gsh19)\
**Replies:** 3\
**Last updated:** [April 28, 2023, 5:21pm UTC](https://discourse.julialang.org/t/reshape-a-matrix-to-a-vector/98042 "2023-04-28T17:21:44Z")

</div>

I have a matrix X with dimensions (1000,4). I want to convert this matrix to a vector of vectors such that the size of the resulting vector is (1000,) where each element has the size (4,). I tried using reshape(X, (1000…

---

## [Last Call: Optimization Modeling session @ fall INFORMS](https://discourse.julialang.org/t/last-call-optimization-modeling-session-fall-informs/98053)

<div class="topic-metadata">

**Author:** [@4er](https://discourse.julialang.org/u/4er)\
**Replies:** 0\
**Last updated:** [April 28, 2023, 5:11pm UTC](https://discourse.julialang.org/t/last-call-optimization-modeling-session-fall-informs/98053 "2023-04-28T17:11:48Z")

</div>

LAST CALL! Optimization Modeling Software session INFORMS Annual Meeting, October 15-18, 2023 Deadline for speaker names: Tuesday, May 2 Deadline for abstracts: Tuesday, May 16 To participate in this session, you ne…

---

## [Reading different types of data in Julia](https://discourse.julialang.org/t/reading-different-types-of-data-in-julia/97906)

<div class="topic-metadata">

**Author:** [@yvikhlya](https://discourse.julialang.org/u/yvikhlya)\
**Replies:** 4\
**Last updated:** [April 28, 2023, 4:53pm UTC](https://discourse.julialang.org/t/reading-different-types-of-data-in-julia/97906 "2023-04-28T16:53:03Z")

</div>

Hello All, I am new to Julia, coming from python. I have collections of observational data and output from GCM model in netcdf format, but of different “types” (different grids, frequency, conventions etc, not julia typ…

---

## [TAB autocomplete for MutableNamedTuples works for first level only](https://discourse.julialang.org/t/tab-autocomplete-for-mutablenamedtuples-works-for-first-level-only/98047)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 1\
**Last updated:** [April 28, 2023, 3:56pm UTC](https://discourse.julialang.org/t/tab-autocomplete-for-mutablenamedtuples-works-for-first-level-only/98047 "2023-04-28T15:56:17Z")

</div>

Consider the following nested tuple example: a = (b=(c=1,),) In REPL I can type a. + TAB and I will see the level(s) below it. This can continue regadless of the number of levels in the tuple. This only works for the…

---

## [Discourse does not load on Firefox anymore](https://discourse.julialang.org/t/discourse-does-not-load-on-firefox-anymore/97917)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 9\
**Last updated:** [April 28, 2023, 3:19pm UTC](https://discourse.julialang.org/t/discourse-does-not-load-on-firefox-anymore/97917 "2023-04-28T15:19:06Z")

</div>

Windows 10, Firefox 112.0.2. This site does not load. Color balls jiggle and no progress ensues. Any clues?

---

## [Optimizing Direct 1D Convolution Code](https://discourse.julialang.org/t/optimizing-direct-1d-convolution-code/97658)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 21\
**Last updated:** [April 28, 2023, 2:53pm UTC](https://discourse.julialang.org/t/optimizing-direct-1d-convolution-code/97658 "2023-04-28T14:53:46Z")

</div>

I am trying to create a function for a direct (Not fft() based) 1D convolution. Originally I used the classic implementation: using BenchmarkTools; function \_Conv1D!( vO :: Array{T, 1}, vA :: Array{T, 1}, vB :: Array{…

---

## [How to create a list/vector/matrix of specified size, each value filled with -Inf or Inf?](https://discourse.julialang.org/t/how-to-create-a-list-vector-matrix-of-specified-size-each-value-filled-with-inf-or-inf/98040)

<div class="topic-metadata">

**Author:** [@meet.saiya](https://discourse.julialang.org/u/meet.saiya)\
**Replies:** 2\
**Last updated:** [April 28, 2023, 1:58pm UTC](https://discourse.julialang.org/t/how-to-create-a-list-vector-matrix-of-specified-size-each-value-filled-with-inf-or-inf/98040 "2023-04-28T13:58:01Z")

</div>

Hi all, Is there a way to create a vector or list or matrix of specified size, all of them initialized to either of the infinity values? There are functions for zeros, ones and so on. I was wondering if there is one for…

---

## [Simple code run @time 1.7, 1.8, 1.9 difference](https://discourse.julialang.org/t/simple-code-run-time-1-7-1-8-1-9-difference/98026)

<div class="topic-metadata">

**Author:** [@kimuh](https://discourse.julialang.org/u/kimuh)\
**Replies:** 7\
**Last updated:** [April 28, 2023, 1:05pm UTC](https://discourse.julialang.org/t/simple-code-run-time-1-7-1-8-1-9-difference/98026 "2023-04-28T13:05:58Z")

</div>

function sum\_n(n) s = 0 for i in 1:n s += i end return s end @time sum\_n(1\_000\_000\_000) On Windows 11 x64 1.7.3 : 0.000001 seconds 1.8.5 : 2.033023 seconds 1.9 rc2 : 5.878953 seconds Did I do something wr…

---

## [Split-Apply-Combine in arrays](https://discourse.julialang.org/t/split-apply-combine-in-arrays/97907)

<div class="topic-metadata">

**Author:** [@PZacchia](https://discourse.julialang.org/u/PZacchia)\
**Replies:** 9\
**Last updated:** [April 28, 2023, 12:45pm UTC](https://discourse.julialang.org/t/split-apply-combine-in-arrays/97907 "2023-04-28T12:45:04Z")

</div>

Hello (first post on this forum)! I am new to Julia, transitioning from R. I am trying to implement a split-apply-combine strategy on a matrix without converting it into a DataFrame (reason: I need to do this operation f…

---

## [Interrupt \`Threads.@threads\` computation](https://discourse.julialang.org/t/interrupt-threads-threads-computation/71199)

<div class="topic-metadata">

**Author:** [@disberd](https://discourse.julialang.org/u/disberd)\
**Replies:** 14\
**Last updated:** [April 28, 2023, 12:39pm UTC](https://discourse.julialang.org/t/interrupt-threads-threads-computation/71199 "2023-04-28T12:39:01Z")

</div>

I sometime deal with very lengthy computation that I would like to interrupt before they finish. I can achieve this by wrapping the function with @async and then throw an InterruptException() to the task when I want it …

---

## [Cannot precompile CImGui for Julia 1.8.5 on MacOS (Ventura 13.3.1)](https://discourse.julialang.org/t/cannot-precompile-cimgui-for-julia-1-8-5-on-macos-ventura-13-3-1/98037)

<div class="topic-metadata">

**Author:** [@Fummelknabe](https://discourse.julialang.org/u/Fummelknabe)\
**Replies:** 0\
**Last updated:** [April 28, 2023, 11:56am UTC](https://discourse.julialang.org/t/cannot-precompile-cimgui-for-julia-1-8-5-on-macos-ventura-13-3-1/98037 "2023-04-28T11:56:20Z")

</div>

I’ve been using the great Julia wrapper for the CImGui for quiet a while now and never encountered any problems. Recently I wanted to run Julia on MacOS and CImGui failed at precompiling. I am using CImGui.jl v1.79.0. T…

---

## [Twinx shows left yticks on right y axis](https://discourse.julialang.org/t/twinx-shows-left-yticks-on-right-y-axis/57372)

<div class="topic-metadata">

**Author:** [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Replies:** 6\
**Last updated:** [April 28, 2023, 11:44am UTC](https://discourse.julialang.org/t/twinx-shows-left-yticks-on-right-y-axis/57372 "2023-04-28T11:44:24Z")

</div>

I am struggling to generate a plot with two y-axes. The left y-ticks show up on the right y-axis. Also, I am uisng rightmargin = 1.5Plots.cm, box = :on because the label margins are broken. using Plots pyplot() plot(…

---

## [How to order axis with categorical variable in AlgebraOfGraphics?](https://discourse.julialang.org/t/how-to-order-axis-with-categorical-variable-in-algebraofgraphics/98027)

<div class="topic-metadata">

**Author:** [@SebastianCallh](https://discourse.julialang.org/u/SebastianCallh)\
**Replies:** 1\
**Last updated:** [April 28, 2023, 11:32am UTC](https://discourse.julialang.org/t/how-to-order-axis-with-categorical-variable-in-algebraofgraphics/98027 "2023-04-28T11:32:16Z")

</div>

Hello! I’m experimenting with AlgebraOfGraphics and stumbled upon something I haven’t been able to do. I looks like the default behaviour when plotting categorical variable on the y axis and continuous on the x axis is t…

---

## [Fail to deploy from Documenter to GITHUB](https://discourse.julialang.org/t/fail-to-deploy-from-documenter-to-github/98021)

<div class="topic-metadata">

**Author:** [@Philippe\_Maincon1](https://discourse.julialang.org/u/Philippe_Maincon1)\
**Replies:** 14\
**Last updated:** [April 28, 2023, 10:44am UTC](https://discourse.julialang.org/t/fail-to-deploy-from-documenter-to-github/98021 "2023-04-28T10:44:09Z")

</div>

I am working on Muscade.jl (work in progress!), and I have a first incomplete documentation I wish to deploy. Everything works fine… except I get a 404. Here is the dump: My repo structure includes Muscade docs …

---

## [Using feasRelax in Julia with Gurobi and JuMP](https://discourse.julialang.org/t/using-feasrelax-in-julia-with-gurobi-and-jump/97935)

<div class="topic-metadata">

**Author:** [@umbe](https://discourse.julialang.org/u/umbe)\
**Replies:** 3\
**Last updated:** [April 28, 2023, 10:17am UTC](https://discourse.julialang.org/t/using-feasrelax-in-julia-with-gurobi-and-jump/97935 "2023-04-28T10:17:01Z")

</div>

Hello to everyone! I have an optimization problem that, according to some input data, can be unfeasible. I would like to check the termination status and, in case of infeasibility, try to solve it relaxing some constrai…

---

## [Octavian Matmul slow in for loop](https://discourse.julialang.org/t/octavian-matmul-slow-in-for-loop/98030)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 0\
**Last updated:** [April 28, 2023, 9:19am UTC](https://discourse.julialang.org/t/octavian-matmul-slow-in-for-loop/98030 "2023-04-28T09:19:13Z")

</div>

Hey. I want to use octavian matmul in a foor loop. However, the code gets around 10 times slower in the loop. using BenchmarkTools using LinearAlgebra using LoopVectorization struct cust\_Dense W :: Array{Float32,2} …

---

## [Plot in plot at grdipoint using Plots.jl](https://discourse.julialang.org/t/plot-in-plot-at-grdipoint-using-plots-jl/98002)

<div class="topic-metadata">

**Author:** [@psterzinger](https://discourse.julialang.org/u/psterzinger)\
**Replies:** 2\
**Last updated:** [April 28, 2023, 7:11am UTC](https://discourse.julialang.org/t/plot-in-plot-at-grdipoint-using-plots-jl/98002 "2023-04-28T07:11:07Z")

</div>

I am trying to make a plot, in which I want to position another shrunk plot at certain coordinates of my first plot (MWE below). Following the example at the end of the Layouts manual, I can, given a base plot p, use P…

---

## [Broadcast function performance of Julia vs Numpy vs Nd4J](https://discourse.julialang.org/t/broadcast-function-performance-of-julia-vs-numpy-vs-nd4j/98007)

<div class="topic-metadata">

**Author:** [@Vyacheslav\_Vorobyov](https://discourse.julialang.org/u/Vyacheslav_Vorobyov)\
**Replies:** 12\
**Last updated:** [April 28, 2023, 6:39am UTC](https://discourse.julialang.org/t/broadcast-function-performance-of-julia-vs-numpy-vs-nd4j/98007 "2023-04-28T06:39:09Z")

</div>

Hi everybody! Recently suddenly faced the fact, that in Julia, applying function to a matrix a bit(but consistently) slower than in Numpy(Python) or Nd4J(Java), and that was a bit surprised me because I believe all usin…

---

## [Code was trapped at display(plt) step](https://discourse.julialang.org/t/code-was-trapped-at-display-plt-step/98013)

<div class="topic-metadata">

**Author:** [@jianqixi](https://discourse.julialang.org/u/jianqixi)\
**Replies:** 1\
**Last updated:** [April 27, 2023, 9:28pm UTC](https://discourse.julialang.org/t/code-was-trapped-at-display-plt-step/98013 "2023-04-27T21:28:16Z")

</div>

Hi I am trying to use Plots.jl with default backends GR to plot figures. But the code was trapped in the display(plt) process. Any ideas about what happened? Thank you Here is my code: plt=scatter3d(tar\_xs,tar\_ys,tar\_z…

---

## [Julia slower than Python to sort and reverse a list of integers](https://discourse.julialang.org/t/julia-slower-than-python-to-sort-and-reverse-a-list-of-integers/97453)

<div class="topic-metadata">

**Author:** [@lucasmsoares96](https://discourse.julialang.org/u/lucasmsoares96)\
**Replies:** 40\
**Last updated:** [April 28, 2023, 4:42am UTC](https://discourse.julialang.org/t/julia-slower-than-python-to-sort-and-reverse-a-list-of-integers/97453 "2023-04-28T04:42:38Z")

</div>

My goal is to compare Julia’s performance against other languages like Python, Scala and Rust to perform some simple tasks. My first task was to sort an array of 999999 integers read from a text file. The code below run…

---

## [MPIClusterManagers task split across nodes](https://discourse.julialang.org/t/mpiclustermanagers-task-split-across-nodes/97983)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 2\
**Last updated:** [April 28, 2023, 2:02am UTC](https://discourse.julialang.org/t/mpiclustermanagers-task-split-across-nodes/97983 "2023-04-28T02:02:31Z")

</div>

Hi all, I’ve been using Julia on the cluster quite successfully with MPIClusterManagers.jl and MPI.jl with the MPIClusterManagers.start\_main\_loop(MPI\_TRANSPORT\_ALL) option and using native julia constructs after that su…

---

## [Maximum\_weight\_matching changes the symmetry of the original weight matrix?](https://discourse.julialang.org/t/maximum-weight-matching-changes-the-symmetry-of-the-original-weight-matrix/98005)

<div class="topic-metadata">

**Author:** [@OliviaPhillips](https://discourse.julialang.org/u/OliviaPhillips)\
**Replies:** 2\
**Last updated:** [April 28, 2023, 1:07am UTC](https://discourse.julialang.org/t/maximum-weight-matching-changes-the-symmetry-of-the-original-weight-matrix/98005 "2023-04-28T01:07:25Z")

</div>

I noticed that the maximum\_weight\_matching function seems to alter the weight matrix utilized in the matching. When I try to use the original graph in future calculations, I’m getting errors because its adjacency matrix …

---

## [Wanted: proper enum type and switch statement with pattern matching on enumerable types](https://discourse.julialang.org/t/wanted-proper-enum-type-and-switch-statement-with-pattern-matching-on-enumerable-types/85225)

<div class="topic-metadata">

**Author:** [@Steven\_Sagaert](https://discourse.julialang.org/u/Steven_Sagaert)\
**Replies:** 5\
**Last updated:** [April 27, 2023, 9:57pm UTC](https://discourse.julialang.org/t/wanted-proper-enum-type-and-switch-statement-with-pattern-matching-on-enumerable-types/85225 "2023-04-27T21:57:08Z")

</div>

I’ve returned to Julia development after a break of a couple of years and I was suprised that there still not a proper enum type or a switch (or match if you like Scala) statement. The current enum with @enum is not goo…

---

## [Plots.jl: Polar Plot w 0° at the Nadir](https://discourse.julialang.org/t/plots-jl-polar-plot-w-0-at-the-nadir/98010)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 1\
**Last updated:** [April 27, 2023, 8:47pm UTC](https://discourse.julialang.org/t/plots-jl-polar-plot-w-0-at-the-nadir/98010 "2023-04-27T20:47:59Z")

</div>

Now that GR supports this, I’m trying to get it to work with plots.jl, and so far I can’t figure out how. This is one version of the code I tried and it doesn’t work. Am I missing something obvious? using Plots plot(deg…

---

## [Trouble Sending HTTP Requests to Port 443 (HTTPS) using Sockets.jl](https://discourse.julialang.org/t/trouble-sending-http-requests-to-port-443-https-using-sockets-jl/97998)

<div class="topic-metadata">

**Author:** [@TheDude](https://discourse.julialang.org/u/TheDude)\
**Replies:** 6\
**Last updated:** [April 27, 2023, 8:19pm UTC](https://discourse.julialang.org/t/trouble-sending-http-requests-to-port-443-https-using-sockets-jl/97998 "2023-04-27T20:19:51Z")

</div>

Trying to send HTTP requests using the Sockets.jl package. It works on port 80 say for “example.com” but any attempt to contact a server at port 443 (HTTPS) I’m met with a - 400 Bad Request - The plain HTTP request was…

---

## [multiple-GPUs per process](https://discourse.julialang.org/t/multiple-gpus-per-process/98008)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 3\
**Last updated:** [April 27, 2023, 8:18pm UTC](https://discourse.julialang.org/t/multiple-gpus-per-process/98008 "2023-04-27T20:18:26Z")

</div>

i’m not sure whether i should file an issue on github because this is a bug, or post a plea for help here because i’m doing something wrong, but riffing on the multiple GPUs per process example, and adding to it an Array…

---

## [Multiple independent random number streams](https://discourse.julialang.org/t/multiple-independent-random-number-streams/98004)

<div class="topic-metadata">

**Author:** [@Ross\_Boylan](https://discourse.julialang.org/u/Ross_Boylan)\
**Replies:** 4\
**Last updated:** [April 27, 2023, 7:33pm UTC](https://discourse.julialang.org/t/multiple-independent-random-number-streams/98004 "2023-04-27T19:33:45Z")

</div>

Goal Across many, e.g., 10,000, simulations, generate random data. Each simulation should be independent of the others. Must be able to recreate a particular simulation s without first running previous s-1 simulations. …

---

## [Wrap long (in width) Pluto errors](https://discourse.julialang.org/t/wrap-long-in-width-pluto-errors/97716)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 2\
**Last updated:** [April 27, 2023, 7:13pm UTC](https://discourse.julialang.org/t/wrap-long-in-width-pluto-errors/97716 "2023-04-27T19:13:31Z")

</div>

Sometimes errors in Pluto are long and in order to see them you need to use the cursor For example: I need to scroll right This can be quite disturbing in some cases. Is there a way to wrap the text w.r.t the ma…

---

## [How to speed up LoopVectorized code - 3x slower than C++ code](https://discourse.julialang.org/t/how-to-speed-up-loopvectorized-code-3x-slower-than-c-code/96440)

<div class="topic-metadata">

**Author:** [@Zentrik](https://discourse.julialang.org/u/Zentrik)\
**Replies:** 19\
**Last updated:** [April 27, 2023, 5:35pm UTC](https://discourse.julialang.org/t/how-to-speed-up-loopvectorized-code-3x-slower-than-c-code/96440 "2023-04-27T17:35:52Z")

</div>

using StaticArrays, Parameters, LinearAlgebra, BenchmarkTools, StructArrays, LoopVectorization const T = Float32 const Point = SVector{3, T} @with\_kw struct Ray @deftype Point origin = zeros(Point) direction = …

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

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