# Specific Domains

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

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

**Page:** 182

---

## [HTTP request a Request](https://discourse.julialang.org/t/http-request-a-request/101195)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 3:31am UTC](https://discourse.julialang.org/t/http-request-a-request/101195 "2023-07-06T03:31:02Z")

</div>

I want to create a Request and then send it in two separate steps. Request() instantiates a request, but how can I send it?

---

## [Geometric Programming in Convex.jl](https://discourse.julialang.org/t/geometric-programming-in-convex-jl/101223)

<div class="topic-metadata">

**Author:** [@corbinklett](https://discourse.julialang.org/u/corbinklett)\
**Replies:** 1\
**Last updated:** [July 6, 2023, 2:12am UTC](https://discourse.julialang.org/t/geometric-programming-in-convex-jl/101223 "2023-07-06T02:12:17Z")

</div>

Has anyone seen a wrapper for geometric programs for Convex.jl, such as that offered by CVXPY? Disciplined Geometric Programming — CVXPY 1.3 documentation

---

## [Matrix SDE problem and dimension mismatch](https://discourse.julialang.org/t/matrix-sde-problem-and-dimension-mismatch/101194)

<div class="topic-metadata">

**Author:** [@simoneb](https://discourse.julialang.org/u/simoneb)\
**Replies:** 4\
**Last updated:** [July 6, 2023, 2:03am UTC](https://discourse.julialang.org/t/matrix-sde-problem-and-dimension-mismatch/101194 "2023-07-06T02:03:57Z")

</div>

Hi, I’m trying to fit an SDE model to elements of a 2x2 symmetric positive-definite matrix. I need to give separate BMs to all the elements, with the constraint that the off-diagonal elements are identical. ie have the s…

---

## [Floating number matrix, equal matrix in whole, but not equal column](https://discourse.julialang.org/t/floating-number-matrix-equal-matrix-in-whole-but-not-equal-column/101200)

<div class="topic-metadata">

**Author:** [@maxchendt](https://discourse.julialang.org/u/maxchendt)\
**Replies:** 3\
**Last updated:** [July 5, 2023, 10:14pm UTC](https://discourse.julialang.org/t/floating-number-matrix-equal-matrix-in-whole-but-not-equal-column/101200 "2023-07-05T22:14:55Z")

</div>

norm(Y - B \* A, Inf) is 0, but when comparing individual columns, such as Y\[:,4\] - B \* A\[:,4\] is not zero. Why? using TranscodingStreams, CodecXz, Serialization, Downloads using LinearAlgebra function urlData(url, f…

---

## [How to Find the constraints which are causing infeasibility in the model using compute\_iis in Gurobi](https://discourse.julialang.org/t/how-to-find-the-constraints-which-are-causing-infeasibility-in-the-model-using-compute-iis-in-gurobi/101203)

<div class="topic-metadata">

**Author:** [@Gagan\_Meena](https://discourse.julialang.org/u/Gagan_Meena)\
**Replies:** 1\
**Last updated:** [July 5, 2023, 2:40pm UTC](https://discourse.julialang.org/t/how-to-find-the-constraints-which-are-causing-infeasibility-in-the-model-using-compute-iis-in-gurobi/101203 "2023-07-05T14:40:22Z")

</div>

How to compute the IIS form for the model shown below using JuMP, Gurobi include("Data.jl") UnitCommitment\_dt = UC\_dt function DUC\_Clearing(UnitCommitment\_dt) # Indices ngen = length(UC\_dt.Gen\_Constraints\[:,1\]…

---

## [This linear regression fails in Julia (GLM) vs Python (sklearn)](https://discourse.julialang.org/t/this-linear-regression-fails-in-julia-glm-vs-python-sklearn/101154)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 7\
**Last updated:** [July 4, 2023, 7:05pm UTC](https://discourse.julialang.org/t/this-linear-regression-fails-in-julia-glm-vs-python-sklearn/101154 "2023-07-04T19:05:29Z")

</div>

I have not figured out why the Julia and Python implementations yield different results when performing this “simple” linear regression with the following data. While sklearn is consistent with Excel, GLM fails to perfor…

---

## [Instability lyapunov exponent, DifferentialEquations](https://discourse.julialang.org/t/instability-lyapunov-exponent-differentialequations/101177)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 0\
**Last updated:** [July 4, 2023, 3:48pm UTC](https://discourse.julialang.org/t/instability-lyapunov-exponent-differentialequations/101177 "2023-07-04T15:48:42Z")

</div>

Hello! I am trying to calculate the spectrum of Lyapunov exponents and get a message about instability. When I calculate a solution with the same settings method of integration, there is no instability message. How can …

---

## [Pagerank for weighted graphs in julia](https://discourse.julialang.org/t/pagerank-for-weighted-graphs-in-julia/101076)

<div class="topic-metadata">

**Author:** [@vmpyr](https://discourse.julialang.org/u/vmpyr)\
**Replies:** 17\
**Last updated:** [July 4, 2023, 1:57pm UTC](https://discourse.julialang.org/t/pagerank-for-weighted-graphs-in-julia/101076 "2023-07-04T13:57:36Z")

</div>

Hello everyone, I need to use Graphs.jl for a project which requires me to mainly use the pagerank function on an undirected weighted graph. I found SimpleWeightedGraphs.jl provides this functionality. It implements the p…

---

## [Suggestion: NVIDIA RTX 3070 Ti (8GB) or RTX 4090 (16 GB)?](https://discourse.julialang.org/t/suggestion-nvidia-rtx-3070-ti-8gb-or-rtx-4090-16-gb/101121)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 15\
**Last updated:** [July 4, 2023, 11:25am UTC](https://discourse.julialang.org/t/suggestion-nvidia-rtx-3070-ti-8gb-or-rtx-4090-16-gb/101121 "2023-07-04T11:25:01Z")

</div>

Hello, I have never worked with GPU and it’s time to change our server, so… :slight\_smile: Which would be a entry-level NVIDIA GPU suitable to work with neural network operations / Flux ? I mean something that would st…

---

## [Finding equilibrium states](https://discourse.julialang.org/t/finding-equilibrium-states/101163)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 2\
**Last updated:** [July 4, 2023, 11:06am UTC](https://discourse.julialang.org/t/finding-equilibrium-states/101163 "2023-07-04T11:06:46Z")

</div>

Hello! I try find equilibrium states for system: function HR\_mem(u, p, t) function sigma(x) return 1.0 / ( 1.0 + exp( -10.0 \* ( x - ( - 0.25 ) ) ) ) end memristor(z, k1\_me, k2\_me) = k1\_me + k2\_me \* …

---

## [How to express this repeated measures model with dummy variables?](https://discourse.julialang.org/t/how-to-express-this-repeated-measures-model-with-dummy-variables/101164)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 0\
**Last updated:** [July 4, 2023, 10:38am UTC](https://discourse.julialang.org/t/how-to-express-this-repeated-measures-model-with-dummy-variables/101164 "2023-07-04T10:38:50Z")

</div>

I would like to fit a model to predict a future outcome from a given time (t=1 in the attached plot) using covariates X. But I have many missings at that time, and I’ve thought about also using past information of X. …

---

## [Display a variable makes it to be constant ? Rasters.jl bug?](https://discourse.julialang.org/t/display-a-variable-makes-it-to-be-constant-rasters-jl-bug/101157)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [July 4, 2023, 10:22am UTC](https://discourse.julialang.org/t/display-a-variable-makes-it-to-be-constant-rasters-jl-bug/101157 "2023-07-04T10:22:18Z")

</div>

I got something really odd working with Raster 0.8, Julia 1.9: This is ok: julia\> using Rasters julia\> X = 2 2 julia\> X 2 julia\> typeof(X) Int64 but (new session): julia\> using Rasters julia\> X X julia\> X = 2 ERROR: …

---

## [Programmatically check if a variable is in an equation in ModelingToolkit.jl](https://discourse.julialang.org/t/programmatically-check-if-a-variable-is-in-an-equation-in-modelingtoolkit-jl/101124)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 2\
**Last updated:** [July 3, 2023, 10:59pm UTC](https://discourse.julialang.org/t/programmatically-check-if-a-variable-is-in-an-equation-in-modelingtoolkit-jl/101124 "2023-07-03T22:59:07Z")

</div>

Given an Equation generated by ModelingToolkit.jl, I want to check, programmatically, whether some variable exists in the equation. MWE: using ModelingToolkit @variables t # independent variable (time) dDt =…

---

## [Flux training gives NaNs](https://discourse.julialang.org/t/flux-training-gives-nans/34424)

<div class="topic-metadata">

**Author:** [@tobydriscoll](https://discourse.julialang.org/u/tobydriscoll)\
**Replies:** 3\
**Last updated:** [July 3, 2023, 6:40pm UTC](https://discourse.julialang.org/t/flux-training-gives-nans/34424 "2023-07-03T18:40:51Z")

</div>

I’m training a CNN on a vision problem and sometimes the model parameters become NaNs. I don’t know how to create an MWE, and it doesn’t happen every time. The model itself is Chain( # input 96x96x1 Conv((5,5), 1=\>…

---

## [Pendulum with dry friction](https://discourse.julialang.org/t/pendulum-with-dry-friction/101123)

<div class="topic-metadata">

**Author:** [@lieskjur](https://discourse.julialang.org/u/lieskjur)\
**Replies:** 1\
**Last updated:** [July 3, 2023, 3:41pm UTC](https://discourse.julialang.org/t/pendulum-with-dry-friction/101123 "2023-07-03T15:41:02Z")

</div>

Hi, I have decided to implement dry friction into one of my simulation models. As a first step, I created a simple example of a pendulum that I would like to share. I am already using DifferentialEquations.jl for my pr…

---

## [MethodError in 1D Lennard-Jones fluid simulation](https://discourse.julialang.org/t/methoderror-in-1d-lennard-jones-fluid-simulation/101126)

<div class="topic-metadata">

**Author:** [@rolenzo](https://discourse.julialang.org/u/rolenzo)\
**Replies:** 2\
**Last updated:** [July 3, 2023, 2:58pm UTC](https://discourse.julialang.org/t/methoderror-in-1d-lennard-jones-fluid-simulation/101126 "2023-07-03T14:58:08Z")

</div>

Hello people, I’m super new to Julia (\*) and as a starter I am simulating a 1D Lennard-Jones fluid. To do so I’m integrating Newton’s equations with periodic boundary conditions using second order velocity verlet. I tes…

---

## [ForwardDiff on CDF for Beta distribution](https://discourse.julialang.org/t/forwarddiff-on-cdf-for-beta-distribution/101110)

<div class="topic-metadata">

**Author:** [@matvil](https://discourse.julialang.org/u/matvil)\
**Replies:** 3\
**Last updated:** [July 3, 2023, 1:44pm UTC](https://discourse.julialang.org/t/forwarddiff-on-cdf-for-beta-distribution/101110 "2023-07-03T13:44:04Z")

</div>

I am trying to autodiff a function that depends on the CDF for a Beta distribution, but I get an error since this function depends on rmath, which only accepts Float64, not Reals, which I understand is required for Dual …

---

## [Reduce Interpolating data size for initial guess](https://discourse.julialang.org/t/reduce-interpolating-data-size-for-initial-guess/101116)

<div class="topic-metadata">

**Author:** [@PatrickeTownsend](https://discourse.julialang.org/u/PatrickeTownsend)\
**Replies:** 3\
**Last updated:** [July 3, 2023, 1:00pm UTC](https://discourse.julialang.org/t/reduce-interpolating-data-size-for-initial-guess/101116 "2023-07-03T13:00:03Z")

</div>

Hello, I hope someone can help me with this. I have a 1x721 data vector with initial guesses, but i need to adjust it to just 200 nodes, is it possible to adjust the vector size by interpolating and reducing its size? …

---

## [Number of primes below a given number](https://discourse.julialang.org/t/number-of-primes-below-a-given-number/58709)

<div class="topic-metadata">

**Author:** [@HexSpin](https://discourse.julialang.org/u/HexSpin)\
**Replies:** 51\
**Last updated:** [July 3, 2023, 11:39am UTC](https://discourse.julialang.org/t/number-of-primes-below-a-given-number/58709 "2023-07-03T11:39:08Z")

</div>

I wish to find the number of primes below a given number, e.g. there are 25 primes below 100. It appears primes.jl does not do this and I can’t seem to locate a package to do so (at least not one compatible with OSX). …

---

## [Detection of constant, weak signals](https://discourse.julialang.org/t/detection-of-constant-weak-signals/101022)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 11\
**Last updated:** [July 3, 2023, 11:12am UTC](https://discourse.julialang.org/t/detection-of-constant-weak-signals/101022 "2023-07-03T11:12:50Z")

</div>

I have the following problem: I have signal u(t), which can be sinus function, but I could also use any other function as exitation signal. I have a system which has a gain k between -1 and 1 and adds a strong noise …

---

## [JuMP: save SOL file for MILP](https://discourse.julialang.org/t/jump-save-sol-file-for-milp/101101)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 3\
**Last updated:** [July 3, 2023, 2:52am UTC](https://discourse.julialang.org/t/jump-save-sol-file-for-milp/101101 "2023-07-03T02:52:11Z")

</div>

If JuMP solves a MILP using a solver like HiGHS, SCIP, COPT, etc., is it possible to save the solution in a SOL (.sol) file?

---

## [Plots: precision of numeric labels, default \`xformatter\`, or . .](https://discourse.julialang.org/t/plots-precision-of-numeric-labels-default-xformatter-or/101085)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 0\
**Last updated:** [July 2, 2023, 4:54pm UTC](https://discourse.julialang.org/t/plots-precision-of-numeric-labels-default-xformatter-or/101085 "2023-07-02T16:54:16Z")

</div>

Basically I want to adjust the number of the significant digits in the numeric labels on the x axis: using Plots using StrFormat x = 0:1e5:8e6 y = rand(Float64, length(x)) plot(x,y) # -\> 2.0 × 10^6 plot(x,y; xformatter=…

---

## [Region Bounded Between $\\sin (x)$ and $\\cos (x)$](https://discourse.julialang.org/t/region-bounded-between-sin-x-and-cos-x/101008)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 6\
**Last updated:** [July 2, 2023, 11:45am UTC](https://discourse.julialang.org/t/region-bounded-between-sin-x-and-cos-x/101008 "2023-07-02T11:45:09Z")

</div>

Hi all, I want to ask whether I am right that the triangle region between 0 and \\pi/2 should not be included for region bounded by \\sin (x) and \\cos (x) between x = - \\pi / 4 and x = 3 \\pi / 4 ? But, In the plot below …

---

## [GPU generalized eigendecomposition](https://discourse.julialang.org/t/gpu-generalized-eigendecomposition/101042)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 1\
**Last updated:** [July 1, 2023, 8:48pm UTC](https://discourse.julialang.org/t/gpu-generalized-eigendecomposition/101042 "2023-07-01T20:48:48Z")

</div>

I’d like to perform a generalized eigendecomp on my (CUDA-enabled) GPU. My matrix is dense, complex, and non-hermitian. I’d like the full decomposition (all the eigenvectors), not just a targeted eigensolve. I know tha…

---

## [Disable all GPU support when using Lux](https://discourse.julialang.org/t/disable-all-gpu-support-when-using-lux/100076)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 5\
**Last updated:** [July 2, 2023, 2:26am UTC](https://discourse.julialang.org/t/disable-all-gpu-support-when-using-lux/100076 "2023-07-02T02:26:26Z")

</div>

I have an old GPU which is no longer supported and would like to run Lux anyway using just the CPU. $ nvidia-smi -L GPU 0: NVIDIA GeForce GTX 680 (UUID: GPU-49fc79e3-b888-22fe-dc46-f3233d654e1b) I tried the suggestion …

---

## [How to specify a Turing model to have the 2 vectors as input for a distribution that returns a tuple](https://discourse.julialang.org/t/how-to-specify-a-turing-model-to-have-the-2-vectors-as-input-for-a-distribution-that-returns-a-tuple/100493)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 19\
**Last updated:** [July 1, 2023, 1:23pm UTC](https://discourse.julialang.org/t/how-to-specify-a-turing-model-to-have-the-2-vectors-as-input-for-a-distribution-that-returns-a-tuple/100493 "2023-07-01T13:23:06Z")

</div>

The SequentialSamplingModels.jl package implements distributions that are used in psychology research. One such model, the Linear Ballistic Accumulator (LBA), is used to model simultaneously reaction time (RT) and choice…

---

## [Principal angles between subspaces](https://discourse.julialang.org/t/principal-angles-between-subspaces/101044)

<div class="topic-metadata">

**Author:** [@fph](https://discourse.julialang.org/u/fph)\
**Replies:** 2\
**Last updated:** [July 1, 2023, 12:53pm UTC](https://discourse.julialang.org/t/principal-angles-between-subspaces/101044 "2023-07-01T12:53:42Z")

</div>

Does Julia have a function to compute canonical / principal angles between subspaces, like scipy.linalg.subspace\_angles or even just Matlab’s subspace which computes the maximum angle only? The computation is essentiall…

---

## [How to get value attribute from an \< li \> element of HTML in Julia?](https://discourse.julialang.org/t/how-to-get-value-attribute-from-an-li-element-of-html-in-julia/101010)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 16\
**Last updated:** [July 1, 2023, 12:05pm UTC](https://discourse.julialang.org/t/how-to-get-value-attribute-from-an-li-element-of-html-in-julia/101010 "2023-07-01T12:05:27Z")

</div>

I want to get value attribute from all \< li \> element of HTML. Like 34123, 34122 etc, in a array form so that i can use them for identification.

---

## [Using real NCHW order when using cuDNN.jl](https://discourse.julialang.org/t/using-real-nchw-order-when-using-cudnn-jl/100842)

<div class="topic-metadata">

**Author:** [@Jonas208](https://discourse.julialang.org/u/Jonas208)\
**Replies:** 4\
**Last updated:** [June 30, 2023, 9:39pm UTC](https://discourse.julialang.org/t/using-real-nchw-order-when-using-cudnn-jl/100842 "2023-06-30T21:39:31Z")

</div>

I am trying to use cuDNN.jl for GPU accelerated convolution. I used the function cuDNN.cudnnConvolutionForward. The function has the keyword argument format that specifies the order of dimensions (format=cuDNN.CUDNN\_TEN…

---

## [Parallelization efficiency for @tensor @tullio](https://discourse.julialang.org/t/parallelization-efficiency-for-tensor-tullio/101021)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 5\
**Last updated:** [June 30, 2023, 6:02pm UTC](https://discourse.julialang.org/t/parallelization-efficiency-for-tensor-tullio/101021 "2023-06-30T18:02:32Z")

</div>

For the input using TensorOperations using LinearAlgebra using BenchmarkTools using Tullio A = rand(1000, 1000) B = rand(1000, 1000) @btime @tensor C\[i,k\] := A\[i,j\]\*B\[j,k\] @btime @tullio C\[i,k\] := A\[i,j\]\*B\[j,k\] I us…

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

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