# Latest

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

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

**Page:** 804

---

## [Efficient and in-place computation of A + adjoint(A)](https://discourse.julialang.org/t/efficient-and-in-place-computation-of-a-adjoint-a/93290)

<div class="topic-metadata">

**Author:** [@Ronan\_Gautier](https://discourse.julialang.org/u/Ronan_Gautier)\
**Replies:** 14\
**Last updated:** [January 24, 2023, 10:14am UTC](https://discourse.julialang.org/t/efficient-and-in-place-computation-of-a-adjoint-a/93290 "2023-01-24T10:14:04Z")

</div>

If A is any complex-valued matrix, is there a more efficient way of computing A + adjoint(A) in-place than the following ? function hermitian(A, A\_tmp) adjoint!(A\_tmp, A) A .+= A\_tmp end Benchmarking with using Li…

---

## [How should I account for measurement resolution (particularly in Measurements.jl)?](https://discourse.julialang.org/t/how-should-i-account-for-measurement-resolution-particularly-in-measurements-jl/93448)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 0\
**Last updated:** [January 24, 2023, 9:57am UTC](https://discourse.julialang.org/t/how-should-i-account-for-measurement-resolution-particularly-in-measurements-jl/93448 "2023-01-24T09:57:35Z")

</div>

Hi all! So I’m manipulating some data for my Master’s thesis. I integrated Unitful.js to keep track of the units of measure. Now I stumbled upon Measurements.jl to account for uncertainty propagation in my analysis. Acc…

---

## [How to save a large Float32 array on disk using data compression (failed attempt with JLD2)?](https://discourse.julialang.org/t/how-to-save-a-large-float32-array-on-disk-using-data-compression-failed-attempt-with-jld2/77413)

<div class="topic-metadata">

**Author:** [@rio](https://discourse.julialang.org/u/rio)\
**Replies:** 2\
**Last updated:** [January 24, 2023, 9:13am UTC](https://discourse.julialang.org/t/how-to-save-a-large-float32-array-on-disk-using-data-compression-failed-attempt-with-jld2/77413 "2023-01-24T09:13:54Z")

</div>

I would like to save a large array on disk using if possible some type of data compression to save disk space. Then, I would like to read the file in Julia for future usage. My attempt below using JLD2 works only for sma…

---

## [Adding Package](https://discourse.julialang.org/t/adding-package/93414)

<div class="topic-metadata">

**Author:** [@BadBoy](https://discourse.julialang.org/u/BadBoy)\
**Replies:** 2\
**Last updated:** [January 24, 2023, 8:54am UTC](https://discourse.julialang.org/t/adding-package/93414 "2023-01-24T08:54:53Z")

</div>

Why i cannot able to add Julia 1.8.2 ClassImbalance Package ?? Also i cannot add Python package ‘imblearn’ using Conda.add(" "). Please can someone help me out.

---

## [Not able to run Julia through Flask-Celery](https://discourse.julialang.org/t/not-able-to-run-julia-through-flask-celery/91849)

<div class="topic-metadata">

**Author:** [@shwetank\_verma](https://discourse.julialang.org/u/shwetank_verma)\
**Replies:** 5\
**Last updated:** [January 24, 2023, 7:43am UTC](https://discourse.julialang.org/t/not-able-to-run-julia-through-flask-celery/91849 "2023-01-24T07:43:16Z")

</div>

We are working on SaaS based platform implemented using Flask and Celery. In the backend, we have some part of the implementation written in julia. We integrated julia using a python library called julia==0.6.0 In the…

---

## [Using HDF5.jl and reading h5 data to Julia?](https://discourse.julialang.org/t/using-hdf5-jl-and-reading-h5-data-to-julia/93232)

<div class="topic-metadata">

**Author:** [@marianoarnaiz](https://discourse.julialang.org/u/marianoarnaiz)\
**Replies:** 9\
**Last updated:** [January 24, 2023, 6:28am UTC](https://discourse.julialang.org/t/using-hdf5-jl-and-reading-h5-data-to-julia/93232 "2023-01-24T06:28:23Z")

</div>

Hi all! I am new to .h5 data, so maybe I can get some help. I got some data from my research group. They work in Python and apparently somthin like this works for them: import h5py data, time, delta, name = read\_hd…

---

## [Switching between StaticArray and regular array depending on size (?)](https://discourse.julialang.org/t/switching-between-staticarray-and-regular-array-depending-on-size/93437)

<div class="topic-metadata">

**Author:** [@baptiste](https://discourse.julialang.org/u/baptiste)\
**Replies:** 5\
**Last updated:** [January 24, 2023, 3:49am UTC](https://discourse.julialang.org/t/switching-between-staticarray-and-regular-array-depending-on-size/93437 "2023-01-24T03:49:55Z")

</div>

I’m developing a package for physics simulations, where the core routine solves a dense linear system of complex equations, \\mathbf{A} \\mathbf{X} = \\mathbf{B} The matrix \\mathbf{A} can be small in some applications, …

---

## [Broadcast multi-valued function over array](https://discourse.julialang.org/t/broadcast-multi-valued-function-over-array/93435)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 1\
**Last updated:** [January 24, 2023, 3:02am UTC](https://discourse.julialang.org/t/broadcast-multi-valued-function-over-array/93435 "2023-01-24T03:02:37Z")

</div>

I have a multi-valued function, e.g., (x,y)-\>F(x,y)=(fx(x,y), fy(x,y)), where I would like to redefine its broadcast behavior, such that F.(xArray,yArray) returns (fx.(xArray,yArray), fy.(xArray, yArray)), instead of the…

---

## [Optimizing a physics experiment](https://discourse.julialang.org/t/optimizing-a-physics-experiment/93434)

<div class="topic-metadata">

**Author:** [@Yly](https://discourse.julialang.org/u/Yly)\
**Replies:** 4\
**Last updated:** [January 24, 2023, 1:41am UTC](https://discourse.julialang.org/t/optimizing-a-physics-experiment/93434 "2023-01-24T01:41:03Z")

</div>

I’m a member of an atomic physics lab, where a big part of our day to day work involves optimizing performance of a complicated machine with lots of “knobs”. We are currently not very sophisticated in how we perform the…

---

## [How to improve a Generator to be more memory efficient when it is collected?](https://discourse.julialang.org/t/how-to-improve-a-generator-to-be-more-memory-efficient-when-it-is-collected/92932)

<div class="topic-metadata">

**Author:** [@camilogarciabotero](https://discourse.julialang.org/u/camilogarciabotero)\
**Replies:** 21\
**Last updated:** [January 23, 2023, 6:26pm UTC](https://discourse.julialang.org/t/how-to-improve-a-generator-to-be-more-memory-efficient-when-it-is-collected/92932 "2023-01-23T18:26:18Z")

</div>

Hi all, I wrote a function that searches through a sequence (a BioSequences.LongDNA but could also be a String) for start codons (predefined as constants subsequence searches) and generates ranges of indices correspondi…

---

## [Hosting PlutoSliderServer on Digital Ocean](https://discourse.julialang.org/t/hosting-plutosliderserver-on-digital-ocean/85449)

<div class="topic-metadata">

**Author:** [@marcobonici](https://discourse.julialang.org/u/marcobonici)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 11:59pm UTC](https://discourse.julialang.org/t/hosting-plutosliderserver-on-digital-ocean/85449 "2023-01-23T23:59:00Z")

</div>

Hi there, I have been using @fonsp 's Pluto for a bit and I am quite satisfied with it. My next objective is setting up an interactive PlutoSliderServer to show some projects I have been working on. In order to achiev…

---

## [Share application on cluster: read-only access to JULIA\_DEPOT\_PATH?](https://discourse.julialang.org/t/share-application-on-cluster-read-only-access-to-julia-depot-path/93428)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 5\
**Last updated:** [January 23, 2023, 11:23pm UTC](https://discourse.julialang.org/t/share-application-on-cluster-read-only-access-to-julia-depot-path/93428 "2023-01-23T23:23:21Z")

</div>

To share a Julia CLI application with other users of the same cluster, is it OK if I ask them to invoke my Julia application from my bash script which sets JULIA\_DEPOT\_PATH to my own ~/.julia directory (using the absolut…

---

## [UnicodePlots.jl scatterplot! not mutating previous plot](https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432)

<div class="topic-metadata">

**Author:** [@jcbritobr](https://discourse.julialang.org/u/jcbritobr)\
**Replies:** 3\
**Last updated:** [January 23, 2023, 11:03pm UTC](https://discourse.julialang.org/t/unicodeplots-jl-scatterplot-not-mutating-previous-plot/93432 "2023-01-23T23:03:47Z")

</div>

Hello, good afternoon. Im trying to plot two series in a scatterplot using UnicodePlots and its not working. The first plot I created is not being mutating using the code below: here trying to mutate with other serie…

---

## [Why is ldiv! not updating the first argument when it is written in permutated format?](https://discourse.julialang.org/t/why-is-ldiv-not-updating-the-first-argument-when-it-is-written-in-permutated-format/93230)

<div class="topic-metadata">

**Author:** [@Amro](https://discourse.julialang.org/u/Amro)\
**Replies:** 21\
**Last updated:** [January 23, 2023, 11:00pm UTC](https://discourse.julialang.org/t/why-is-ldiv-not-updating-the-first-argument-when-it-is-written-in-permutated-format/93230 "2023-01-23T23:00:35Z")

</div>

Hi all, Is there any reason that x\_perm is not updated in ldiv! similarly as in x? A = sparse(\[1.0 0 0; 0 6 0; 1 0 9\]); b = ones(3); x = zeros(3); x\_perm = zeros(3); permV = \[3, 1, 2\]; # permV is an permutated vector l…

---

## [How to calculate Jacobian matrix of a vector function using "IntervalArithmetic.jl" package?](https://discourse.julialang.org/t/how-to-calculate-jacobian-matrix-of-a-vector-function-using-intervalarithmetic-jl-package/93400)

<div class="topic-metadata">

**Author:** [@Kanishk](https://discourse.julialang.org/u/Kanishk)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 10:06pm UTC](https://discourse.julialang.org/t/how-to-calculate-jacobian-matrix-of-a-vector-function-using-intervalarithmetic-jl-package/93400 "2023-01-23T22:06:01Z")

</div>

Hello Could you please help me to find out how to calculate the Jacobian matrix of below mentioned function using “IntervalArithmetic.jl” package in Julia. using IntervalArithmetic, Plots, ForwardDiff function model(x,…

---

## [Performing Global Sensitivity Analysis on a big reaction network imported as a SBML file](https://discourse.julialang.org/t/performing-global-sensitivity-analysis-on-a-big-reaction-network-imported-as-a-sbml-file/93000)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 21\
**Last updated:** [January 23, 2023, 9:22pm UTC](https://discourse.julialang.org/t/performing-global-sensitivity-analysis-on-a-big-reaction-network-imported-as-a-sbml-file/93000 "2023-01-23T21:22:06Z")

</div>

Hi everyone, I have been using Julia language for the last couple of months to simulate a big biochemical reaction network, which is generated by using BioNetGen (around 500 species and 170 parameters but the numbers ca…

---

## [Release: DataFramesMeta v 0.13.0](https://discourse.julialang.org/t/release-dataframesmeta-v-0-13-0/93427)

<div class="topic-metadata">

**Author:** [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 8:43pm UTC](https://discourse.julialang.org/t/release-dataframesmeta-v-0-13-0/93427 "2023-01-23T20:43:05Z")

</div>

Hi all, I am pleased to announce a new release of DataFramesMeta.jl, v 0.13.0 The release contains a bug-fix that has been plaguing users for a whole now, where .+ and .\* would cause UndefVarErrors. This has been fixed…

---

## [How to adjust individual axes for AlgebraOfGraphics faceted plots?](https://discourse.julialang.org/t/how-to-adjust-individual-axes-for-algebraofgraphics-faceted-plots/93418)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 8:36pm UTC](https://discourse.julialang.org/t/how-to-adjust-individual-axes-for-algebraofgraphics-faceted-plots/93418 "2023-01-23T20:36:49Z")

</div>

I have a faceted plot drawn with, where rows and columns are mapped to some variables so I have a grid of figures. They are drawn with linked axes: facet=(; linkxaxes=:none, linkyaxes=:minimal), However, some axes beco…

---

## [Accelerating an N^2 nested loop](https://discourse.julialang.org/t/accelerating-an-n-2-nested-loop/93399)

<div class="topic-metadata">

**Author:** [@jibe](https://discourse.julialang.org/u/jibe)\
**Replies:** 13\
**Last updated:** [January 23, 2023, 5:33pm UTC](https://discourse.julialang.org/t/accelerating-an-n-2-nested-loop/93399 "2023-01-23T17:33:24Z")

</div>

Given a fixed integer N, and some arrays \\{ x\_{i} , y\_{i} \\}\_{i}, I am interested in (repeatedly) computing expressions of the form \\dot{x}\_{i} = - \\sum\_{j=1}^{N} (y\_{i} \\!-\\! y\_{j})/d\_{ij}; \\;\\; \\dot{y}\_{i} = \\sum\_{j=1…

---

## [Paper: Myths and Legends in High-Performance Computing](https://discourse.julialang.org/t/paper-myths-and-legends-in-high-performance-computing/93407)

<div class="topic-metadata">

**Author:** [@paulmelis](https://discourse.julialang.org/u/paulmelis)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 7:14pm UTC](https://discourse.julialang.org/t/paper-myths-and-legends-in-high-performance-computing/93407 "2023-01-23T19:14:11Z")

</div>

Some interesting (and purposefully provoking) things in here :slight\_smile: Matsuoka et al., Myths and Legends in High-Performance Computing, Jan 6 2023

---

## [Replace variable name in expression](https://discourse.julialang.org/t/replace-variable-name-in-expression/93186)

<div class="topic-metadata">

**Author:** [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Replies:** 12\
**Last updated:** [January 23, 2023, 7:10pm UTC](https://discourse.julialang.org/t/replace-variable-name-in-expression/93186 "2023-01-23T19:10:52Z")

</div>

I have a Julia expression that references the variable x, and need to replace all x references to y. However, I don’t find a reasonable way to do this. MacroTools is promising: julia\> MacroTools.replace(:( x + 1 ), :x,…

---

## [What is happening in this method definition "(generic function with 0 methods)"?](https://discourse.julialang.org/t/what-is-happening-in-this-method-definition-generic-function-with-0-methods/93363)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [January 23, 2023, 6:59pm UTC](https://discourse.julialang.org/t/what-is-happening-in-this-method-definition-generic-function-with-0-methods/93363 "2023-01-23T18:59:47Z")

</div>

julia\> struct S{T} end julia\> T(::S{T}) where {T \<: Any} = one(T) T (generic function with 0 methods) It seems Julia is confused by the function name being the same as a type parameter. I guess Julia should throw an er…

---

## [Which optimization package to use for constrained least squares?](https://discourse.julialang.org/t/which-optimization-package-to-use-for-constrained-least-squares/70710)

<div class="topic-metadata">

**Author:** [@robsmith11](https://discourse.julialang.org/u/robsmith11)\
**Replies:** 5\
**Last updated:** [January 23, 2023, 6:04pm UTC](https://discourse.julialang.org/t/which-optimization-package-to-use-for-constrained-least-squares/70710 "2023-01-23T18:04:18Z")

</div>

I want to minimize (A\*x - b)^2 subject to x ∈ \[lower, upper\] and sum(x) \<= 1. With Optim.jl, I can easily solve this problem with the box constraints, but I don’t see a way to add the constraint on sum(x). Should I be …

---

## [Warning using pythonplot() backend with Plots.jl](https://discourse.julialang.org/t/warning-using-pythonplot-backend-with-plots-jl/92412)

<div class="topic-metadata">

**Author:** [@alusiani](https://discourse.julialang.org/u/alusiani)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 5:24pm UTC](https://discourse.julialang.org/t/warning-using-pythonplot-backend-with-plots-jl/92412 "2023-01-23T17:24:03Z")

</div>

Hi, with this simple example using Plots; pythonplot() scatter( \[1\], \[1\], ylims = (0, 2), xlims = (0, 2), ) I get the following warning sys:1: UserWarning: No data for colormapping provided via 'c'. Parameters…

---

## [BoundsError for J2Plasticity](https://discourse.julialang.org/t/boundserror-for-j2plasticity/93408)

<div class="topic-metadata">

**Author:** [@Prashanth\_Sudeendran](https://discourse.julialang.org/u/Prashanth_Sudeendran)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 5:07pm UTC](https://discourse.julialang.org/t/boundserror-for-j2plasticity/93408 "2023-01-23T17:07:48Z")

</div>

Hello all, I was creating a small variation for a project that I am working for J2Plasticity. I ran into this error and I was unable to overcome this and find some possible ways to get out of this situation. I have po…

---

## [Transform multiple columns of a DataFrame using the same function](https://discourse.julialang.org/t/transform-multiple-columns-of-a-dataframe-using-the-same-function/61550)

<div class="topic-metadata">

**Author:** [@anon71627001](https://discourse.julialang.org/u/anon71627001)\
**Replies:** 12\
**Last updated:** [January 23, 2023, 4:45pm UTC](https://discourse.julialang.org/t/transform-multiple-columns-of-a-dataframe-using-the-same-function/61550 "2023-01-23T16:45:38Z")

</div>

I’d like to transform several columns “in-place” using the same function. For example, if I have using DataFrames df = DataFrame(a = 1:3, b = 4:6, c = 7:9) and want to double columns a and c and replace those columns w…

---

## [Change decimal separator when plotting with PyPlot (or PythonPlot)](https://discourse.julialang.org/t/change-decimal-separator-when-plotting-with-pyplot-or-pythonplot/93367)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 8\
**Last updated:** [January 23, 2023, 2:57pm UTC](https://discourse.julialang.org/t/change-decimal-separator-when-plotting-with-pyplot-or-pythonplot/93367 "2023-01-23T14:57:01Z")

</div>

Hello everybody. When the time comes to publish the thesis, we may be faced with a big surprise: the University Library requires the decimal separator to be a comma, and they don’t want any excuses. So, hundreds of graph…

---

## [Nonlinear constrained optimization without gradient](https://discourse.julialang.org/t/nonlinear-constrained-optimization-without-gradient/93396)

<div class="topic-metadata">

**Author:** [@fordonez](https://discourse.julialang.org/u/fordonez)\
**Replies:** 3\
**Last updated:** [January 23, 2023, 1:16pm UTC](https://discourse.julialang.org/t/nonlinear-constrained-optimization-without-gradient/93396 "2023-01-23T13:16:42Z")

</div>

Hi everyone. I’m trying to do constrained optimization like: \\min\_{x} f(x) s.t. c(x)\\le u\_x I would like to solve the problem only with the function and constraint. I tried with Optim and NLopt, and the examples I…

---

## [How to precisely control Plot size in mm?](https://discourse.julialang.org/t/how-to-precisely-control-plot-size-in-mm/87507)

<div class="topic-metadata">

**Author:** [@JianghuiDu](https://discourse.julialang.org/u/JianghuiDu)\
**Replies:** 4\
**Last updated:** [January 23, 2023, 12:29pm UTC](https://discourse.julialang.org/t/how-to-precisely-control-plot-size-in-mm/87507 "2023-01-23T12:29:08Z")

</div>

How do I precisely control the size of the plot in mm? using Plots gr() p = scatter(rand(100),randn(100), size = (1000,1000), dpi = 300, title = "rand", titlefontsize = 9) savefig(p, "p.png") Here I’m expecting the fin…

---

## [CxxWrap tutorial - matrix input and output args](https://discourse.julialang.org/t/cxxwrap-tutorial-matrix-input-and-output-args/93336)

<div class="topic-metadata">

**Author:** [@frli8848](https://discourse.julialang.org/u/frli8848)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 12:02pm UTC](https://discourse.julialang.org/t/cxxwrap-tutorial-matrix-input-and-output-args/93336 "2023-01-23T12:02:21Z")

</div>

Hi All, I’m trying to create Julia bindings using CxxWrap for a project (GitHub - frli8848/DREAM: The DREAM toolbox is a free open source acoustic field simulation tool). Is there a good tutorial on how to do this? I ba…

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

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