# Specific Domains

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

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

**Page:** 127

---

## [Understanding the use of \`SDEFunction\`](https://discourse.julialang.org/t/understanding-the-use-of-sdefunction/111559)

<div class="topic-metadata">

**Author:** [@james](https://discourse.julialang.org/u/james)\
**Replies:** 2\
**Last updated:** [March 16, 2024, 12:33pm UTC](https://discourse.julialang.org/t/understanding-the-use-of-sdefunction/111559 "2024-03-16T12:33:38Z")

</div>

I am learning how to work with SDEs in julia and am a bit confused: In the documentation, both of SDEProblem’s constructors take two functions f,g as their first two arguments, where f should be the drift and g the nois…

---

## [How to copy Mathematica expression into a Julia function](https://discourse.julialang.org/t/how-to-copy-mathematica-expression-into-a-julia-function/97670)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 7\
**Last updated:** [March 16, 2024, 6:03am UTC](https://discourse.julialang.org/t/how-to-copy-mathematica-expression-into-a-julia-function/97670 "2024-03-16T06:03:13Z")

</div>

Very similar questions were asked before in the discourse (see e.g. this, this, and this). Answers point to MathLink where one can plug an expression like this using MathLink sqx = W\`Sqrt\[x\]\` and then evaluate this fun…

---

## [Error when combining single row with multiple row CSV file into DataFrames](https://discourse.julialang.org/t/error-when-combining-single-row-with-multiple-row-csv-file-into-dataframes/111664)

<div class="topic-metadata">

**Author:** [@phantom](https://discourse.julialang.org/u/phantom)\
**Replies:** 6\
**Last updated:** [March 15, 2024, 8:48pm UTC](https://discourse.julialang.org/t/error-when-combining-single-row-with-multiple-row-csv-file-into-dataframes/111664 "2024-03-15T20:48:29Z")

</div>

Hi! I am combining several .csv files into DataFrames. Each file has uniform column numbers and data types. Everything works but when I try to combine a .csv file that contains a single row with one that contains mult…

---

## [Nonlinear Optimization with Many Constraints + Autodifferentiation: Which Julia Solution?](https://discourse.julialang.org/t/nonlinear-optimization-with-many-constraints-autodifferentiation-which-julia-solution/110678)

<div class="topic-metadata">

**Author:** [@SebKrantz](https://discourse.julialang.org/u/SebKrantz)\
**Replies:** 23\
**Last updated:** [March 15, 2024, 6:42pm UTC](https://discourse.julialang.org/t/nonlinear-optimization-with-many-constraints-autodifferentiation-which-julia-solution/110678 "2024-03-15T18:42:18Z")

</div>

I’m trying to rewrite a Matlab Package in Julia which solves a high-dimensional non-linear optimal transport problem in order to maximize economic welfare as predicted by a linked quantiative trade model. In particular, …

---

## [Reinterpret byte to Float in julia](https://discourse.julialang.org/t/reinterpret-byte-to-float-in-julia/111670)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [March 15, 2024, 4:54pm UTC](https://discourse.julialang.org/t/reinterpret-byte-to-float-in-julia/111670 "2024-03-15T16:54:21Z")

</div>

I have data of UInt8 type and i want to convert it into Float64. typeof(data) = Vector{UInt8} My data looks like :point\_right: data = read(f, N\_points \* 9) = UInt8\[0xdf, 0xfd, 0x5a, 0x80, 0x1c, 0x68, 0x86, 0x3f, 0xb6,…

---

## [Solver for Elliptic PDE with Dirichlet and Neumann BCs](https://discourse.julialang.org/t/solver-for-elliptic-pde-with-dirichlet-and-neumann-bcs/111668)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 0\
**Last updated:** [March 15, 2024, 3:38pm UTC](https://discourse.julialang.org/t/solver-for-elliptic-pde-with-dirichlet-and-neumann-bcs/111668 "2024-03-15T15:38:43Z")

</div>

Hello, I am interested in developing a finite difference solver for a 2D elliptic PDE (~ Darcy flow) from (https://arxiv.org/pdf/2205.09322.pdf). Do you have recommended packages to solve this PDE? The PDE is given by: …

---

## [How to open .dlb extension file in Julia?](https://discourse.julialang.org/t/how-to-open-dlb-extension-file-in-julia/111644)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 6\
**Last updated:** [March 15, 2024, 2:04pm UTC](https://discourse.julialang.org/t/how-to-open-dlb-extension-file-in-julia/111644 "2024-03-15T14:04:18Z")

</div>

Hi , I want to open .dlb extension file using Julia and extract some data on it. I have .dlb file in my laptop. This data.6000.dlb file is in this tar. See Python code below :point\_down: def load\_data(directory, N\_r, …

---

## [Readtable with DataFrame v0.21.3](https://discourse.julialang.org/t/readtable-with-dataframe-v0-21-3/42226)

<div class="topic-metadata">

**Author:** [@Ernesto\_Diaz](https://discourse.julialang.org/u/Ernesto_Diaz)\
**Replies:** 4\
**Last updated:** [March 15, 2024, 2:03pm UTC](https://discourse.julialang.org/t/readtable-with-dataframe-v0-21-3/42226 "2024-03-15T14:03:09Z")

</div>

I need read a .txt file. The structure: red=DataFrames.readtable(“I:/Julia/CHO/cho1.txt”,allowcomments=true,separator=’ ') worked with DataFrames v0.20.0 but not run with v0.21.3 (UndefVarError: readtable not defined) …

---

## [How to create a string with observable values in GLMakie?](https://discourse.julialang.org/t/how-to-create-a-string-with-observable-values-in-glmakie/111525)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 7\
**Last updated:** [March 15, 2024, 12:28pm UTC](https://discourse.julialang.org/t/how-to-create-a-string-with-observable-values-in-glmakie/111525 "2024-03-15T12:28:49Z")

</div>

Hello, I am using GLMakie to make an interactive plot. I would like to make a label to a slider that shows the actual value of an observable. But how do I extract the value so that it can be rounded and displayed? In t…

---

## [Cannot change linestyle of line using attributes.linestyle in GLMakie](https://discourse.julialang.org/t/cannot-change-linestyle-of-line-using-attributes-linestyle-in-glmakie/111561)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 2\
**Last updated:** [March 15, 2024, 7:43am UTC](https://discourse.julialang.org/t/cannot-change-linestyle-of-line-using-attributes-linestyle-in-glmakie/111561 "2024-03-15T07:43:47Z")

</div>

I want to change some attributes of lines that have already been drawn. I can change the color and line width by overwriting the values of line attributes.color and attributes.linewidth. However, I cannot change the line…

---

## [NaNs during MCMC sampling?](https://discourse.julialang.org/t/nans-during-mcmc-sampling/111530)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 2\
**Last updated:** [March 15, 2024, 6:09am UTC](https://discourse.julialang.org/t/nans-during-mcmc-sampling/111530 "2024-03-15T06:09:40Z")

</div>

Hi, I’m trying to perform model calibration with MCMC. When sampling from my posterior, I find that after about 1 sample, the MCMC sampler produces NaNs. I’m quiet new to MCMC sampling and am wondering whether there ar…

---

## [From GLMakie v0.4.7 to GLMakie v0.9.9](https://discourse.julialang.org/t/from-glmakie-v0-4-7-to-glmakie-v0-9-9/111607)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 19\
**Last updated:** [March 14, 2024, 8:15pm UTC](https://discourse.julialang.org/t/from-glmakie-v0-4-7-to-glmakie-v0-9-9/111607 "2024-03-14T20:15:26Z")

</div>

I am porting this code from GLMakie v0.4.7 to GLMakie v0.9.9. This means from Makie 0.15.3 to Makie 0.21.0 (I think). See also: Migrating from GLMakie 0.4.7 to current I tried this already two years ago and failed, bu…

---

## [How to vectorize any function on the GPU with CUDA.jl?](https://discourse.julialang.org/t/how-to-vectorize-any-function-on-the-gpu-with-cuda-jl/111490)

<div class="topic-metadata">

**Author:** [@RYB](https://discourse.julialang.org/u/RYB)\
**Replies:** 3\
**Last updated:** [March 14, 2024, 7:01pm UTC](https://discourse.julialang.org/t/how-to-vectorize-any-function-on-the-gpu-with-cuda-jl/111490 "2024-03-14T19:01:38Z")

</div>

Hello, I just started programming with CUDA.jl and would like to understand how to vectorize an operation in a GPU Kernel. In particular, given some function func(), is there a way to vectorize this function to apply el…

---

## [Why GPU still OOM when using CUDA unified memory?](https://discourse.julialang.org/t/why-gpu-still-oom-when-using-cuda-unified-memory/111543)

<div class="topic-metadata">

**Author:** [@pxshen](https://discourse.julialang.org/u/pxshen)\
**Replies:** 6\
**Last updated:** [March 14, 2024, 6:44pm UTC](https://discourse.julialang.org/t/why-gpu-still-oom-when-using-cuda-unified-memory/111543 "2024-03-14T18:44:30Z")

</div>

I’ve way more RAM than VRAM. Code runs fine on CPU. I thought using CUDA unified memory lets GPU tap system RAM but it still OOM. I’m asking bc I’m getting a new laptop for ML work. Does unified memory mean VRAM is no l…

---

## [Argument for number of axis ticks](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817)

<div class="topic-metadata">

**Author:** [@met-j](https://discourse.julialang.org/u/met-j)\
**Replies:** 4\
**Last updated:** [March 14, 2024, 4:15pm UTC](https://discourse.julialang.org/t/argument-for-number-of-axis-ticks/76817 "2024-03-14T16:15:30Z")

</div>

Is there a keyword argument to tune the number of ticks? How could this be done? I usually use Plots with the GR backend. Often the routine finds a good number for the ticks. Sometimes, I’d like to tune it a bit, e.g…

---

## [Incidence matrix from ModelingToolkit.jl](https://discourse.julialang.org/t/incidence-matrix-from-modelingtoolkit-jl/111626)

<div class="topic-metadata">

**Author:** [@hhindley](https://discourse.julialang.org/u/hhindley)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 3:56pm UTC](https://discourse.julialang.org/t/incidence-matrix-from-modelingtoolkit-jl/111626 "2024-03-14T15:56:35Z")

</div>

Hi, I’ve just started using ModelingToolkit properly and am looking at doing some hybrid stochastic modelling. For my framework I need the stoichiometric matrix and reaction propensities. In the @mtkbuild output there is…

---

## [Plotting empty vector causes MethodError if axis limits are not explicitly set](https://discourse.julialang.org/t/plotting-empty-vector-causes-methoderror-if-axis-limits-are-not-explicitly-set/111623)

<div class="topic-metadata">

**Author:** [@oniehuis](https://discourse.julialang.org/u/oniehuis)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 3:40pm UTC](https://discourse.julialang.org/t/plotting-empty-vector-causes-methoderror-if-axis-limits-are-not-explicitly-set/111623 "2024-03-14T15:40:34Z")

</div>

I want to plot vertical lines on an axis by passing vlines! an observable to a vector with positions. In my intended use case, the vector will initially be empty. This works fine when I explicitly specify the axis bounda…

---

## [Use of integer variables Juniper Error (MI-NLP)](https://discourse.julialang.org/t/use-of-integer-variables-juniper-error-mi-nlp/111454)

<div class="topic-metadata">

**Author:** [@Erlendgh](https://discourse.julialang.org/u/Erlendgh)\
**Replies:** 2\
**Last updated:** [March 14, 2024, 10:40am UTC](https://discourse.julialang.org/t/use-of-integer-variables-juniper-error-mi-nlp/111454 "2024-03-14T10:40:16Z")

</div>

Hi, I’m trying to solve an optimization problem (MI-NLP) where I want certain variables to be integer values. I have tried to get a bunch of different packages/solver to work and landed on Juniper. My code works fine wh…

---

## [Franklin websites fail to being parsed by openring](https://discourse.julialang.org/t/franklin-websites-fail-to-being-parsed-by-openring/111610)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 0\
**Last updated:** [March 14, 2024, 9:32am UTC](https://discourse.julialang.org/t/franklin-websites-fail-to-being-parsed-by-openring/111610 "2024-03-14T09:32:39Z")

</div>

openring is a nice tool to create webring, I added it to my Franklin website at the end of each post. However, I noticed that Franklin websites are not able to being parsed by this tool, while the ones built with Hugo, J…

---

## [NoiseProcess for stochastic differential equation always returns 0.0](https://discourse.julialang.org/t/noiseprocess-for-stochastic-differential-equation-always-returns-0-0/111572)

<div class="topic-metadata">

**Author:** [@Johncowk](https://discourse.julialang.org/u/Johncowk)\
**Replies:** 3\
**Last updated:** [March 14, 2024, 8:35am UTC](https://discourse.julialang.org/t/noiseprocess-for-stochastic-differential-equation-always-returns-0-0/111572 "2024-03-14T08:35:58Z")

</div>

I am trying to implement a stochastic differential equation for an SDE representing a biological system, so the variable (concentration) should not be negative. In order to modelize a noise process that cannot be negati…

---

## [What range of LinearAlgebra does Enzyme support?](https://discourse.julialang.org/t/what-range-of-linearalgebra-does-enzyme-support/111552)

<div class="topic-metadata">

**Author:** [@ToPo](https://discourse.julialang.org/u/ToPo)\
**Replies:** 6\
**Last updated:** [March 14, 2024, 3:08am UTC](https://discourse.julialang.org/t/what-range-of-linearalgebra-does-enzyme-support/111552 "2024-03-14T03:08:21Z")

</div>

Hi all, I would like to use the LinearAlgebra package in Enzyme. Since Julia’s sparse matrix package, SparseArrays, did not seem to be available, I created my own sparse-matrix library. When I looked at the Enzyme tes…

---

## [Setting WorkLimit for Gurobi.jl and JuMP](https://discourse.julialang.org/t/setting-worklimit-for-gurobi-jl-and-jump/111370)

<div class="topic-metadata">

**Author:** [@YuriS](https://discourse.julialang.org/u/YuriS)\
**Replies:** 5\
**Last updated:** [March 13, 2024, 6:07pm UTC](https://discourse.julialang.org/t/setting-worklimit-for-gurobi-jl-and-jump/111370 "2024-03-13T18:07:26Z")

</div>

Hi! I am solving a large instance MILP using Gurobi, and I am trying to set the WorkLimit parameter (see: https://www.gurobi.com/documentation/current/refman/worklimit.html) instead of setting a TimeLimit, but I am stru…

---

## [How to disable the lighting in GLMakie](https://discourse.julialang.org/t/how-to-disable-the-lighting-in-glmakie/111550)

<div class="topic-metadata">

**Author:** [@xiaoming](https://discourse.julialang.org/u/xiaoming)\
**Replies:** 2\
**Last updated:** [March 13, 2024, 11:54am UTC](https://discourse.julialang.org/t/how-to-disable-the-lighting-in-glmakie/111550 "2024-03-13T11:54:41Z")

</div>

I plot a figure like: How to disable the reverse lighting at those points? The picture is generated by codes like: second(x) = x\[2\] fig = Figure() axes = LScene(fig\[1, 1\]) for i in eachindex(points) scatter!(ax…

---

## [How to implement hermite-simpson collocation method?](https://discourse.julialang.org/t/how-to-implement-hermite-simpson-collocation-method/111448)

<div class="topic-metadata">

**Author:** [@Coral](https://discourse.julialang.org/u/Coral)\
**Replies:** 7\
**Last updated:** [March 13, 2024, 10:55am UTC](https://discourse.julialang.org/t/how-to-implement-hermite-simpson-collocation-method/111448 "2024-03-13T10:55:09Z")

</div>

Hello everyone. I am trying to do a trajectory optimization using Hermite-Simpson collocation method. I want to know if in the package jump or in other package exist a function call hermite-simpson or if i have to creat…

---

## [Symbolic Eigenvalues](https://discourse.julialang.org/t/symbolic-eigenvalues/111376)

<div class="topic-metadata">

**Author:** [@Andy2K11](https://discourse.julialang.org/u/Andy2K11)\
**Replies:** 2\
**Last updated:** [March 13, 2024, 9:26am UTC](https://discourse.julialang.org/t/symbolic-eigenvalues/111376 "2024-03-13T09:26:41Z")

</div>

While completing a course assignment recently I needed to calculate symbolically the eigenvalues of a Jacobian. I was trying to use the Symbolics.jl package but it didn’t seem able to solve this kind of problem. When I …

---

## [How to use amsmath/mathtools in Plots.jl?](https://discourse.julialang.org/t/how-to-use-amsmath-mathtools-in-plots-jl/111542)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [March 13, 2024, 9:12am UTC](https://discourse.julialang.org/t/how-to-use-amsmath-mathtools-in-plots-jl/111542 "2024-03-13T09:12:33Z")

</div>

How can I use amsmath or mathtools commands in Plots.jl? Neither GR + LaTeXStrings.jl nor PGFPlotsX.jl recognize commands like \\lVert A \\rVert

---

## [SpecialFunctions.jl's besselk() is ~10X slower than MATLAB's](https://discourse.julialang.org/t/specialfunctions-jls-besselk-is-10x-slower-than-matlabs/111536)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 5\
**Last updated:** [March 12, 2024, 9:04pm UTC](https://discourse.julialang.org/t/specialfunctions-jls-besselk-is-10x-slower-than-matlabs/111536 "2024-03-12T21:04:48Z")

</div>

I find that SpecialFunctions.jl’s besselk() is ~10X slower than MATLAB’s. In MATLAB, \>\> N = 10^6; v = rand(N,1); \>\> tic; for x = v; besselk(1, x); end; toc Elapsed time is 0.017116 seconds. \>\> tic; for x = v; besselk(1…

---

## [Conserve integral in a PINN](https://discourse.julialang.org/t/conserve-integral-in-a-pinn/111496)

<div class="topic-metadata">

**Author:** [@ste](https://discourse.julialang.org/u/ste)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 6:29pm UTC](https://discourse.julialang.org/t/conserve-integral-in-a-pinn/111496 "2024-03-12T18:29:27Z")

</div>

I have the following code where I try to solve a little toy system of PDEs: using ModelingToolkit, NeuralPDE, Flux, Optim, GalacticOptim, Plots, DiffEqSensitivity, OptimizationOptimisers, OptimizationOptimJL import Mod…

---

## [PGFPlots Healpix / Mollweide / Aitoff projections?](https://discourse.julialang.org/t/pgfplots-healpix-mollweide-aitoff-projections/106832)

<div class="topic-metadata">

**Author:** [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 6:24pm UTC](https://discourse.julialang.org/t/pgfplots-healpix-mollweide-aitoff-projections/106832 "2024-03-12T18:24:41Z")

</div>

I really like PGFPlotsX.jl to create plots which seamlessly integrate into papers but I now I need to make a bunch of Healpix Mollweide projections to visualise data spread on the surface on a sphere (essentially skymaps…

---

## [GLM package data normalization and regularization](https://discourse.julialang.org/t/glm-package-data-normalization-and-regularization/111507)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 1\
**Last updated:** [March 12, 2024, 6:18pm UTC](https://discourse.julialang.org/t/glm-package-data-normalization-and-regularization/111507 "2024-03-12T18:18:37Z")

</div>

Hello! I’m starting to use the GLM.jl package for logistic regression. Does the package adopt any kind of regularization or data normalization by default? I couldn’t find anything related to this in the package documen…

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

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