# Latest

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

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

**Page:** 404

---

## [How bad is it if x \< y doesn't return a Bool?](https://discourse.julialang.org/t/how-bad-is-it-if-x-y-doesnt-return-a-bool/114611)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 22\
**Last updated:** [May 24, 2024, 6:30am UTC](https://discourse.julialang.org/t/how-bad-is-it-if-x-y-doesnt-return-a-bool/114611 "2024-05-24T06:30:27Z")

</div>

Suppose I define a number type T for which order comparison is not meaningful: \<(x::T, y::T) doesn’t make any mathematical sense, because T actually contains a set. There are good reasons why I’m doing this, see SparseCo…

---

## [Enter numbers in grid of GameZero board](https://discourse.julialang.org/t/enter-numbers-in-grid-of-gamezero-board/114657)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 0\
**Last updated:** [May 24, 2024, 5:41am UTC](https://discourse.julialang.org/t/enter-numbers-in-grid-of-gamezero-board/114657 "2024-05-24T05:41:14Z")

</div>

How to type/insert number in grid of GameZero.jl board? I will use keyboard to enter numbers in grid blocks. Is there any function in GameZero.jl to make possible to enter numbers in grid?

---

## [Example of Documenter Vitepress on GitLab?](https://discourse.julialang.org/t/example-of-documenter-vitepress-on-gitlab/114079)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 1\
**Last updated:** [May 24, 2024, 3:35am UTC](https://discourse.julialang.org/t/example-of-documenter-vitepress-on-gitlab/114079 "2024-05-24T03:35:30Z")

</div>

As the title says, is there example of deploying Vitepress powered doccs on GitLab pages?

---

## [Nicer way to plug an R function into the RHS of an ODEProblem?](https://discourse.julialang.org/t/nicer-way-to-plug-an-r-function-into-the-rhs-of-an-odeproblem/114640)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 6\
**Last updated:** [May 23, 2024, 9:26pm UTC](https://discourse.julialang.org/t/nicer-way-to-plug-an-r-function-into-the-rhs-of-an-odeproblem/114640 "2024-05-23T21:26:59Z")

</div>

Hi All, I’m trying to plug an R function into an ODEProblem in OrdinaryDiffEq. The below code works, but is there a simple way to make the code neater e.g. define ODEProblem in terms of an RObject? using OrdinaryDiffEq…

---

## [Parameters modified by events are not captured in ODE the solution](https://discourse.julialang.org/t/parameters-modified-by-events-are-not-captured-in-ode-the-solution/114592)

<div class="topic-metadata">

**Author:** [@valerdam](https://discourse.julialang.org/u/valerdam)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 9:23pm UTC](https://discourse.julialang.org/t/parameters-modified-by-events-are-not-captured-in-ode-the-solution/114592 "2024-05-23T21:23:23Z")

</div>

It seems that parameters modified by callback events are not captured as time dependent in the ODE solution. Using a slight modification of the example in here, parameter k changes from 1.0 to 5.0 at time t=5. However t…

---

## [Basic function usage in Query @filter](https://discourse.julialang.org/t/basic-function-usage-in-query-filter/114642)

<div class="topic-metadata">

**Author:** [@seadoo](https://discourse.julialang.org/u/seadoo)\
**Replies:** 9\
**Last updated:** [May 23, 2024, 9:04pm UTC](https://discourse.julialang.org/t/basic-function-usage-in-query-filter/114642 "2024-05-23T21:04:00Z")

</div>

Is the @filter macro from Query.jl only useful for simple things like \_.a \> 1 and so on? I’ve tried to use ismissing which just returns a boolean and it does not return anything (but also does not return any errors). Br…

---

## [How to disable autocomplete " marks in the REPL terminal](https://discourse.julialang.org/t/how-to-disable-autocomplete-marks-in-the-repl-terminal/114641)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 3\
**Last updated:** [May 23, 2024, 8:01pm UTC](https://discourse.julialang.org/t/how-to-disable-autocomplete-marks-in-the-repl-terminal/114641 "2024-05-23T20:01:58Z")

</div>

Hello. I want to disable autocompletion of " (double quotation mark) when I type it in my REPL session under vscode terminal. Note that it is fine to do autocompletion of " in the editor, but I don’t want to have that in…

---

## [Convert continuous time (ODESystem) to discrete time system?](https://discourse.julialang.org/t/convert-continuous-time-odesystem-to-discrete-time-system/114597)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 4\
**Last updated:** [May 23, 2024, 7:46pm UTC](https://discourse.julialang.org/t/convert-continuous-time-odesystem-to-discrete-time-system/114597 "2024-05-23T19:46:50Z")

</div>

I’d like to take a continuous time ODE, and convert it to a discrete time system, along the lines of c2d in ControlSystems.jl. Here’s the ODE version: Here’s the discrete-time equivalent: I suspect that this is ea…

---

## [What is \`Ei\` in SymPy.jl?](https://discourse.julialang.org/t/what-is-ei-in-sympy-jl/114636)

<div class="topic-metadata">

**Author:** [@pgbarletta](https://discourse.julialang.org/u/pgbarletta)\
**Replies:** 2\
**Last updated:** [May 23, 2024, 7:18pm UTC](https://discourse.julialang.org/t/what-is-ei-in-sympy-jl/114636 "2024-05-23T19:18:06Z")

</div>

I tried to get this integral: @syms r::real a::real fff = integrate((1/r)\*exp(-2\*a\*r), (r)) and got this: what’s that Ei?

---

## [How to create the set of variables as a matrix in stead of vector?](https://discourse.julialang.org/t/how-to-create-the-set-of-variables-as-a-matrix-in-stead-of-vector/114638)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 2\
**Last updated:** [May 23, 2024, 6:29pm UTC](https://discourse.julialang.org/t/how-to-create-the-set-of-variables-as-a-matrix-in-stead-of-vector/114638 "2024-05-23T18:29:22Z")

</div>

I have used the ModelingToolkit, DifferentialEquations, and OrdinaryDiffEq packages to solve the ODE system. In the past, I have implemented the set of variables x as a vector like: @variables (x(t))\[1:m\] Is there any…

---

## [How to avoid containers of abstract parametric types?](https://discourse.julialang.org/t/how-to-avoid-containers-of-abstract-parametric-types/114583)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 12\
**Last updated:** [May 23, 2024, 3:14pm UTC](https://discourse.julialang.org/t/how-to-avoid-containers-of-abstract-parametric-types/114583 "2024-05-23T15:14:02Z")

</div>

I have defined a set of structs representing various financial instruments abstract type Asset end mutable struct Stock \<: Asset symbol::String company::Int64 end mutable struct Bond \<: Asset symbol::Strin…

---

## [Upgrading hardware for LinearAlgebra in Julia](https://discourse.julialang.org/t/upgrading-hardware-for-linearalgebra-in-julia/114349)

<div class="topic-metadata">

**Author:** [@yosuga](https://discourse.julialang.org/u/yosuga)\
**Replies:** 14\
**Last updated:** [May 23, 2024, 10:28am UTC](https://discourse.julialang.org/t/upgrading-hardware-for-linearalgebra-in-julia/114349 "2024-05-23T10:28:56Z")

</div>

Hello, I typically work on solving eigenvalue problems with non-Hermitian matrices using LinearAlgebra.jl. Recently, I’ve been considering upgrading my laptop to improve the operating time for matrix diagonalization and …

---

## [A \\ b as Vector{SVector} when b is static along one dimension](https://discourse.julialang.org/t/a-b-as-vector-svector-when-b-is-static-along-one-dimension/114606)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [May 23, 2024, 2:00pm UTC](https://discourse.julialang.org/t/a-b-as-vector-svector-when-b-is-static-along-one-dimension/114606 "2024-05-23T14:00:41Z")

</div>

I would like to calculate A \\ b where A is NxN, b is a vector of SVectors that is viewed as a matrix. I want the result to be a Vector{SVector} analogously. MWE for setup: using LinearAlgebra, StaticArrays M = 3 N = 10…

---

## [Custom L2Loss in DiffEqParamEstim.jl](https://discourse.julialang.org/t/custom-l2loss-in-diffeqparamestim-jl/114618)

<div class="topic-metadata">

**Author:** [@MarcoDellOro](https://discourse.julialang.org/u/MarcoDellOro)\
**Replies:** 2\
**Last updated:** [May 23, 2024, 12:19pm UTC](https://discourse.julialang.org/t/custom-l2loss-in-diffeqparamestim-jl/114618 "2024-05-23T12:19:38Z")

</div>

Hello everyone, I am very new to Julia, so I apologise if the question sounds super dumb to you guys. I am trying to implement a Moving Horizon Estimation algorithm for parameter estimation, which I did in Matlab CasAD…

---

## [Multi Input Multi Output CNN with Flux](https://discourse.julialang.org/t/multi-input-multi-output-cnn-with-flux/114624)

<div class="topic-metadata">

**Author:** [@cojiro182](https://discourse.julialang.org/u/cojiro182)\
**Replies:** 0\
**Last updated:** [May 23, 2024, 12:08pm UTC](https://discourse.julialang.org/t/multi-input-multi-output-cnn-with-flux/114624 "2024-05-23T12:08:45Z")

</div>

Hi, I am super new to machine learning and the Flux.jl package and I am having trouble setting up my model. I am effectively trying to train a dataset of 3 images to predict an output of 2 different images. The inputs a…

---

## [Yearly comparison of Optimization Libraries](https://discourse.julialang.org/t/yearly-comparison-of-optimization-libraries/110165)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 6\
**Last updated:** [May 23, 2024, 11:59am UTC](https://discourse.julialang.org/t/yearly-comparison-of-optimization-libraries/110165 "2024-05-23T11:59:46Z")

</div>

Hello! Does the Julia community have a yearly contest between different optimization libraries against hidden benchmark problems?

---

## [Add title and axis labels using abmplot](https://discourse.julialang.org/t/add-title-and-axis-labels-using-abmplot/114593)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 11:54am UTC](https://discourse.julialang.org/t/add-title-and-axis-labels-using-abmplot/114593 "2024-05-23T11:54:52Z")

</div>

Hi, I am using the abmplot function in Agents.jl to plot the location of my agents. It is plotting the agents fine, but I would like to add a title and axis labels. Nothing I have done seems to work. I am using CairoMak…

---

## [Add Tasks to Background Worker](https://discourse.julialang.org/t/add-tasks-to-background-worker/114595)

<div class="topic-metadata">

**Author:** [@stefanjwojcik](https://discourse.julialang.org/u/stefanjwojcik)\
**Replies:** 3\
**Last updated:** [May 23, 2024, 11:48am UTC](https://discourse.julialang.org/t/add-tasks-to-background-worker/114595 "2024-05-23T11:48:17Z")

</div>

I’m trying to create a worker who will pick up tasks from a global list and execute them without blocking the repl (i.e. the worker executes in the background). In the following MWE, I’d expect that adding tasks to the w…

---

## [Comparing package management in Python R Julia and Rust](https://discourse.julialang.org/t/comparing-package-management-in-python-r-julia-and-rust/114617)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 11:22am UTC](https://discourse.julialang.org/t/comparing-package-management-in-python-r-julia-and-rust/114617 "2024-05-23T11:22:22Z")

</div>

---

## [Zlib error](https://discourse.julialang.org/t/zlib-error/114600)

<div class="topic-metadata">

**Author:** [@mohammad\_amini](https://discourse.julialang.org/u/mohammad_amini)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 8:28am UTC](https://discourse.julialang.org/t/zlib-error/114600 "2024-05-23T08:28:28Z")

</div>

Hi, I ran a code twice and the first time everything was ok, the second time I encountered this error message. Do you know what the problem is? error message: zlib error: (code: -5)

---

## [Write to file and stdout](https://discourse.julialang.org/t/write-to-file-and-stdout/35042)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 12\
**Last updated:** [May 23, 2024, 8:12am UTC](https://discourse.julialang.org/t/write-to-file-and-stdout/35042 "2024-05-23T08:12:36Z")

</div>

I have a number of println statements in a script. I know I can also do println(io,blah) to write to a file. When I do that, output no longer goes to stdout. Can I do both at once?

---

## [Shannon wavelet entropy](https://discourse.julialang.org/t/shannon-wavelet-entropy/114319)

<div class="topic-metadata">

**Author:** [@ahrensma](https://discourse.julialang.org/u/ahrensma)\
**Replies:** 3\
**Last updated:** [May 23, 2024, 7:31am UTC](https://discourse.julialang.org/t/shannon-wavelet-entropy/114319 "2024-05-23T07:31:31Z")

</div>

Hello, I look for a function similar to the wentropy function in the Wavelet Toolbox of Matlab. In an older code I used to following form: H = -wentropy( DataArray , 'shannon' ); I look in several packages (Wavelet.jl…

---

## [Is there a minimal package for Windows Bitmap (\*.bmp) files?](https://discourse.julialang.org/t/is-there-a-minimal-package-for-windows-bitmap-bmp-files/114501)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 4\
**Last updated:** [May 23, 2024, 6:07am UTC](https://discourse.julialang.org/t/is-there-a-minimal-package-for-windows-bitmap-bmp-files/114501 "2024-05-23T06:07:56Z")

</div>

Is there a package with minimal dependencies that supports loading and saving Windows Bitmap (\*.bmp) files? At present, ImageMagick.jl and OpenCV.jl are registered in the registry of FileIO.jl. They are prone to compa…

---

## [Jordan norm in julia](https://discourse.julialang.org/t/jordan-norm-in-julia/114500)

<div class="topic-metadata">

**Author:** [@swsw](https://discourse.julialang.org/u/swsw)\
**Replies:** 6\
**Last updated:** [May 23, 2024, 6:06am UTC](https://discourse.julialang.org/t/jordan-norm-in-julia/114500 "2024-05-23T06:06:22Z")

</div>

Is there a way to do jordan decomposition or find out the jordan norm of a n\*n matrix in julia? I see the following one but the function jordan\_form is not available in SymPy.jl. Any insight?

---

## [Integer equivalent of \`e\` notation](https://discourse.julialang.org/t/integer-equivalent-of-e-notation/114605)

<div class="topic-metadata">

**Author:** [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 4:22am UTC](https://discourse.julialang.org/t/integer-equivalent-of-e-notation/114605 "2024-05-23T04:22:51Z")

</div>

Is there an integer equivalent for powers of 10 like there is for floating point? For example, 7e9 is 7000000000.0. Is there a shorthand for integers?

---

## [How to access values in TimeArrays cells](https://discourse.julialang.org/t/how-to-access-values-in-timearrays-cells/55593)

<div class="topic-metadata">

**Author:** [@askvorts](https://discourse.julialang.org/u/askvorts)\
**Replies:** 1\
**Last updated:** [May 23, 2024, 3:40am UTC](https://discourse.julialang.org/t/how-to-access-values-in-timearrays-cells/55593 "2024-05-23T03:40:35Z")

</div>

Following what can be done in DataFrames, for example, using DataFrames, TimeSeries A = \[1,2,3\] B = \[3,4,5\] C = DataFrame(A=A, B=B) C\[1,2\] == 3 # true typeof(C\[1,2\]) # Int64 I am trying to access values in cells from a…

---

## [Missed the WAT thread, so here's one for intentionally cursed code](https://discourse.julialang.org/t/missed-the-wat-thread-so-heres-one-for-intentionally-cursed-code/114446)

<div class="topic-metadata">

**Author:** [@Benny](https://discourse.julialang.org/u/Benny)\
**Replies:** 22\
**Last updated:** [May 23, 2024, 1:59am UTC](https://discourse.julialang.org/t/missed-the-wat-thread-so-heres-one-for-intentionally-cursed-code/114446 "2024-05-23T01:59:14Z")

</div>

continues in a 1-iteration loop acting like @gotos to 1 @label because break wasn’t bad enough function foo(A) for \_ in 1 if is1(A) continue end # @goto wrapup bar1!(A) if is2(A) continue end…

---

## [Broadcasting functions with multiple arguments in same dimension using Mapslices](https://discourse.julialang.org/t/broadcasting-functions-with-multiple-arguments-in-same-dimension-using-mapslices/114586)

<div class="topic-metadata">

**Author:** [@chihlun](https://discourse.julialang.org/u/chihlun)\
**Replies:** 14\
**Last updated:** [May 22, 2024, 11:41pm UTC](https://discourse.julialang.org/t/broadcasting-functions-with-multiple-arguments-in-same-dimension-using-mapslices/114586 "2024-05-22T23:41:42Z")

</div>

Hi everyone, I have a simple code as shown below. Both a and y are 4D matrices. I want the function f(x, y) to operate on the third dimension, summing the x matrix along the 3rd dimension, summing the y matrix along the…

---

## [Cutting graphs at bridges](https://discourse.julialang.org/t/cutting-graphs-at-bridges/114533)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 4\
**Last updated:** [May 22, 2024, 2:57pm UTC](https://discourse.julialang.org/t/cutting-graphs-at-bridges/114533 "2024-05-22T14:57:31Z")

</div>

I’ve got a directed MetaGraphNext object g, which I’d like to run some algorithms on. I’ve run b = bridges(Graph(g.graph)) (since bridges apparently can’t be computed on a MetaGraph or a directed graph) to get a list of…

---

## [How to check reliably whether a function has a zero on an interval '\[0,a)'](https://discourse.julialang.org/t/how-to-check-reliably-whether-a-function-has-a-zero-on-an-interval-0-a/114560)

<div class="topic-metadata">

**Author:** [@paul188](https://discourse.julialang.org/u/paul188)\
**Replies:** 5\
**Last updated:** [May 22, 2024, 5:23pm UTC](https://discourse.julialang.org/t/how-to-check-reliably-whether-a-function-has-a-zero-on-an-interval-0-a/114560 "2024-05-22T17:23:52Z")

</div>

Let’s say I have a continuous (even smooth) function f(x) which is defined on the whole real line. Now, I want to know whether f(x) has a zero in \[0, ∞). I can say for sure that if it has a zero on this ray, this zero m…

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

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