# Latest

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

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

**Page:** 807

---

## [Use of caveat in common solve](https://discourse.julialang.org/t/use-of-caveat-in-common-solve/93243)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 5:21pm UTC](https://discourse.julialang.org/t/use-of-caveat-in-common-solve/93243 "2023-01-20T17:21:42Z")

</div>

@ChrisRackauckas, I get the error message: ┌ Warning: Endpoints do not match. Return code: Success. Likely your time range is not a multiple of \`saveat\`. sol.t\[end\]: 75.398224, ts\[end\]: 0.0 because I am using saveat a…

---

## [I need help with getting a simple Deep QNetwork to learn](https://discourse.julialang.org/t/i-need-help-with-getting-a-simple-deep-qnetwork-to-learn/93171)

<div class="topic-metadata">

**Author:** [@shinobiultra](https://discourse.julialang.org/u/shinobiultra)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 3:55pm UTC](https://discourse.julialang.org/t/i-need-help-with-getting-a-simple-deep-qnetwork-to-learn/93171 "2023-01-20T15:55:51Z")

</div>

Hello everyone, I’m new to the Julialang and as a toy project to learn it I decided to try out a simple Deep Q Network as I’m actively playing with (Deep) Reinforcement learning and have implemented various algorithms in…

---

## [Problem downloading cache behind proxy](https://discourse.julialang.org/t/problem-downloading-cache-behind-proxy/93268)

<div class="topic-metadata">

**Author:** [@bbejanov](https://discourse.julialang.org/u/bbejanov)\
**Replies:** 0\
**Last updated:** [January 20, 2023, 3:13pm UTC](https://discourse.julialang.org/t/problem-downloading-cache-behind-proxy/93268 "2023-01-20T15:13:20Z")

</div>

I am behind a proxy and the VScode Julia extension fails to download its cache files. I suspect that’s because of the proxy, but I’m not sure. In any case, everything works fine, but I’m wondering if there’s anything…

---

## [CPU address error with qr function](https://discourse.julialang.org/t/cpu-address-error-with-qr-function/93234)

<div class="topic-metadata">

**Author:** [@Eveee](https://discourse.julialang.org/u/Eveee)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 3:11pm UTC](https://discourse.julialang.org/t/cpu-address-error-with-qr-function/93234 "2023-01-20T15:11:02Z")

</div>

Hi all, I am puzzled by an error I am getting when using the qr function on CUDA. The following code works fine: a=CUDA.randn(3,3) q=qr(a).Q q \* a However, the following line does not: a \* q It results in this erro…

---

## [Why does stateful iterators restrict length to \`Signed\`?](https://discourse.julialang.org/t/why-does-stateful-iterators-restrict-length-to-signed/93263)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 2:56pm UTC](https://discourse.julialang.org/t/why-does-stateful-iterators-restrict-length-to-signed/93263 "2023-01-20T14:56:53Z")

</div>

Iterators.Stateful has the definition mutable struct Stateful{T, VS, N\<:Integer} itr::T # A bit awkward right now, but adapted to the new iteration protocol nextvalstate::Union{VS, Nothing} # Number of …

---

## [How do I stop Warning: Endpoints do not match. Return code: Terminated. Likely your time range is not a multiple of saveat](https://discourse.julialang.org/t/how-do-i-stop-warning-endpoints-do-not-match-return-code-terminated-likely-your-time-range-is-not-a-multiple-of-saveat/77523)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 2:27pm UTC](https://discourse.julialang.org/t/how-do-i-stop-warning-endpoints-do-not-match-return-code-terminated-likely-your-time-range-is-not-a-multiple-of-saveat/77523 "2023-01-20T14:27:32Z")

</div>

I am running a sciml\_train on a differential equation with a neural network embedded in it. In the differential equation I employee a callback to terminate the simulation when the trajectories are at their closest point…

---

## [StaticCompiler: Debugging and calling basic math functions](https://discourse.julialang.org/t/staticcompiler-debugging-and-calling-basic-math-functions/93219)

<div class="topic-metadata">

**Author:** [@wave\_and\_matter](https://discourse.julialang.org/u/wave_and_matter)\
**Replies:** 12\
**Last updated:** [January 20, 2023, 2:05pm UTC](https://discourse.julialang.org/t/staticcompiler-debugging-and-calling-basic-math-functions/93219 "2023-01-20T14:05:17Z")

</div>

I am relatively new to julia, but already managed to speed up a piece of code by factors of 2 to 5 compared to my numpy version. Now i need to deploy this code as a shared library on a cluster in a corporate environment…

---

## [Type() vs type() -- Are constructor methods or conversion functions more idiomatic?](https://discourse.julialang.org/t/type-vs-type-are-constructor-methods-or-conversion-functions-more-idiomatic/93233)

<div class="topic-metadata">

**Author:** [@SortofDamocles](https://discourse.julialang.org/u/SortofDamocles)\
**Replies:** 4\
**Last updated:** [January 20, 2023, 10:17am UTC](https://discourse.julialang.org/t/type-vs-type-are-constructor-methods-or-conversion-functions-more-idiomatic/93233 "2023-01-20T10:17:55Z")

</div>

I am writing some code with structs that represent dual forms of the same underlying thing, e.g. struct NormalForm normal\_data descriptive\_parameter end NormalForm(data) = NormalForm(data, process(data)) struct…

---

## [How to create Latex pdf directly from julia](https://discourse.julialang.org/t/how-to-create-latex-pdf-directly-from-julia/93222)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 3\
**Last updated:** [January 20, 2023, 1:42pm UTC](https://discourse.julialang.org/t/how-to-create-latex-pdf-directly-from-julia/93222 "2023-01-20T13:42:43Z")

</div>

Hi. I want to create Latex pdf from julia to make report. Is there any nice way to do so ? I could not find good package. can Latexify.jl create Latex pdf similiar to actual Latex software ?

---

## [How to increase a scrolling speed in Makie menu](https://discourse.julialang.org/t/how-to-increase-a-scrolling-speed-in-makie-menu/93221)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 3\
**Last updated:** [January 20, 2023, 1:40pm UTC](https://discourse.julialang.org/t/how-to-increase-a-scrolling-speed-in-makie-menu/93221 "2023-01-20T13:40:49Z")

</div>

I am using Makie’s menu with 30 items. However, the scrolling speed is annoyingly slow: I have to scroll 5 times with the mouse wheel just to move up one item. Is there a way to change this?

---

## [How to scale all the vertices in a GeometryBasics.Mesh?](https://discourse.julialang.org/t/how-to-scale-all-the-vertices-in-a-geometrybasics-mesh/93153)

<div class="topic-metadata">

**Author:** [@g2g](https://discourse.julialang.org/u/g2g)\
**Replies:** 5\
**Last updated:** [January 20, 2023, 1:37pm UTC](https://discourse.julialang.org/t/how-to-scale-all-the-vertices-in-a-geometrybasics-mesh/93153 "2023-01-20T13:37:24Z")

</div>

I’m attempting to port Steven De Keninck’s 3D slicer example application (listed here and demonstrated here) from JavaScript to Julia. The example application loads a 3D model of a bunny (from https://enkimute.github.io/…

---

## [Incorrect Infeasibility Status While Using MIPVerify](https://discourse.julialang.org/t/incorrect-infeasibility-status-while-using-mipverify/93033)

<div class="topic-metadata">

**Author:** [@Ahmed\_Anwar](https://discourse.julialang.org/u/Ahmed_Anwar)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 12:26pm UTC](https://discourse.julialang.org/t/incorrect-infeasibility-status-while-using-mipverify/93033 "2023-01-20T12:26:12Z")

</div>

Hello Everyone, I am trying to use MIPVerify library for neural network verification against adversarial attacks. My goal is to replace the ReLU function by a trainable mask that depends on the input image. Therefore fo…

---

## [Perform spatial join with GeoDataFrames](https://discourse.julialang.org/t/perform-spatial-join-with-geodataframes/86025)

<div class="topic-metadata">

**Author:** [@CompulsoryCoffee](https://discourse.julialang.org/u/CompulsoryCoffee)\
**Replies:** 3\
**Last updated:** [January 20, 2023, 11:48am UTC](https://discourse.julialang.org/t/perform-spatial-join-with-geodataframes/86025 "2023-01-20T11:48:29Z")

</div>

Hi, I want to make a spatial joint of points with polygons. I loaded both shapefiles in Julia via GeoDataFrames. Does the library allows for spatial join? Thanks

---

## [\[ANN\] ODMXMLTools.jl: A simple tools for working with ODM-XML](https://discourse.julialang.org/t/ann-odmxmltools-jl-a-simple-tools-for-working-with-odm-xml/76193)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 3\
**Last updated:** [January 20, 2023, 11:24am UTC](https://discourse.julialang.org/t/ann-odmxmltools-jl-a-simple-tools-for-working-with-odm-xml/76193 "2023-01-20T11:24:16Z")

</div>

ODMXMLTools.jl is a simple tool set for working with ODM-XML. ODM-XML is a vendor-neutral, platform-independent format for exchanging and archiving clinical and translational research data, along with their associated m…

---

## [Precompilation error](https://discourse.julialang.org/t/precompilation-error/92607)

<div class="topic-metadata">

**Author:** [@AS\_92](https://discourse.julialang.org/u/AS_92)\
**Replies:** 18\
**Last updated:** [January 20, 2023, 11:16am UTC](https://discourse.julialang.org/t/precompilation-error/92607 "2023-01-20T11:16:28Z")

</div>

Hi! I am using a package written in Julia language, which is very new to me. I am using Julia v.1.7.2 on HPC cluster. I notice a very strange error which appears randomly when I submit multiple jobs with different param…

---

## [Fitting parameters together with initial conditions of an ODE to real data](https://discourse.julialang.org/t/fitting-parameters-together-with-initial-conditions-of-an-ode-to-real-data/93255)

<div class="topic-metadata">

**Author:** [@moeinkh88](https://discourse.julialang.org/u/moeinkh88)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 11:10am UTC](https://discourse.julialang.org/t/fitting-parameters-together-with-initial-conditions-of-an-ode-to-real-data/93255 "2023-01-20T11:10:06Z")

</div>

I want to fit some parameters and some initial conditions of an ODE system to data. I am using Turing based on this tutorial. Example code: @model function fitprob(data) # Prior distributions. σ ~ InverseGamma…

---

## [Possible to save Differential Equation interpolation solution to a file?](https://discourse.julialang.org/t/possible-to-save-differential-equation-interpolation-solution-to-a-file/41308)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 8\
**Last updated:** [January 20, 2023, 10:42am UTC](https://discourse.julialang.org/t/possible-to-save-differential-equation-interpolation-solution-to-a-file/41308 "2023-01-20T10:42:46Z")

</div>

Hi again everyone, I’ve got another question… Using the DifferentialEquations package, the solutions aren’t just discrete lists of numbers for the function and its derivative, but it’s also an INTERPOLATION scheme which…

---

## [High performance vector/matrix/tensor linear algebra operations](https://discourse.julialang.org/t/high-performance-vector-matrix-tensor-linear-algebra-operations/88756)

<div class="topic-metadata">

**Author:** [@FireCrumb](https://discourse.julialang.org/u/FireCrumb)\
**Replies:** 9\
**Last updated:** [January 20, 2023, 9:12am UTC](https://discourse.julialang.org/t/high-performance-vector-matrix-tensor-linear-algebra-operations/88756 "2023-01-20T09:12:59Z")

</div>

Hi, I have vectors (say 20 of them) of the same size (say 256 Float64). Now I want to add two of them and put the result into the third one, with the index of which one given as input. TL;DR: what is the fastest way to…

---

## [Scaling of @threads for "embarrassingly parallel" problem](https://discourse.julialang.org/t/scaling-of-threads-for-embarrassingly-parallel-problem/92949)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 29\
**Last updated:** [January 20, 2023, 9:01am UTC](https://discourse.julialang.org/t/scaling-of-threads-for-embarrassingly-parallel-problem/92949 "2023-01-20T09:01:22Z")

</div>

I’m having a “trivially parallel” an “embarrassingly parallel” problem, where I’m running the following function: function map\_fidelity(potential\_depth\_values, separation\_time\_values; kwargs...) N = length(potentia…

---

## [How simple get vector from ranges?](https://discourse.julialang.org/t/how-simple-get-vector-from-ranges/5537)

<div class="topic-metadata">

**Author:** [@Martin\_Florek](https://discourse.julialang.org/u/Martin_Florek)\
**Replies:** 14\
**Last updated:** [January 20, 2023, 8:59am UTC](https://discourse.julialang.org/t/how-simple-get-vector-from-ranges/5537 "2023-01-20T08:59:38Z")

</div>

In Matlab I have vector and vector of ranges. a = \[10., 9., 8., 7., 6., 5., 4., 3., 2., 1.\] dr = \[1:2, 4:7\] If I want a new vector from ranges I will call. mo = a(dr) mo = 10 9 7 6 5 4 In J…

---

## [Wrapping C++ struct with libcxxwrap-julia](https://discourse.julialang.org/t/wrapping-c-struct-with-libcxxwrap-julia/92795)

<div class="topic-metadata">

**Author:** [@sunayana](https://discourse.julialang.org/u/sunayana)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 8:03am UTC](https://discourse.julialang.org/t/wrapping-c-struct-with-libcxxwrap-julia/92795 "2023-01-20T08:03:30Z")

</div>

Hello, I need some help with wrapping a C++ template struct (from richdem C++ library) into Julia such that it is seamlessly available in Julia to check values of and set values to. This is what I have so far: The tem…

---

## [Where is binary file of jupyter installed by IJulia in Win11?](https://discourse.julialang.org/t/where-is-binary-file-of-jupyter-installed-by-ijulia-in-win11/93248)

<div class="topic-metadata">

**Author:** [@J.J.sakurai](https://discourse.julialang.org/u/J.J.sakurai)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 7:44am UTC](https://discourse.julialang.org/t/where-is-binary-file-of-jupyter-installed-by-ijulia-in-win11/93248 "2023-01-20T07:44:31Z")

</div>

I have installed Julia 1.8.5 on windows 11 and added IJulia. By running a Jupyterlab() in REPL, I now enjoy using Jupyterlab. I would like to install jupyterlab-vim on my Jupyterlab. According to the instruction, I …

---

## [Cross-Compiling Julia from source for the Raspberry Pi 3b+](https://discourse.julialang.org/t/cross-compiling-julia-from-source-for-the-raspberry-pi-3b/79301)

<div class="topic-metadata">

**Author:** [@jmair](https://discourse.julialang.org/u/jmair)\
**Replies:** 7\
**Last updated:** [January 20, 2023, 7:14am UTC](https://discourse.julialang.org/t/cross-compiling-julia-from-source-for-the-raspberry-pi-3b/79301 "2023-01-20T07:14:22Z")

</div>

Hi everyone, I was just wondering if there were any easy ways to compile Julia for aarch64. I have found JuliaBerry, which has a guide on how to locally compile Julia on the Pi itself, but this will take almost an entir…

---

## [Cuda makes Julia freeze](https://discourse.julialang.org/t/cuda-makes-julia-freeze/92040)

<div class="topic-metadata">

**Author:** [@J.J.sakurai](https://discourse.julialang.org/u/J.J.sakurai)\
**Replies:** 8\
**Last updated:** [January 20, 2023, 5:01am UTC](https://discourse.julialang.org/t/cuda-makes-julia-freeze/92040 "2023-01-20T05:01:33Z")

</div>

I want to use julia on GPU. So I installed CUDA by add CUDA and wrote the following code. julia\> using CUDA julia\> y = CUDA.fill(2.0, 3) I have been waiting more than an hour but still no response. It seems to freeze…

---

## [How to do permutations with repetition?](https://discourse.julialang.org/t/how-to-do-permutations-with-repetition/93192)

<div class="topic-metadata">

**Author:** [@Name1](https://discourse.julialang.org/u/Name1)\
**Replies:** 5\
**Last updated:** [January 20, 2023, 4:34am UTC](https://discourse.julialang.org/t/how-to-do-permutations-with-repetition/93192 "2023-01-20T04:34:32Z")

</div>

Hi there, Looking to get some ideas on the best approach to doing permutations with repetition please. If I have an array with {x,y,z,…} distinct elements and want to generate all permutations to a length of N allowing …

---

## [Using DataFrames \`combine\` is there a way to programmatically pass multiple functions to apply to the same same column?](https://discourse.julialang.org/t/using-dataframes-combine-is-there-a-way-to-programmatically-pass-multiple-functions-to-apply-to-the-same-same-column/93238)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 9\
**Last updated:** [January 20, 2023, 3:52am UTC](https://discourse.julialang.org/t/using-dataframes-combine-is-there-a-way-to-programmatically-pass-multiple-functions-to-apply-to-the-same-same-column/93238 "2023-01-20T03:52:48Z")

</div>

Is there a way to pass a Vector{Function} like this: methods = \[mean, max\] to DataFrames combine? I was thinking something like this? df = combine(groupdf, nrow, 3 =\> methods) of df = combine(groupdf, nrow, 3 =\> met…

---

## [How to compute the Jacobian of a Vector-to-Vector complicated function](https://discourse.julialang.org/t/how-to-compute-the-jacobian-of-a-vector-to-vector-complicated-function/93236)

<div class="topic-metadata">

**Author:** [@Kim](https://discourse.julialang.org/u/Kim)\
**Replies:** 2\
**Last updated:** [January 20, 2023, 1:36am UTC](https://discourse.julialang.org/t/how-to-compute-the-jacobian-of-a-vector-to-vector-complicated-function/93236 "2023-01-20T01:36:13Z")

</div>

I am working on a modified finite element simulation. I have a complicated function to project a 648 units long vector to a 648 units long vector (i.e., from nodal displacements to nodal forces, the magnitude will be mag…

---

## [Almost but not quite univariate trend filtering / compressive sensing](https://discourse.julialang.org/t/almost-but-not-quite-univariate-trend-filtering-compressive-sensing/93237)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 3\
**Last updated:** [January 20, 2023, 12:49am UTC](https://discourse.julialang.org/t/almost-but-not-quite-univariate-trend-filtering-compressive-sensing/93237 "2023-01-20T00:49:21Z")

</div>

I need to minimize for x a convex (I think it is convex from plots I have made, but I don’t understand L1 very well) subproblem of the form ||y - Ax||² + λ²|Dx|\_1 where D is a first difference operator for piecewise co…

---

## [Creating a custom Dict clone for formatted printing?](https://discourse.julialang.org/t/creating-a-custom-dict-clone-for-formatted-printing/92975)

<div class="topic-metadata">

**Author:** [@daharn](https://discourse.julialang.org/u/daharn)\
**Replies:** 2\
**Last updated:** [January 19, 2023, 11:54pm UTC](https://discourse.julialang.org/t/creating-a-custom-dict-clone-for-formatted-printing/92975 "2023-01-19T23:54:27Z")

</div>

I want to be able to print the key-value pairs from a Dict-like object in a certain formatted way. I see two ways to do this: Either write a my\_print(dct::Dict) function that does this and use a regular Dict to store th…

---

## [Export from REPL history to julia script?](https://discourse.julialang.org/t/export-from-repl-history-to-julia-script/59399)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 10\
**Last updated:** [January 19, 2023, 10:12pm UTC](https://discourse.julialang.org/t/export-from-repl-history-to-julia-script/59399 "2023-01-19T22:12:23Z")

</div>

Is it possible to save the REPL history as a valid julia script? Something like: \> a = 3 3 \> b = 5 5 \> a + b 8 \> REPL.save("myscript.jl") myscript.jl: # REPL history export # Date: 16.04.2021 a = 3 # 3 b = 5 # 5 a +…

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

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