# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=169

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

**Page:** 170

---

## [Makie - How to clear ax whenever slider value change?](https://discourse.julialang.org/t/makie-how-to-clear-ax-whenever-slider-value-change/103274)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 3\
**Last updated:** [August 28, 2023, 10:31am UTC](https://discourse.julialang.org/t/makie-how-to-clear-ax-whenever-slider-value-change/103274 "2023-08-28T10:31:22Z")

</div>

Hello, How can I clear the ‘ax’ whenever the slider value changes? I don’t want multiple lines at the same time on the scene. The code is using GLMakie # Parameters local m = 0.0 local c = 0.0 # # Create the plot fig…

---

## [Download images from GitHub from Colab](https://discourse.julialang.org/t/download-images-from-github-from-colab/103280)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 0\
**Last updated:** [August 28, 2023, 9:16am UTC](https://discourse.julialang.org/t/download-images-from-github-from-colab/103280 "2023-08-28T09:16:34Z")

</div>

Hi all, I have a number of jpegs in a GitHub repository that I would like to download in a notebook on Colab, using Julia. I know how to do this using Python but cannot find the Julia equivalent (if it exists). Does anyo…

---

## [State and Parameter vectors for SciML applications](https://discourse.julialang.org/t/state-and-parameter-vectors-for-sciml-applications/69463)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 5\
**Last updated:** [August 28, 2023, 9:05am UTC](https://discourse.julialang.org/t/state-and-parameter-vectors-for-sciml-applications/69463 "2023-08-28T09:05:33Z")

</div>

New State & Parameter Vector Types I’m hoping for others’ thoughts on this idea, including suggestions, alternatives, rotten fruit, etc. All input is welcome. The “Problem” Users have tried to add unit handling to their…

---

## [Does Flux.jl layers make use of tensor cores in Nvidia GPUs?](https://discourse.julialang.org/t/does-flux-jl-layers-make-use-of-tensor-cores-in-nvidia-gpus/103249)

<div class="topic-metadata">

**Author:** [@lepton01](https://discourse.julialang.org/u/lepton01)\
**Replies:** 1\
**Last updated:** [August 28, 2023, 7:31am UTC](https://discourse.julialang.org/t/does-flux-jl-layers-make-use-of-tensor-cores-in-nvidia-gpus/103249 "2023-08-28T07:31:18Z")

</div>

I was searching for an answer in the Flux.jl, CUDA.jl, cuDNN.jl, but only found \[https://juliagpu.org/2020-10-02-cuda\_2.0/#low--and-mixed-precision-operations\] which talks about independent GPU operations using CUDA.jl. …

---

## [Evaluate a formula inside a dataframes to create a new column](https://discourse.julialang.org/t/evaluate-a-formula-inside-a-dataframes-to-create-a-new-column/103208)

<div class="topic-metadata">

**Author:** [@gaspardelanuit](https://discourse.julialang.org/u/gaspardelanuit)\
**Replies:** 15\
**Last updated:** [August 27, 2023, 10:49pm UTC](https://discourse.julialang.org/t/evaluate-a-formula-inside-a-dataframes-to-create-a-new-column/103208 "2023-08-27T22:49:24Z")

</div>

I have a dataset that includes a column which has a formula. The formula is a recipe to get a new column from existing columns. Essentially the data looks like the following \> df = DataFrame(l=1:8, a=\[1, 1, 1, 2, 2, 1…

---

## [Fix() variables not working with COSMO or Clarabel](https://discourse.julialang.org/t/fix-variables-not-working-with-cosmo-or-clarabel/103255)

<div class="topic-metadata">

**Author:** [@J\_T](https://discourse.julialang.org/u/J_T)\
**Replies:** 1\
**Last updated:** [August 27, 2023, 12:44pm UTC](https://discourse.julialang.org/t/fix-variables-not-working-with-cosmo-or-clarabel/103255 "2023-08-27T12:44:51Z")

</div>

I discoverd the issue trying a non-linear problem, but I can reproduce it with a simple linear example. using JuMP, Tulip, COSMO, Clarabel # const MT = Float64 const MT = Float32 # enough curvature to be interesting x …

---

## [The method JuMP classifies linear/affine/quadratic/nonlinear... types of constraints](https://discourse.julialang.org/t/the-method-jump-classifies-linear-affine-quadratic-nonlinear-types-of-constraints/103233)

<div class="topic-metadata">

**Author:** [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Replies:** 3\
**Last updated:** [August 26, 2023, 11:08pm UTC](https://discourse.julialang.org/t/the-method-jump-classifies-linear-affine-quadratic-nonlinear-types-of-constraints/103233 "2023-08-26T23:08:19Z")

</div>

I am learning to use Julia optimization package and found that JuMP can identify the above types of constraints from the input constraint expression, I do not quite understand how JuMP does it since I haven’t located the…

---

## [Problems with Generic numeric type in JuMP](https://discourse.julialang.org/t/problems-with-generic-numeric-type-in-jump/103221)

<div class="topic-metadata">

**Author:** [@J\_T](https://discourse.julialang.org/u/J_T)\
**Replies:** 2\
**Last updated:** [August 26, 2023, 9:45pm UTC](https://discourse.julialang.org/t/problems-with-generic-numeric-type-in-jump/103221 "2023-08-26T21:45:58Z")

</div>

For type T = Float64 the following works, but it fails for either T = Float32 and T = BigFloat: using JuMP, COSMO m = Model( COSMO.Optimizer{T} @variable( m, t \>= zero(T) ) @objective( m, Min, t ) optimize!( m ) It als…

---

## [Not using constants in trees in SymbolicRegression.jl](https://discourse.julialang.org/t/not-using-constants-in-trees-in-symbolicregression-jl/103231)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 0\
**Last updated:** [August 26, 2023, 7:55pm UTC](https://discourse.julialang.org/t/not-using-constants-in-trees-in-symbolicregression-jl/103231 "2023-08-26T19:55:25Z")

</div>

Hi, I wonder how can we tell SymbolicRegression.jl to not use any constants (e.g., 2.0, 15.6) when creating its trees, only the variables. I am using SRRegressor via MLJ interface. Thank you. Regards

---

## [Fix \`ylims!\` so zooming affects only \`xlims!\` (Makie.jl 2D)](https://discourse.julialang.org/t/fix-ylims-so-zooming-affects-only-xlims-makie-jl-2d/103226)

<div class="topic-metadata">

**Author:** [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Replies:** 1\
**Last updated:** [August 26, 2023, 6:42pm UTC](https://discourse.julialang.org/t/fix-ylims-so-zooming-affects-only-xlims-makie-jl-2d/103226 "2023-08-26T18:42:23Z")

</div>

How can fix ylims! so zooming affects only xlims! in Makie 2D? Or alternatively zoom only horizontally? I have a very long trace plot, where this would come in handy.

---

## [Making Float16 LU better in generic\_lu.jl](https://discourse.julialang.org/t/making-float16-lu-better-in-generic-lu-jl/102612)

<div class="topic-metadata">

**Author:** [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Replies:** 3\
**Last updated:** [August 26, 2023, 3:11pm UTC](https://discourse.julialang.org/t/making-float16-lu-better-in-generic-lu-jl/102612 "2023-08-26T15:11:18Z")

</div>

I finally stumbled across generic\_lufact! here. This seems to be where Float16 goes to die. I made a copy and threaded the critical loop and things got a lot better for half precision work on my Mac. Threading this fun…

---

## [How to perform GPU overlap operations on the custom kernel function?](https://discourse.julialang.org/t/how-to-perform-gpu-overlap-operations-on-the-custom-kernel-function/102855)

<div class="topic-metadata">

**Author:** [@fred\_wu](https://discourse.julialang.org/u/fred_wu)\
**Replies:** 8\
**Last updated:** [August 26, 2023, 9:23am UTC](https://discourse.julialang.org/t/how-to-perform-gpu-overlap-operations-on-the-custom-kernel-function/102855 "2023-08-26T09:23:21Z")

</div>

Hi, I’m trying to use different GPU kernels for overlapping operations because a single kernel usually cannot fully utilize GPU hardware resources. I defined a kernel function and tried the following, but the running ti…

---

## [Wrong links to the Statistics standard library](https://discourse.julialang.org/t/wrong-links-to-the-statistics-standard-library/103009)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 4\
**Last updated:** [August 26, 2023, 9:14am UTC](https://discourse.julialang.org/t/wrong-links-to-the-statistics-standard-library/103009 "2023-08-26T09:14:42Z")

</div>

It seems like the all code source links in the Julia manual for the Statistics module have changed, none of them works. For example for the first one Statistics.std this link does not work. Not even here is possible to …

---

## [Changing the system size over time in ModellingToolkit](https://discourse.julialang.org/t/changing-the-system-size-over-time-in-modellingtoolkit/103100)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 3\
**Last updated:** [August 26, 2023, 8:06am UTC](https://discourse.julialang.org/t/changing-the-system-size-over-time-in-modellingtoolkit/103100 "2023-08-26T08:06:04Z")

</div>

I apologise if this is answered in the documentation but I couldn’t find it. I’m modelling a population of biological cells which divide and die over time. These events can be triggered by continious callbacks for examp…

---

## [Extract Turing model to LogDensityProblems and transform variables](https://discourse.julialang.org/t/extract-turing-model-to-logdensityproblems-and-transform-variables/103201)

<div class="topic-metadata">

**Author:** [@YuvalBernard](https://discourse.julialang.org/u/YuvalBernard)\
**Replies:** 2\
**Last updated:** [August 26, 2023, 7:46am UTC](https://discourse.julialang.org/t/extract-turing-model-to-logdensityproblems-and-transform-variables/103201 "2023-08-26T07:46:57Z")

</div>

Hi all, As some sort of continuation of Recommended way to extract logprob and build gradients in Turing.jl? I wish to extract the log probability density from a Turing model (to use with Pathfider.jl for example), an…

---

## [Why does GPU addition slows down as the array get larger compared to other methods?](https://discourse.julialang.org/t/why-does-gpu-addition-slows-down-as-the-array-get-larger-compared-to-other-methods/103122)

<div class="topic-metadata">

**Author:** [@Reza-Reza](https://discourse.julialang.org/u/Reza-Reza)\
**Replies:** 7\
**Last updated:** [August 25, 2023, 8:53pm UTC](https://discourse.julialang.org/t/why-does-gpu-addition-slows-down-as-the-array-get-larger-compared-to-other-methods/103122 "2023-08-25T20:53:42Z")

</div>

Consider the three functions below which add two arrays sequentially, using threads, and using GPU: using BenchmarkTools using CUDA function sequential\_add!(y, x) for i in eachindex(y, x) @inbounds y\[i\] += …

---

## [Single-color 3D surface plot](https://discourse.julialang.org/t/single-color-3d-surface-plot/103166)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 10\
**Last updated:** [August 25, 2023, 6:01pm UTC](https://discourse.julialang.org/t/single-color-3d-surface-plot/103166 "2023-08-25T18:01:28Z")

</div>

I’m trying to plot a 3D surface as a single, semi-transparent color. Here’s what I’ve tried: using PlotlyJS f(x, y) = 10 .\* sin.(x./5) .+ 8 .\* cos.(y./7) .+ y./30; xs = ys = 0:1:100; zs = f.(xs', ys); plot(surface(x=…

---

## [Help on how to describe a Matrix used for 2D Finite Differences using BlockBandedMatrices.jl](https://discourse.julialang.org/t/help-on-how-to-describe-a-matrix-used-for-2d-finite-differences-using-blockbandedmatrices-jl/103086)

<div class="topic-metadata">

**Author:** [@Tomusz](https://discourse.julialang.org/u/Tomusz)\
**Replies:** 9\
**Last updated:** [August 25, 2023, 5:48pm UTC](https://discourse.julialang.org/t/help-on-how-to-describe-a-matrix-used-for-2d-finite-differences-using-blockbandedmatrices-jl/103086 "2023-08-25T17:48:46Z")

</div>

Some context I’m dealing with the solution of a Poisson Equation with structure: ∇ψ\[i, j\] = -ω\[i,j\] =\> (∂²ψ/∂x² + ∂²ψ/∂y²) = -ω\[i,j\] To represent the LHS, i’m using a Matrix that contains the coefficients used to calc…

---

## [Callback based PDE BC mutation](https://discourse.julialang.org/t/callback-based-pde-bc-mutation/103194)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 1\
**Last updated:** [August 25, 2023, 4:12pm UTC](https://discourse.julialang.org/t/callback-based-pde-bc-mutation/103194 "2023-08-25T16:12:54Z")

</div>

I’ve been trying to figure out how to pass time dependent boundary conditions into MethodOfLines advection/diffusion/reaction problems so I can mutate them during parameter optimization without having to rediscretize the…

---

## [Creating a sparse array with JuMP.QuadExpr elements](https://discourse.julialang.org/t/creating-a-sparse-array-with-jump-quadexpr-elements/103171)

<div class="topic-metadata">

**Author:** [@JPG](https://discourse.julialang.org/u/JPG)\
**Replies:** 2\
**Last updated:** [August 25, 2023, 3:58pm UTC](https://discourse.julialang.org/t/creating-a-sparse-array-with-jump-quadexpr-elements/103171 "2023-08-25T15:58:46Z")

</div>

Hello all, I’m very new to Julia and basically I want to define an empty sparse matrix of N x N and fill it up at certain points in the diagonal with just JuMP.QuadExpr elements. I know I can do: A = spzeros(N, N) but …

---

## [Callback for Mass-Matrix Differential-Algebraic Equations (DAEs) differentialequations.jl](https://discourse.julialang.org/t/callback-for-mass-matrix-differential-algebraic-equations-daes-differentialequations-jl/103193)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 6\
**Last updated:** [August 25, 2023, 3:44pm UTC](https://discourse.julialang.org/t/callback-for-mass-matrix-differential-algebraic-equations-daes-differentialequations-jl/103193 "2023-08-25T15:44:34Z")

</div>

Hello How can do I use callback for mass matrix DAE? I tried using callback and got the following error Without a callback, the system is considered without error (The same callback works for ODE without errors) ERRO…

---

## [MTK Easy way to get required states of observed state](https://discourse.julialang.org/t/mtk-easy-way-to-get-required-states-of-observed-state/102746)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 5\
**Last updated:** [August 25, 2023, 1:53pm UTC](https://discourse.julialang.org/t/mtk-easy-way-to-get-required-states-of-observed-state/102746 "2023-08-25T13:53:01Z")

</div>

Hello, Say I have an MTK model with a state x that is dependent on states y and z. After structural simplification x and it’s equation are moved to observed, y and z are still present in the simplified solution. I save …

---

## [Speed issues with MPI.jl on slurm cluster](https://discourse.julialang.org/t/speed-issues-with-mpi-jl-on-slurm-cluster/103068)

<div class="topic-metadata">

**Author:** [@gerhardu](https://discourse.julialang.org/u/gerhardu)\
**Replies:** 4\
**Last updated:** [August 25, 2023, 9:55am UTC](https://discourse.julialang.org/t/speed-issues-with-mpi-jl-on-slurm-cluster/103068 "2023-08-25T09:55:49Z")

</div>

Hello, I wrote MPI.jl parallel code (my first one) to be used on a Slurm cluster. I ran the code on my notebook and on the cluster using one node. It turns out that the code executes 6 times slower on the cluster and …

---

## [Normalize a large matrix by row](https://discourse.julialang.org/t/normalize-a-large-matrix-by-row/102997)

<div class="topic-metadata">

**Author:** [@A\_M](https://discourse.julialang.org/u/A_M)\
**Replies:** 10\
**Last updated:** [August 25, 2023, 8:21am UTC](https://discourse.julialang.org/t/normalize-a-large-matrix-by-row/102997 "2023-08-25T08:21:51Z")

</div>

How can I use a CUDA kernel to normalize a big matrix A by row and use the same scaling factors to a vector b?

---

## [Performance of eachrow(::DataFrame)](https://discourse.julialang.org/t/performance-of-eachrow-dataframe/103165)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 4\
**Last updated:** [August 24, 2023, 7:55pm UTC](https://discourse.julialang.org/t/performance-of-eachrow-dataframe/103165 "2023-08-24T19:55:02Z")

</div>

DataFrames are stored with each column contiguous in memory so that implementation iterating over eachrow will be slow. Instead search through df.patient\_id.

---

## [Setting up implicit solvers to beat the performance of explicit solvers](https://discourse.julialang.org/t/setting-up-implicit-solvers-to-beat-the-performance-of-explicit-solvers/102392)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 10\
**Last updated:** [August 24, 2023, 4:16pm UTC](https://discourse.julialang.org/t/setting-up-implicit-solvers-to-beat-the-performance-of-explicit-solvers/102392 "2023-08-24T16:16:45Z")

</div>

We are trying to benchmark implicit solvers for an ice flow diffusivity PDE. So far we’ve stuck to explicit ones, but now we would like to cover all of them. Since many implicit solvers from DifferentialEquations.jl requ…

---

## [CUDA fft wrapper problem](https://discourse.julialang.org/t/cuda-fft-wrapper-problem/29540)

<div class="topic-metadata">

**Author:** [@Michael\_Benton](https://discourse.julialang.org/u/Michael_Benton)\
**Replies:** 1\
**Last updated:** [August 24, 2023, 12:56pm UTC](https://discourse.julialang.org/t/cuda-fft-wrapper-problem/29540 "2023-08-24T12:56:29Z")

</div>

A 1d fft across the 2nd dimension of 3 dimensional CuArray is not enabled by the wrapper (ERROR: ArgumentError: batching dims must be sequential) to reproduce: dim = 2 data = CuArrays.rand(ComplexF32,512,512,512); my…

---

## [Running Machine Learning Experiments with Flux](https://discourse.julialang.org/t/running-machine-learning-experiments-with-flux/102661)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 5\
**Last updated:** [August 24, 2023, 9:55am UTC](https://discourse.julialang.org/t/running-machine-learning-experiments-with-flux/102661 "2023-08-24T09:55:11Z")

</div>

I’m running some ML experiments to draw certain conclusions about whether my new method works as expected. I would like, so to speak, to run multiple experiments in the same file, as it would otherwise be cumbersome. The…

---

## [Memory allocation, left-division operator](https://discourse.julialang.org/t/memory-allocation-left-division-operator/103111)

<div class="topic-metadata">

**Author:** [@AdaemmerP](https://discourse.julialang.org/u/AdaemmerP)\
**Replies:** 5\
**Last updated:** [August 24, 2023, 8:50am UTC](https://discourse.julialang.org/t/memory-allocation-left-division-operator/103111 "2023-08-24T08:50:22Z")

</div>

Why does the left-division operator allocates comparatively that much memory? # Data x = \[ones(1000) rand(1000)\] y = rand(1000) # Benchmark I (left-divison) @btime ($x \\ $y) 4.089 μs (29 allocations: 91.67 KiB) 2-ele…

---

## [OneAPI FPGA support](https://discourse.julialang.org/t/oneapi-fpga-support/103126)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 3\
**Last updated:** [August 24, 2023, 7:43am UTC](https://discourse.julialang.org/t/oneapi-fpga-support/103126 "2023-08-24T07:43:48Z")

</div>

It seems like the julia bindings for OneAPI have come a long way (very cool!) I noticed that the current framework is validated to work with the Intel Compute Framework (which includes various Intel GPUs). Does anyone k…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=168)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=170)
