# Specific Domains

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

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

**Page:** 125

---

## [How to construct a \`Mesh\` from faces containing \`TriangleFace\` and \`QuadFace\` with GeometryBasics](https://discourse.julialang.org/t/how-to-construct-a-mesh-from-faces-containing-triangleface-and-quadface-with-geometrybasics/112001)

<div class="topic-metadata">

**Author:** [@kimikage](https://discourse.julialang.org/u/kimikage)\
**Replies:** 5\
**Last updated:** [March 23, 2024, 3:38pm UTC](https://discourse.julialang.org/t/how-to-construct-a-mesh-from-faces-containing-triangleface-and-quadface-with-geometrybasics/112001 "2024-03-23T15:38:17Z")

</div>

I am trying to do read/write of a simple Wavefront .obj file without triangulation. However, the following will result in an error. julia\> using GeometryBasics # v0.4.10 julia\> vertices = Point3f\[(0, 0, 0), (1, 0, 0),…

---

## [Convert a tuple of matrix Float64 data to Float32](https://discourse.julialang.org/t/convert-a-tuple-of-matrix-float64-data-to-float32/112005)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 1\
**Last updated:** [March 23, 2024, 4:34am UTC](https://discourse.julialang.org/t/convert-a-tuple-of-matrix-float64-data-to-float32/112005 "2024-03-23T04:34:10Z")

</div>

I have a tuple of matrices data of type Float64 . But when i want to convert it to Float32 it gives error How to convert a tuple of matrix Float64 data to Float32 ?

---

## [GLMakie crash when using PrecompileTools](https://discourse.julialang.org/t/glmakie-crash-when-using-precompiletools/111974)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [March 22, 2024, 5:19pm UTC](https://discourse.julialang.org/t/glmakie-crash-when-using-precompiletools/111974 "2024-03-22T17:19:49Z")

</div>

I observe a strange crash when I execute in the terminal: mkdir tmp cd tmp julia --project="." and then in Julia using Pkg pkg"add KiteViewers" pkg"add KiteUtils" using KiteViewers, KiteUtils viewer=Viewer3D(true); s…

---

## [Looking for a quadrature rule](https://discourse.julialang.org/t/looking-for-a-quadrature-rule/111923)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 17\
**Last updated:** [March 22, 2024, 4:52pm UTC](https://discourse.julialang.org/t/looking-for-a-quadrature-rule/111923 "2024-03-22T16:52:48Z")

</div>

Hi, I need compute thousands of integrals of the form \\int\_{0}^{t} \\frac{e^{at}}{\\sum\_{i=1}^n b\_i e^{c\_i t}} dt. I know that : the time frame \[0,t\] is typically small (say t \\le 1) rates a,c\_1,...c\_n are of order 1e…

---

## [KernelAbstractions for splines](https://discourse.julialang.org/t/kernelabstractions-for-splines/104312)

<div class="topic-metadata">

**Author:** [@weymouth](https://discourse.julialang.org/u/weymouth)\
**Replies:** 6\
**Last updated:** [March 22, 2024, 2:58pm UTC](https://discourse.julialang.org/t/kernelabstractions-for-splines/104312 "2024-03-22T14:58:48Z")

</div>

I’m trying to code a simple b-spline (and then NURBS) on the GPU using kernels to speed up a ton of simultaneous evaluations. I’m having trouble because Cox-deBoor is recursive and throws an error when I try to use this…

---

## [Solving a Fokker-Plank PDE](https://discourse.julialang.org/t/solving-a-fokker-plank-pde/109101)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [March 22, 2024, 1:45pm UTC](https://discourse.julialang.org/t/solving-a-fokker-plank-pde/109101 "2024-03-22T13:45:46Z")

</div>

I have a Wiener process in 3 dimensions, with time-independent drift and diffusion, ie x \\in \\mathbb{R}^3, dx\_t = \\mu(x) dt + \\sigma(x) dw where \\sigma(x) is diagonal. I also have an initial distribution/density p\_0(x…

---

## [Looking for Developer for Backtesting App](https://discourse.julialang.org/t/looking-for-developer-for-backtesting-app/111773)

<div class="topic-metadata">

**Author:** [@Kruxigt](https://discourse.julialang.org/u/Kruxigt)\
**Replies:** 1\
**Last updated:** [March 22, 2024, 1:00pm UTC](https://discourse.julialang.org/t/looking-for-developer-for-backtesting-app/111773 "2024-03-22T13:00:29Z")

</div>

Hi! Last few years I have developed a backtesting framework in Julia. It’s now in its alpha stage. The core of the framework is closed source and the aim is to monetize it at a future stage. I’m now looking for a partn…

---

## [Bayesian Design of Experiment in Julia](https://discourse.julialang.org/t/bayesian-design-of-experiment-in-julia/106372)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 1\
**Last updated:** [March 22, 2024, 1:00pm UTC](https://discourse.julialang.org/t/bayesian-design-of-experiment-in-julia/106372 "2024-03-22T13:00:22Z")

</div>

I’m learning more about Bayesian experimental design and I’d be interested to know if anyone has experience doing something like this in Julia. Specifically, I’m looking for anything like this Pyro tutorial on an adapati…

---

## [How is division by a singular matrix performed in Julia even it is theoretically looks invalid?](https://discourse.julialang.org/t/how-is-division-by-a-singular-matrix-performed-in-julia-even-it-is-theoretically-looks-invalid/111961)

<div class="topic-metadata">

**Author:** [@shubh\_b](https://discourse.julialang.org/u/shubh_b)\
**Replies:** 3\
**Last updated:** [March 22, 2024, 12:43pm UTC](https://discourse.julialang.org/t/how-is-division-by-a-singular-matrix-performed-in-julia-even-it-is-theoretically-looks-invalid/111961 "2024-03-22T12:43:48Z")

</div>

These are two matrices A1 and A2: julia\> A1 = \[2 4 6; 5 8 3; 2 1 8; 7 6 3\] 4×3 Matrix{Int64}: 2 4 6 5 8 3 2 1 8 7 6 3 julia\> A2 = reshape(collect(11:19), (3, 3)) 3×3 Matrix{Int64}: 11 14 17 12 15 18 1…

---

## [How to check the dimension names before eliminating some dimensions of a polyhedron?](https://discourse.julialang.org/t/how-to-check-the-dimension-names-before-eliminating-some-dimensions-of-a-polyhedron/111864)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 3\
**Last updated:** [March 22, 2024, 8:12am UTC](https://discourse.julialang.org/t/how-to-check-the-dimension-names-before-eliminating-some-dimensions-of-a-polyhedron/111864 "2024-03-22T08:12:38Z")

</div>

using Polyhedra using JuMP using CDDLib poly = Model() @variable(poly, -1 \<= x \<= 1) @variable(poly, -1 \<= y \<= 1) P = polyhedron(poly, CDDLib.Library(:exact)) P\_y = eliminate(P, \[1\]) How can I make sure the index \[1\] …

---

## [A question about implementing double integral](https://discourse.julialang.org/t/a-question-about-implementing-double-integral/111914)

<div class="topic-metadata">

**Author:** [@swsw](https://discourse.julialang.org/u/swsw)\
**Replies:** 3\
**Last updated:** [March 22, 2024, 3:59am UTC](https://discourse.julialang.org/t/a-question-about-implementing-double-integral/111914 "2024-03-22T03:59:37Z")

</div>

I’d like to calculate the following double integral Integrate\[exp(-x)Integrate\[exp(-y),{y,0,x}\],{x,0,∞}\] I try the following in julia but i think i probably get it wrong. using QuadGK inner\_function(y) = exp(-y) …

---

## [Warning: error closing screen](https://discourse.julialang.org/t/warning-error-closing-screen/111939)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 4:42pm UTC](https://discourse.julialang.org/t/warning-error-closing-screen/111939 "2024-03-21T16:42:33Z")

</div>

I can run my simulation fine from the REPL. You can find my code at: GitHub - aenarete/KiteControllers.jl: Controllers for airborne wind energy systems But if I run it from bash with the command: julia --project -t 7,…

---

## [MethodError: no method matching heatmap\_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol)](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 0\
**Last updated:** [March 21, 2024, 4:07pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-heatmap-edges-recipespipeline-surface-matrix-float64-symbol/111938 "2024-03-21T16:07:26Z")

</div>

I am getting MethodError: no method matching heatmap\_edges(::RecipesPipeline.Surface{Matrix{Float64}}, ::Symbol) My code is :face\_with\_diagonal\_mouth: begin # Create the plot plot() # Define colormap colormap = …

---

## [Add specific elements of a CUDA matrix](https://discourse.julialang.org/t/add-specific-elements-of-a-cuda-matrix/111909)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 2:48pm UTC](https://discourse.julialang.org/t/add-specific-elements-of-a-cuda-matrix/111909 "2024-03-21T14:48:48Z")

</div>

Question I have an N \\times N matrix A on the GPU (e.g. CuArray{Float32, 2, CUDA.Mem.DeviceBuffer} from CUDA.jl), and two N-element “index vectors” iVector and jVector also on the GPU. I want to add the elements of A lo…

---

## [How to detect if a GLMakie window is closed?](https://discourse.julialang.org/t/how-to-detect-if-a-glmakie-window-is-closed/111933)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 2:19pm UTC](https://discourse.julialang.org/t/how-to-detect-if-a-glmakie-window-is-closed/111933 "2024-03-21T14:19:12Z")

</div>

When I start my program, I open an GLMakie window. How can I detect if the window is still open or if it was closed by the user? Is there an on\_close() event? I want to stop my simulation when the user closes the window…

---

## [Efficient dataframe operations \[unclear task\]](https://discourse.julialang.org/t/efficient-dataframe-operations-unclear-task/111925)

<div class="topic-metadata">

**Author:** [@haidangel](https://discourse.julialang.org/u/haidangel)\
**Replies:** 2\
**Last updated:** [March 21, 2024, 12:47pm UTC](https://discourse.julialang.org/t/efficient-dataframe-operations-unclear-task/111925 "2024-03-21T12:47:19Z")

</div>

I have a dataframe with 2715 attribute columns, values ranging from \[0, 0.92). Additionally, the dataframe has an auxiliary attribute column with one-hot values (0 or 1) for a binary classification task. I want to use Ju…

---

## [Julia frameworks for large-scale nonlinear least-squares optimization for computer vision](https://discourse.julialang.org/t/julia-frameworks-for-large-scale-nonlinear-least-squares-optimization-for-computer-vision/49344)

<div class="topic-metadata">

**Author:** [@masoug](https://discourse.julialang.org/u/masoug)\
**Replies:** 3\
**Last updated:** [March 21, 2024, 10:42am UTC](https://discourse.julialang.org/t/julia-frameworks-for-large-scale-nonlinear-least-squares-optimization-for-computer-vision/49344 "2024-03-21T10:42:44Z")

</div>

Hi, Julia newcomer here :slight\_smile: I’m working on learning both Julia and computer vision by implementing common vision algorithms like camera calibration in the Julia language. I’m at a point right now where I’m lo…

---

## [Naming of states, inputs and outputs in \`ControlSystemsMTK\`](https://discourse.julialang.org/t/naming-of-states-inputs-and-outputs-in-controlsystemsmtk/111783)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 12\
**Last updated:** [March 21, 2024, 10:27am UTC](https://discourse.julialang.org/t/naming-of-states-inputs-and-outputs-in-controlsystemsmtk/111783 "2024-03-21T10:27:57Z")

</div>

Hi, I just tested naming states, inputs and outputs while passing a state-space model to ODESystem. It seems the optional names are ignored, am I doing something wrong here ? using ControlSystemsBase, ControlSystemsMTK…

---

## [Pkg DoubleFloats, some consts flawed](https://discourse.julialang.org/t/pkg-doublefloats-some-consts-flawed/111917)

<div class="topic-metadata">

**Author:** [@derSchorsch](https://discourse.julialang.org/u/derSchorsch)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 9:19am UTC](https://discourse.julialang.org/t/pkg-doublefloats-some-consts-flawed/111917 "2024-03-21T09:19:45Z")

</div>

Hi all, I have noticed that many of the constants related to pi in the file sequences.jl of pkg DoubleFloats are flawed. For example, the DD values for (15/32)\*%pi read: "Double64(1.4726215563702156, -5.3616983752483455…

---

## [Is there a way to calculate eigenvalues for symbolic matrices?](https://discourse.julialang.org/t/is-there-a-way-to-calculate-eigenvalues-for-symbolic-matrices/110818)

<div class="topic-metadata">

**Author:** [@swsw](https://discourse.julialang.org/u/swsw)\
**Replies:** 5\
**Last updated:** [March 21, 2024, 2:43am UTC](https://discourse.julialang.org/t/is-there-a-way-to-calculate-eigenvalues-for-symbolic-matrices/110818 "2024-03-21T02:43:15Z")

</div>

I’d like to calculate the eigenvalues for the matrix like \[1 1; x x\] in julia. is there a way to do it? I tried the following but didn’t work. using SymPy @syms x A = \[1 1; x x\] eigen(A)

---

## [Using RecursiveArrayTools.ArrayPartition to keep track of control parameters](https://discourse.julialang.org/t/using-recursivearraytools-arraypartition-to-keep-track-of-control-parameters/111906)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 11:57pm UTC](https://discourse.julialang.org/t/using-recursivearraytools-arraypartition-to-keep-track-of-control-parameters/111906 "2024-03-20T23:57:36Z")

</div>

I’m making some plans for the QuantumControl package to extend from optimizing arbitrary time-continuous control fields to control fields that are described analytically by a handful of scalar control parameters. Withou…

---

## [JuMP reduced\_cost questions](https://discourse.julialang.org/t/jump-reduced-cost-questions/111484)

<div class="topic-metadata">

**Author:** [@Ken\_Lin](https://discourse.julialang.org/u/Ken_Lin)\
**Replies:** 10\
**Last updated:** [March 20, 2024, 2:31pm UTC](https://discourse.julialang.org/t/jump-reduced-cost-questions/111484 "2024-03-20T14:31:20Z")

</div>

Hi, can anyone please help me with some questions on reduced\_cost in JuMP? Thank you! toym = Model(() -\> Gurobi.Optimizer(GRB\_ENV)) @variable(toym, 0 \<= toyx\[1:4\] \<= 1) @constraint(toym, toyx\[1\]+toyx\[2\] \<= 1) @constrain…

---

## [Animating a graph changing edge colors](https://discourse.julialang.org/t/animating-a-graph-changing-edge-colors/111782)

<div class="topic-metadata">

**Author:** [@qotsalo](https://discourse.julialang.org/u/qotsalo)\
**Replies:** 7\
**Last updated:** [March 20, 2024, 11:26am UTC](https://discourse.julialang.org/t/animating-a-graph-changing-edge-colors/111782 "2024-03-20T11:26:33Z")

</div>

Hi there, I want to animate some simple graphs with changing colors in their edges. I thought it would be simple but I am definitely not a Julia expert and I am a bit stuck. I tried animating just the color of a single…

---

## [CSC kills the prospect of multithreading. Shouldn't Julia use CSR?](https://discourse.julialang.org/t/csc-kills-the-prospect-of-multithreading-shouldnt-julia-use-csr/102491)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 47\
**Last updated:** [March 20, 2024, 7:37am UTC](https://discourse.julialang.org/t/csc-kills-the-prospect-of-multithreading-shouldnt-julia-use-csr/102491 "2024-03-20T07:37:55Z")

</div>

I recently did a rather extensive study of performance of matrix-vector (SpMV) products of sparse matrices with several different storage formats. Although I started benchmarking things in Julia, as usual, I eventually t…

---

## [Constraint using a constant - Broadcast Syntax Error](https://discourse.julialang.org/t/constraint-using-a-constant-broadcast-syntax-error/111855)

<div class="topic-metadata">

**Author:** [@IgorESMelo](https://discourse.julialang.org/u/IgorESMelo)\
**Replies:** 1\
**Last updated:** [March 20, 2024, 3:59am UTC](https://discourse.julialang.org/t/constraint-using-a-constant-broadcast-syntax-error/111855 "2024-03-20T03:59:24Z")

</div>

Hello everyone, I have some doubts about how to create constraints using a constant value. For example, let’s take the code below. using JuMP, Gurobi function solve() #Decision variables @variable(model, x\[…

---

## [Gurobi convex optimization](https://discourse.julialang.org/t/gurobi-convex-optimization/111850)

<div class="topic-metadata">

**Author:** [@tardis438](https://discourse.julialang.org/u/tardis438)\
**Replies:** 2\
**Last updated:** [March 20, 2024, 2:35am UTC](https://discourse.julialang.org/t/gurobi-convex-optimization/111850 "2024-03-20T02:35:14Z")

</div>

I am using Gurobi and JuMP to solve a fairly simple convex optimization problem but I am a newbie and don’t know the right syntax. I want to solve (N is a fixed and known integer (eg 100)) \\min \\sum\_{i=1}^{N} (-log x\[i…

---

## [How to pass the domain of a variable to a function in a general manner?](https://discourse.julialang.org/t/how-to-pass-the-domain-of-a-variable-to-a-function-in-a-general-manner/111824)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 2:17am UTC](https://discourse.julialang.org/t/how-to-pass-the-domain-of-a-variable-to-a-function-in-a-general-manner/111824 "2024-03-20T02:17:19Z")

</div>

I plan to implement some certain algorithm that is designed for a class of some type of optimization problems with one of whose decision variables x required to be in the domain F\_x\\subseteq \\mathbb{R}\_+^n. I decide to …

---

## [Axis label rotation in Makie LScene](https://discourse.julialang.org/t/axis-label-rotation-in-makie-lscene/111832)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 0\
**Last updated:** [March 19, 2024, 4:54pm UTC](https://discourse.julialang.org/t/axis-label-rotation-in-makie-lscene/111832 "2024-03-19T16:54:32Z")

</div>

Hi all, after a long journey in the Makie doc, Beautiful Makie website and Julia discourse, I decided to post my question. When playing with LScene, we can easily get the following visualization Code to reproduce the…

---

## [How to plot a curvilinear domain using Plots?](https://discourse.julialang.org/t/how-to-plot-a-curvilinear-domain-using-plots/111804)

<div class="topic-metadata">

**Author:** [@arturofburgos](https://discourse.julialang.org/u/arturofburgos)\
**Replies:** 2\
**Last updated:** [March 19, 2024, 3:39pm UTC](https://discourse.julialang.org/t/how-to-plot-a-curvilinear-domain-using-plots/111804 "2024-03-19T15:39:58Z")

</div>

Hello Everyone, I have been trying to create the same plot here that I created using PyPlot, but now using Plots. Does anyone know how to work around this issue? using PyPlot # ion() # pygui(true) r\_ini = 1.0 r\_end = …

---

## [UndefVarError: \`colorbar\` not defined while using Plots.jl](https://discourse.julialang.org/t/undefvarerror-colorbar-not-defined-while-using-plots-jl/111784)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 4\
**Last updated:** [March 19, 2024, 8:31am UTC](https://discourse.julialang.org/t/undefvarerror-colorbar-not-defined-while-using-plots-jl/111784 "2024-03-19T08:31:45Z")

</div>

While using Plots.jl i am getting error UndefVarError: colorbar not defined Please code below :point\_right: begin fig = plot(size=(300, 300)) # figsize=(20, 20) ax = fig\[1\] # Define colormap colormap = :jet #…

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

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