# Latest

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

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

**Page:** 767

---

## [Unsure how to develop a package in v1.8](https://discourse.julialang.org/t/unsure-how-to-develop-a-package-in-v1-8/95408)

<div class="topic-metadata">

**Author:** [@jsbryan4](https://discourse.julialang.org/u/jsbryan4)\
**Replies:** 3\
**Last updated:** [March 1, 2023, 10:53pm UTC](https://discourse.julialang.org/t/unsure-how-to-develop-a-package-in-v1-8/95408 "2023-03-01T22:53:36Z")

</div>

I am trying to create a module called BindingInference that ultimately I would like to use as a Package. I store all the files in a directory structured like BindingInference/ Project.toml license, readme, and g…

---

## [2D static array](https://discourse.julialang.org/t/2d-static-array/95414)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 10:35pm UTC](https://discourse.julialang.org/t/2d-static-array/95414 "2023-03-01T22:35:21Z")

</div>

I have an issue regarding StaticArray dimensionality when using DifferentialEquations.jl. If I solve a matrix equation using 3x3 StaticArrays, my solver returns a 3x3 array. Will that create a problem in the solve func…

---

## [Switching two elements in array, vcat getting flagged as runtime-dispatch?](https://discourse.julialang.org/t/switching-two-elements-in-array-vcat-getting-flagged-as-runtime-dispatch/95407)

<div class="topic-metadata">

**Author:** [@hshackle](https://discourse.julialang.org/u/hshackle)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 10:25pm UTC](https://discourse.julialang.org/t/switching-two-elements-in-array-vcat-getting-flagged-as-runtime-dispatch/95407 "2023-03-01T22:25:41Z")

</div>

I currently have the following line of code in a simulation: function exchangeBits(n::BitVector, i::Int, j::Int) # Returns a copy of n with the ith and jth bits exchanged if i \< j m = n\[vcat(1:(i - 1), j…

---

## [Package documentation: the left edge of the plot is missing](https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348)

<div class="topic-metadata">

**Author:** [@mdogan](https://discourse.julialang.org/u/mdogan)\
**Replies:** 3\
**Last updated:** [March 1, 2023, 10:11pm UTC](https://discourse.julialang.org/t/package-documentation-the-left-edge-of-the-plot-is-missing/95348 "2023-03-01T22:11:20Z")

</div>

I have a strange issue with package documentation. The left edge of the plots and x titles are missing. these plots are generated directly by code within the @example block. Note: I’m opening it on Microsoft Edge. Opene…

---

## [Broken range](https://discourse.julialang.org/t/broken-range/95347)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 17\
**Last updated:** [March 1, 2023, 9:21pm UTC](https://discourse.julialang.org/t/broken-range/95347 "2023-03-01T21:21:19Z")

</div>

Hello, i try plot next graphic for range The problem is that the picture looks too discrete. I built it with a modified range and it looked smoother. Why is that? I0range = range( -1.509460, -1.509490, length = 5000 ) …

---

## [Keyword arguments preventing eliding boundscheck](https://discourse.julialang.org/t/keyword-arguments-preventing-eliding-boundscheck/95405)

<div class="topic-metadata">

**Author:** [@OmarElrefaei](https://discourse.julialang.org/u/OmarElrefaei)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 8:59pm UTC](https://discourse.julialang.org/t/keyword-arguments-preventing-eliding-boundscheck/95405 "2023-03-01T20:59:42Z")

</div>

So I’ve got a MWE here with a weird behavior. Note: this seems to be actually fixed in v1.9. But I couldn’t track any relevant issues to PR. I’m trying to elide some checking code with @boundscheck. (yes, the real use …

---

## [Does anybody use \`--track-allocations\`](https://discourse.julialang.org/t/does-anybody-use-track-allocations/92570)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 12\
**Last updated:** [March 1, 2023, 8:53pm UTC](https://discourse.julialang.org/t/does-anybody-use-track-allocations/92570 "2023-03-01T20:53:36Z")

</div>

Would anyone mind if we removed support for julia --track-allocations in favor of the more reliable allocation profiler @allocations and @allocated macros? (RFC: Remove \`--track-allocation\` by vchuravy · Pull Request #4…

---

## [JuMP: Control automatic differentiation of user defined function](https://discourse.julialang.org/t/jump-control-automatic-differentiation-of-user-defined-function/95380)

<div class="topic-metadata">

**Author:** [@mgreifenstein](https://discourse.julialang.org/u/mgreifenstein)\
**Replies:** 4\
**Last updated:** [March 1, 2023, 8:33pm UTC](https://discourse.julialang.org/t/jump-control-automatic-differentiation-of-user-defined-function/95380 "2023-03-01T20:33:54Z")

</div>

Hi all, I am currently working on a code that is supposed to fit a model to experimental coherent Anti-Stokes Raman spectra which has about 9 decision variables, depending on the case. Because the computations in this m…

---

## [Datatype when save matrices in HDF5 file](https://discourse.julialang.org/t/datatype-when-save-matrices-in-hdf5-file/95364)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 8:18pm UTC](https://discourse.julialang.org/t/datatype-when-save-matrices-in-hdf5-file/95364 "2023-03-01T20:18:28Z")

</div>

Hi, I am trying to write a HDF5 file in Julia. Now suppose I want to create a dataset mydataset which contains a matrix A in the group mygroup, what datatype should I use in the function create\_dataset? (In the documen…

---

## [Create interpolation function from file data during module initialization](https://discourse.julialang.org/t/create-interpolation-function-from-file-data-during-module-initialization/95326)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 5\
**Last updated:** [March 1, 2023, 8:03pm UTC](https://discourse.julialang.org/t/create-interpolation-function-from-file-data-during-module-initialization/95326 "2023-03-01T20:03:38Z")

</div>

I have a module that is supposed to perform some numerical tasks, including random sampling. These tasks, in particular the sampling, depend on using functions for which there is no closed-form expression, so I brute-for…

---

## [Static Array and optimization](https://discourse.julialang.org/t/static-array-and-optimization/95399)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 6\
**Last updated:** [March 1, 2023, 7:19pm UTC](https://discourse.julialang.org/t/static-array-and-optimization/95399 "2023-03-01T19:19:57Z")

</div>

I am working on optimizing a 3x3 solver in Rheology. Here is my function. My question relates to the amount of memory allocation necessary to store a function in a dictionary. Here is a MWE: using DifferentialEquations …

---

## [LU factorisation of dense and sparse matrix](https://discourse.julialang.org/t/lu-factorisation-of-dense-and-sparse-matrix/95393)

<div class="topic-metadata">

**Author:** [@cvikas](https://discourse.julialang.org/u/cvikas)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 5:06pm UTC](https://discourse.julialang.org/t/lu-factorisation-of-dense-and-sparse-matrix/95393 "2023-03-01T17:06:54Z")

</div>

Hi guys, I’ve been trying convert MATLAB code to Julia, and I observed LU factorization for sparse and dense matrix of the same matrix give different number of non-zero fill-ins. Consider the following example: using …

---

## [@code\_warntype not found](https://discourse.julialang.org/t/code-warntype-not-found/95392)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 3\
**Last updated:** [March 1, 2023, 4:17pm UTC](https://discourse.julialang.org/t/code-warntype-not-found/95392 "2023-03-01T16:17:10Z")

</div>

When I use @code\_warntype from the command line, it is found. However, when I insert it into my script and run the script from the commandline via julia script.jl then, @code\_warntype is not found. What am I missing? …

---

## [LoadError: MethodError: no method matching](https://discourse.julialang.org/t/loaderror-methoderror-no-method-matching/95361)

<div class="topic-metadata">

**Author:** [@WekawTirso](https://discourse.julialang.org/u/WekawTirso)\
**Replies:** 5\
**Last updated:** [March 1, 2023, 3:49pm UTC](https://discourse.julialang.org/t/loaderror-methoderror-no-method-matching/95361 "2023-03-01T15:49:53Z")

</div>

Hello, Given two distinct points Start =\[xS,yS\] and End = \[xE,yE\] in 2d, my aim is to find a simple way to generate N evenly-spaced points along the shortest path between Start and End. That is, I want a generalization…

---

## [Multi-threaded testing](https://discourse.julialang.org/t/multi-threaded-testing/95372)

<div class="topic-metadata">

**Author:** [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 2:57pm UTC](https://discourse.julialang.org/t/multi-threaded-testing/95372 "2023-03-01T14:57:05Z")

</div>

I want to use multithreading to speed up my test suite, but it seems to “hide” the tests from the test set. Any idea why? julia\> using Base.Threads julia\> using Test julia\> @testset "Sequential" begin for i…

---

## [Callback at saveat times](https://discourse.julialang.org/t/callback-at-saveat-times/95331)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 4\
**Last updated:** [March 1, 2023, 2:34pm UTC](https://discourse.julialang.org/t/callback-at-saveat-times/95331 "2023-03-01T14:34:41Z")

</div>

I have read most of the documentation on Callbacks, but I still have an issue, that does not appear to be covered. Here is a fragment of a longer section from an UODE: λ8 = (T8\_11 + T8\_22 + T8\_33)/2 # λ9 = tr(…

---

## [JuMP/Gurobi: optimize! returns INFEASIBLE, but there is feasible point](https://discourse.julialang.org/t/jump-gurobi-optimize-returns-infeasible-but-there-is-feasible-point/95019)

<div class="topic-metadata">

**Author:** [@Ethan-Russell](https://discourse.julialang.org/u/Ethan-Russell)\
**Replies:** 12\
**Last updated:** [March 1, 2023, 2:30pm UTC](https://discourse.julialang.org/t/jump-gurobi-optimize-returns-infeasible-but-there-is-feasible-point/95019 "2023-03-01T14:30:13Z")

</div>

I am solving a very large (\>1M variables) linear program with Gurobi. After 3 hours, Gurobi returns with status INFEASIBLE. However, if I run primal\_feasibility\_report with all variables being zero, it returns an empty…

---

## [Why is \`UniformScaling\` not a subtype of \`AbstractArray\`?](https://discourse.julialang.org/t/why-is-uniformscaling-not-a-subtype-of-abstractarray/3412)

<div class="topic-metadata">

**Author:** [@Pbellive](https://discourse.julialang.org/u/Pbellive)\
**Replies:** 10\
**Last updated:** [March 1, 2023, 2:14pm UTC](https://discourse.julialang.org/t/why-is-uniformscaling-not-a-subtype-of-abstractarray/3412 "2023-03-01T14:14:24Z")

</div>

Say I have the following line of code in Julia C = A\*B where A and B are matrices, i.e. typeof(A) == typeof(B) \<: AbstractMatrix If A is a multiple of the appropriately sized identity matrix then it is convenient to …

---

## [Different return types in map vs comprehension for empty vectors](https://discourse.julialang.org/t/different-return-types-in-map-vs-comprehension-for-empty-vectors/95371)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 3\
**Last updated:** [March 1, 2023, 1:51pm UTC](https://discourse.julialang.org/t/different-return-types-in-map-vs-comprehension-for-empty-vectors/95371 "2023-03-01T13:51:42Z")

</div>

julia\> map(Base.OneTo, Int\[\]) Any\[\] julia\> \[Base.OneTo(x) for x in Int\[\]\] Base.OneTo{Int64}\[\] julia\> VERSION v"1.9.0-beta4" Why this difference?

---

## [Issues with broadcasting min and max operators to matrixes in JuMP expression](https://discourse.julialang.org/t/issues-with-broadcasting-min-and-max-operators-to-matrixes-in-jump-expression/95385)

<div class="topic-metadata">

**Author:** [@templenash](https://discourse.julialang.org/u/templenash)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 1:20pm UTC](https://discourse.julialang.org/t/issues-with-broadcasting-min-and-max-operators-to-matrixes-in-jump-expression/95385 "2023-03-01T13:20:13Z")

</div>

Hello, New to JuMP and trying to implement a matrix-based expression in JuMP that uses min and max operators broadcasted to the vector. Having trouble getting the min and max operators working in the ‘tx’ expression, wa…

---

## [Plotting surface without interpolating at discontinuity](https://discourse.julialang.org/t/plotting-surface-without-interpolating-at-discontinuity/95279)

<div class="topic-metadata">

**Author:** [@NoFishLikeIan](https://discourse.julialang.org/u/NoFishLikeIan)\
**Replies:** 5\
**Last updated:** [March 1, 2023, 10:15am UTC](https://discourse.julialang.org/t/plotting-surface-without-interpolating-at-discontinuity/95279 "2023-03-01T10:15:26Z")

</div>

I am attempting to plot a function that has a discontinuity, consider for example, function f(x, y) if x^2 + y^2 ≤ 1/2 return 1. else return 0. end end If I use the surface function from Plo…

---

## [Can I specify color of each rectangle in Makie.jl's heatmap?](https://discourse.julialang.org/t/can-i-specify-color-of-each-rectangle-in-makie-jls-heatmap/95314)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 4\
**Last updated:** [March 1, 2023, 10:33am UTC](https://discourse.julialang.org/t/can-i-specify-color-of-each-rectangle-in-makie-jls-heatmap/95314 "2023-03-01T10:33:22Z")

</div>

Hi all, I would like to plot a 2d map in Makie, where I can specify exactly a color in each rectangle. Something like a heatmap, where the color would be prescribed and not taken from a colormap. I have tried to fudge t…

---

## [CSV dependency not building](https://discourse.julialang.org/t/csv-dependency-not-building/95370)

<div class="topic-metadata">

**Author:** [@EffSugna](https://discourse.julialang.org/u/EffSugna)\
**Replies:** 1\
**Last updated:** [March 1, 2023, 9:54am UTC](https://discourse.julialang.org/t/csv-dependency-not-building/95370 "2023-03-01T09:54:34Z")

</div>

Hi all, New to Julia, relatively beginner programmer. Unable to get CSV dependency installed. Have tried as many work arounds as I can find on internet, older solutions to this problem with earlier versions of Julia …

---

## [Combinatorics -- what has changed?](https://discourse.julialang.org/t/combinatorics-what-has-changed/95355)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 5\
**Last updated:** [March 1, 2023, 8:58am UTC](https://discourse.julialang.org/t/combinatorics-what-has-changed/95355 "2023-03-01T08:58:50Z")

</div>

The following code used to work (some 1 year ago…) collect(Iterators.flatten((prod(u) for u in with\_replacement\_combinations(x,i)) for i in 0:3)) Now, the code works if I change the i range to 1:3, but then I miss valu…

---

## [Is there a library function to fit an identity-link NB1 regression model?](https://discourse.julialang.org/t/is-there-a-library-function-to-fit-an-identity-link-nb1-regression-model/92824)

<div class="topic-metadata">

**Author:** [@jacques1](https://discourse.julialang.org/u/jacques1)\
**Replies:** 8\
**Last updated:** [March 1, 2023, 8:37am UTC](https://discourse.julialang.org/t/is-there-a-library-function-to-fit-an-identity-link-nb1-regression-model/92824 "2023-03-01T08:37:14Z")

</div>

I would like to build an identity link negative binomial 1 glm model for some data (where negative binomial 1 means that the dispersion parameter is of the form (1 + theta)\*mean). This means I need to simultaneously cont…

---

## [Set up Sublime Text 4 for Julia](https://discourse.julialang.org/t/set-up-sublime-text-4-for-julia/91039)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 17\
**Last updated:** [March 1, 2023, 7:56am UTC](https://discourse.julialang.org/t/set-up-sublime-text-4-for-julia/91039 "2023-03-01T07:56:38Z")

</div>

I found a thread about setting up Sublime Text 3 now I am struggling to setting up correctly Sublime-Text 4 for Julia. First great thing I found was the language-sever support: LSP-julia And at that point I struggle a…

---

## [How to force a precompilation of a CxxWrap package](https://discourse.julialang.org/t/how-to-force-a-precompilation-of-a-cxxwrap-package/95332)

<div class="topic-metadata">

**Author:** [@peremato](https://discourse.julialang.org/u/peremato)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 1:42pm UTC](https://discourse.julialang.org/t/how-to-force-a-precompilation-of-a-cxxwrap-package/95332 "2023-02-28T13:42:10Z")

</div>

I am using CxxWrap to generate bindings for a C++ package, for which I create a wrapper dynamic library that is loaded in the julia module file with @wrapmodule(\<library\>). The problem is that re-creating the wrapper lib…

---

## [Pkg.upgrade\_manifest errors if the manifest doesn't need upgrading](https://discourse.julialang.org/t/pkg-upgrade-manifest-errors-if-the-manifest-doesnt-need-upgrading/83320)

<div class="topic-metadata">

**Author:** [@Mark\_Nahabedian](https://discourse.julialang.org/u/Mark_Nahabedian)\
**Replies:** 2\
**Last updated:** [March 1, 2023, 5:51am UTC](https://discourse.julialang.org/t/pkg-upgrade-manifest-errors-if-the-manifest-doesnt-need-upgrading/83320 "2023-03-01T05:51:47Z")

</div>

Why is this an error rather than a no-op or warning? Pkg.upgrade\_manifest()' ERROR: Format of manifest file at \`C:\\Users\\Mark Nahabedian\\NahaJuliaLib.jl\\Manifest.toml\` already up to date: manifest\_format == 2.0.0 Stackt…

---

## [Build system for Sublime Text running Julia in Terminus](https://discourse.julialang.org/t/build-system-for-sublime-text-running-julia-in-terminus/95362)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 0\
**Last updated:** [February 28, 2023, 11:00pm UTC](https://discourse.julialang.org/t/build-system-for-sublime-text-running-julia-in-terminus/95362 "2023-02-28T23:00:29Z")

</div>

This PA is intended for Sublime Text users who would like to run Julia in Terminus within the editor. Save this into the file Julia-REPL.sublime-build in the folder Data/Packages/User. { // This build system simply ope…

---

## [There could be better error messages for @constraints macro](https://discourse.julialang.org/t/there-could-be-better-error-messages-for-constraints-macro/95293)

<div class="topic-metadata">

**Author:** [@Charlie\_Ruppe](https://discourse.julialang.org/u/Charlie_Ruppe)\
**Replies:** 7\
**Last updated:** [March 1, 2023, 2:43am UTC](https://discourse.julialang.org/t/there-could-be-better-error-messages-for-constraints-macro/95293 "2023-03-01T02:43:21Z")

</div>

I believe it would be good to add to the error messages for the @constraints macro, to draw attention to the fact that a valid input for @constraint is not a valid input for @constraints. This is a mistake that is easy t…

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

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