# Latest

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

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

**Page:** 480

---

## [Missing values in character or string](https://discourse.julialang.org/t/missing-values-in-character-or-string/107691)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 18\
**Last updated:** [February 20, 2024, 9:25am UTC](https://discourse.julialang.org/t/missing-values-in-character-or-string/107691 "2024-02-20T09:25:40Z")

</div>

I’m trying to read values out of a NetCDF file. Unfortunately, the missing values seem to be mistakenly stored as characters or strings by the data creator. Here is my code to read data out of the nc file: ds1 = NCData…

---

## [Index a matrix with two separate row and column index vectors](https://discourse.julialang.org/t/index-a-matrix-with-two-separate-row-and-column-index-vectors/110410)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 4\
**Last updated:** [February 20, 2024, 8:26am UTC](https://discourse.julialang.org/t/index-a-matrix-with-two-separate-row-and-column-index-vectors/110410 "2024-02-20T08:26:17Z")

</div>

I have a matrix A and a row index vector R and a column index vector C. I want to get a vector from A as \[A\[R\[1\], C\[1\]\], A\[R\[2\], C\[2\]\], ...\]. For instance, with R=\[2, 4\], C=\[3, 1\], I want \[A\[2, 3\], A\[4, 1\]\]. Is there …

---

## [Why does indexing into CartesianIndices lead to excessive runtime dispatch?](https://discourse.julialang.org/t/why-does-indexing-into-cartesianindices-lead-to-excessive-runtime-dispatch/110438)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 9\
**Last updated:** [February 20, 2024, 8:17am UTC](https://discourse.julialang.org/t/why-does-indexing-into-cartesianindices-lead-to-excessive-runtime-dispatch/110438 "2024-02-20T08:17:31Z")

</div>

This just looks so weird to me. The code is really simply: function neighbors(d::Int) n\_ = CartesianIndices((fill(-1:1, d)...,)) n = n\_\[begin:end//2\] #This line runtime errors end using JET @report\_opt neigh…

---

## [Inferring MethodInstance from code\_llvm](https://discourse.julialang.org/t/inferring-methodinstance-from-code-llvm/110330)

<div class="topic-metadata">

**Author:** [@dyatunin](https://discourse.julialang.org/u/dyatunin)\
**Replies:** 5\
**Last updated:** [February 20, 2024, 3:51am UTC](https://discourse.julialang.org/t/inferring-methodinstance-from-code-llvm/110330 "2024-02-20T03:51:38Z")

</div>

I am trying to track down some performance issues by tracing through the output of code\_llvm. Whenever the LLVM code contains a call to a Julia function, I would like to figure out which MethodInstance of that function i…

---

## [Constructing Q matrix from QR decomposition](https://discourse.julialang.org/t/constructing-q-matrix-from-qr-decomposition/110383)

<div class="topic-metadata">

**Author:** [@Endeavour](https://discourse.julialang.org/u/Endeavour)\
**Replies:** 3\
**Last updated:** [February 19, 2024, 10:20am UTC](https://discourse.julialang.org/t/constructing-q-matrix-from-qr-decomposition/110383 "2024-02-19T10:20:23Z")

</div>

Hi! I am working with some large complex float matrices ( that may go up to 16000x16000). I need to do a QR decomposition of a rectangular matrix. I require the Q matrix to be square. It seems like that extracting the Q…

---

## [\[ANN\] HumanEval.jl - Evaluate LLM-synthesized Julia code](https://discourse.julialang.org/t/ann-humaneval-jl-evaluate-llm-synthesized-julia-code/110433)

<div class="topic-metadata">

**Author:** [@findmyway](https://discourse.julialang.org/u/findmyway)\
**Replies:** 0\
**Last updated:** [February 20, 2024, 1:34am UTC](https://discourse.julialang.org/t/ann-humaneval-jl-evaluate-llm-synthesized-julia-code/110433 "2024-02-20T01:34:39Z")

</div>

I’m excited to announce GitHub - 01-ai/HumanEval.jl: Evaluate LLM-synthesized @JuliaLang code. . The project is the Julia version of openai/human-eval. I hope it will help Julia developers gain a better understanding of …

---

## [How to extract convergence status in Optim.jl?](https://discourse.julialang.org/t/how-to-extract-convergence-status-in-optim-jl/110430)

<div class="topic-metadata">

**Author:** [@Wooheon](https://discourse.julialang.org/u/Wooheon)\
**Replies:** 2\
**Last updated:** [February 20, 2024, 12:41am UTC](https://discourse.julialang.org/t/how-to-extract-convergence-status-in-optim-jl/110430 "2024-02-20T00:41:02Z")

</div>

I ran several optimization problems with different models, but some didn’t seem to calculate the result but spit out some random results. So, I would like to know how to extract the status of the ‘optimized’ results, but…

---

## [MKL package wrong results](https://discourse.julialang.org/t/mkl-package-wrong-results/110405)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 6\
**Last updated:** [February 19, 2024, 10:26pm UTC](https://discourse.julialang.org/t/mkl-package-wrong-results/110405 "2024-02-19T22:26:22Z")

</div>

I have this program. I post it as it is. If I write: using MKL using MKLSparse It gives me (that’s an iteration of results with a matrix parameter on the first column): 02 | -0.37499999999999944 | 0.0 | -0.1874999999…

---

## [@btime changes the result](https://discourse.julialang.org/t/btime-changes-the-result/110425)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 2\
**Last updated:** [February 19, 2024, 10:15pm UTC](https://discourse.julialang.org/t/btime-changes-the-result/110425 "2024-02-19T22:15:52Z")

</div>

I will write a difficult to read program because I know its analytical solution. What you just need to to is putting @btime in front of the function call, at the end. Read the last result of the 4th column: With @btim…

---

## [Minmax with \`lt\` keyword argument?](https://discourse.julialang.org/t/minmax-with-lt-keyword-argument/110398)

<div class="topic-metadata">

**Author:** [@putianyi888](https://discourse.julialang.org/u/putianyi888)\
**Replies:** 11\
**Last updated:** [February 19, 2024, 9:25pm UTC](https://discourse.julialang.org/t/minmax-with-lt-keyword-argument/110398 "2024-02-19T21:25:10Z")

</div>

Is there a “minmax” that can have a lt keyword like what sort does? For example, some method that does the following: minmax(x, y; lt=isless) = lt(x,y) ? (x,y) : (y,x)

---

## [Tuple related error](https://discourse.julialang.org/t/tuple-related-error/107678)

<div class="topic-metadata">

**Author:** [@Leon6](https://discourse.julialang.org/u/Leon6)\
**Replies:** 4\
**Last updated:** [February 19, 2024, 8:57pm UTC](https://discourse.julialang.org/t/tuple-related-error/107678 "2024-02-19T20:57:37Z")

</div>

Would anyone please help me with this Tuple related error? Here is my code: if A == 1 DL = 11; elseif A == 2 DL = 21; end ds3 = NCDataset("$(P0)/Input/TSO2/xxx.nc"); T = ds3\["abc"\]\[:,…

---

## [Did Logging lose colors on Julia 1.11?](https://discourse.julialang.org/t/did-logging-lose-colors-on-julia-1-11/110416)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 7:27pm UTC](https://discourse.julialang.org/t/did-logging-lose-colors-on-julia-1-11/110416 "2024-02-19T19:27:25Z")

</div>

My log messages seem to have lost their color. Is this happening for anyone else on nightly?

---

## [Parallel mutable reduction / mapreduce](https://discourse.julialang.org/t/parallel-mutable-reduction-mapreduce/110207)

<div class="topic-metadata">

**Author:** [@foobar\_lv2](https://discourse.julialang.org/u/foobar_lv2)\
**Replies:** 7\
**Last updated:** [February 19, 2024, 6:27pm UTC](https://discourse.julialang.org/t/parallel-mutable-reduction-mapreduce/110207 "2024-02-19T18:27:42Z")

</div>

Hi, I wanted to ask about recommendations for packages that offer multithreaded mapreduce-style computation. That is unfortunately not part of stdlib, so I was wondering which packages are good for that. The way I like…

---

## [How to pass a constraint as Lazy with Gurobi?](https://discourse.julialang.org/t/how-to-pass-a-constraint-as-lazy-with-gurobi/110294)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 5\
**Last updated:** [February 19, 2024, 5:57pm UTC](https://discourse.julialang.org/t/how-to-pass-a-constraint-as-lazy-with-gurobi/110294 "2024-02-19T17:57:50Z")

</div>

I want to pass a constraint as Lazy in the beginning of my JuMP model. Note that I do not want it to be a lazy constraint called in a Callback. How am I supposed to do it? The corresponding Gurobi parameter is: It …

---

## [Chaos compatibility testing?](https://discourse.julialang.org/t/chaos-compatibility-testing/110360)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 21\
**Last updated:** [February 19, 2024, 5:11pm UTC](https://discourse.julialang.org/t/chaos-compatibility-testing/110360 "2024-02-19T17:11:15Z")

</div>

Does anybody know if there is some package does a kind of “chaos compat engine” for deep testing, to test random versions of dependencies (and their dependencies) that fit within a library \[compat\] bounds? I’ve ran into…

---

## [Makie plotting: GLib-GIO-WARNING](https://discourse.julialang.org/t/makie-plotting-glib-gio-warning/64478)

<div class="topic-metadata">

**Author:** [@JosephPollacco](https://discourse.julialang.org/u/JosephPollacco)\
**Replies:** 2\
**Last updated:** [February 19, 2024, 4:40pm UTC](https://discourse.julialang.org/t/makie-plotting-glib-gio-warning/64478 "2024-02-19T16:40:13Z")

</div>

Hallo :grinning\_face\_with\_smiling\_eyes:, I am using the excellent Makie plotting package. When I am compiling the code I am getting the following Warnings, GLib-GIO-WARNING \*which I suspect is caused by the package Cair…

---

## [ArraysOfArrays with named fields](https://discourse.julialang.org/t/arraysofarrays-with-named-fields/110281)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 7\
**Last updated:** [February 19, 2024, 4:38pm UTC](https://discourse.julialang.org/t/arraysofarrays-with-named-fields/110281 "2024-02-19T16:38:15Z")

</div>

Let’s say I have a vector a = \[x1, x2, x3, q1, q2, q3, q4\]. What’s a nice way to use it in algorithms that expect a flat vector like that, but at the same time have a nice interface like a.x, a.q to extract \[x1, x2, x3\] …

---

## [Fastest matrix multiplication](https://discourse.julialang.org/t/fastest-matrix-multiplication/110368)

<div class="topic-metadata">

**Author:** [@eveningsilverfox](https://discourse.julialang.org/u/eveningsilverfox)\
**Replies:** 20\
**Last updated:** [February 19, 2024, 2:51pm UTC](https://discourse.julialang.org/t/fastest-matrix-multiplication/110368 "2024-02-19T14:51:24Z")

</div>

The rate determining step in my code is intermediate-sized matrix multiplications, which I have to do many many (around 10⁸) times. using LinearAlgebra using MKL using BenchmarkTools aa = rand(ComplexF64, 164,164); bb …

---

## [Create excel file using data from two dataframes](https://discourse.julialang.org/t/create-excel-file-using-data-from-two-dataframes/110320)

<div class="topic-metadata">

**Author:** [@Sandy45](https://discourse.julialang.org/u/Sandy45)\
**Replies:** 5\
**Last updated:** [February 19, 2024, 3:03pm UTC](https://discourse.julialang.org/t/create-excel-file-using-data-from-two-dataframes/110320 "2024-02-19T15:03:45Z")

</div>

Hello, I have two Data Frames which has headers and data in them, and I want to write data from these two Data Frames into one single excel sheet. I know we can write each data frame data into separate sheet. Any advic…

---

## [Methods to solve system of linear equations with equiality constraint](https://discourse.julialang.org/t/methods-to-solve-system-of-linear-equations-with-equiality-constraint/110403)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 4\
**Last updated:** [February 19, 2024, 3:00pm UTC](https://discourse.julialang.org/t/methods-to-solve-system-of-linear-equations-with-equiality-constraint/110403 "2024-02-19T15:00:02Z")

</div>

Hello, everyone. I want to solve a system of linear equations Ax = b with some linear equality constraints. A is square but non-symmetric. The equation corresponds to a linearized stationary Boltzman equation, and the…

---

## [Cropping dataframe table data left or center](https://discourse.julialang.org/t/cropping-dataframe-table-data-left-or-center/110344)

<div class="topic-metadata">

**Author:** [@bertlhf](https://discourse.julialang.org/u/bertlhf)\
**Replies:** 13\
**Last updated:** [February 19, 2024, 2:39pm UTC](https://discourse.julialang.org/t/cropping-dataframe-table-data-left-or-center/110344 "2024-02-19T14:39:13Z")

</div>

Dataframe table data in Julia can easily be cropped right with the column\_width keyword of PrettyTables.jl. For some of my columns I need data cropped left or center. I used to do this in R with the str\_trunc function fr…

---

## [Static Array times scalar](https://discourse.julialang.org/t/static-array-times-scalar/110401)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 2\
**Last updated:** [February 19, 2024, 2:11pm UTC](https://discourse.julialang.org/t/static-array-times-scalar/110401 "2024-02-19T14:11:33Z")

</div>

How to multiply a static array with a scalar with allocating memory ? I tried Aloc = SVector{36}(SVector(Bloc)./Scalar(area) and variants without succes. Thx!

---

## [Client code for SSE (Server Sent Events) with HTTP.jl](https://discourse.julialang.org/t/client-code-for-sse-server-sent-events-with-http-jl/110386)

<div class="topic-metadata">

**Author:** [@screw\_dog](https://discourse.julialang.org/u/screw_dog)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 2:08pm UTC](https://discourse.julialang.org/t/client-code-for-sse-server-sent-events-with-http-jl/110386 "2024-02-19T14:08:07Z")

</div>

I’m attempting to receive SSE from a Mastodon instance, following the API described in the official docs. Firstly, I can’t get HTTP.open to work. Attempting: HTTP.open("get", "https://aus.social/api/v1/streaming/public…

---

## [Can't run a Resnet code](https://discourse.julialang.org/t/cant-run-a-resnet-code/110303)

<div class="topic-metadata">

**Author:** [@delcencen](https://discourse.julialang.org/u/delcencen)\
**Replies:** 3\
**Last updated:** [February 19, 2024, 1:12pm UTC](https://discourse.julialang.org/t/cant-run-a-resnet-code/110303 "2024-02-19T13:12:10Z")

</div>

Hello, in this code i ave the 2 following errors : -ERROR: LoadError: UndefVarError: \`Resnet\` not defined -ERROR: LoadError: UndefVarError: \`get\_classes\` not defined the code of my book : using Flux using M…

---

## [Updating registry or instantiating project environment fails with SSL/ca-certificate issue](https://discourse.julialang.org/t/updating-registry-or-instantiating-project-environment-fails-with-ssl-ca-certificate-issue/110400)

<div class="topic-metadata">

**Author:** [@fbanning](https://discourse.julialang.org/u/fbanning)\
**Replies:** 2\
**Last updated:** [February 19, 2024, 1:02pm UTC](https://discourse.julialang.org/t/updating-registry-or-instantiating-project-environment-fails-with-ssl-ca-certificate-issue/110400 "2024-02-19T13:02:04Z")

</div>

I’m faced with a weird issue since updating to v1.10.1: (@v1.10) pkg\> instantiate ┌ Warning: could not download https://pkg.julialang.org/registries │ exception = RequestError: Error reading ca cert file /etc/ssl/cert…

---

## [\[ANN\] New organization: JuliaGenAI for advancing generative AI tooling](https://discourse.julialang.org/t/ann-new-organization-juliagenai-for-advancing-generative-ai-tooling/110114)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 5\
**Last updated:** [February 19, 2024, 12:55pm UTC](https://discourse.julialang.org/t/ann-new-organization-juliagenai-for-advancing-generative-ai-tooling/110114 "2024-02-19T12:55:11Z")

</div>

I’d like to announce the JuliaGenAI organization! A few of us (@svilupp, @sethaxen, Brian Chen) have been discussing the use of Julia in a generative AI world. We’re focused on providing and supporting libraries that ma…

---

## [Copy or view, issue](https://discourse.julialang.org/t/copy-or-view-issue/110395)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 10:56am UTC](https://discourse.julialang.org/t/copy-or-view-issue/110395 "2024-02-19T10:56:19Z")

</div>

Following Noteworthy Differences from other Languages · The Julia Language which says that: Julia arrays are not copied when assigned to another variable. After A = B, changing elements of B will modify A as well. To a…

---

## [Rolling (time) average of a timeseries of images](https://discourse.julialang.org/t/rolling-time-average-of-a-timeseries-of-images/110352)

<div class="topic-metadata">

**Author:** [@JonathanH](https://discourse.julialang.org/u/JonathanH)\
**Replies:** 3\
**Last updated:** [February 19, 2024, 9:59am UTC](https://discourse.julialang.org/t/rolling-time-average-of-a-timeseries-of-images/110352 "2024-02-19T09:59:36Z")

</div>

Hi all, I am new to Julia, and this may be a very straightforward question. I have a timeseries of images, and I am trying to calculate a pixel-wise rolling time average. The obvious choice for doing this would be the m…

---

## [Do not update neural network weights with a value of 0](https://discourse.julialang.org/t/do-not-update-neural-network-weights-with-a-value-of-0/110335)

<div class="topic-metadata">

**Author:** [@kuanchiun](https://discourse.julialang.org/u/kuanchiun)\
**Replies:** 5\
**Last updated:** [February 19, 2024, 2:42am UTC](https://discourse.julialang.org/t/do-not-update-neural-network-weights-with-a-value-of-0/110335 "2024-02-19T02:42:38Z")

</div>

Hello, I have just been exposed to the field of deep learning for a short time. Recently I was trying to create the 3-dimensional Neural Network, by giving the 3D Array as a pretrained weights. Each 2D matrix in the wei…

---

## ['EstimationProblem' not defined](https://discourse.julialang.org/t/estimationproblem-not-defined/110392)

<div class="topic-metadata">

**Author:** [@Aqeel\_Abbas](https://discourse.julialang.org/u/Aqeel_Abbas)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 9:31am UTC](https://discourse.julialang.org/t/estimationproblem-not-defined/110392 "2024-02-19T09:31:35Z")

</div>

I am following this Example to reinterpolated on a regular grid. When I try these part of line after insatalling all required packages, including GeoStats and GeophysicalModelGenerator. Cgrid = CartesianGrid((size(Lon,1…

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

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