# Specific Domains

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

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

**Page:** 141

---

## [@Printf with DecFP / Dec128](https://discourse.julialang.org/t/printf-with-decfp-dec128/108996)

<div class="topic-metadata">

**Author:** [@JonT](https://discourse.julialang.org/u/JonT)\
**Replies:** 2\
**Last updated:** [January 19, 2024, 10:08pm UTC](https://discourse.julialang.org/t/printf-with-decfp-dec128/108996 "2024-01-19T22:08:42Z")

</div>

I’m seeing two different outputs for Dec128 numbers println() vs @printf: (Julia v1.10.0 with DecFP v1.3.2) using Printf, Quadmath, DecFP C = log2(big(ℯ)) # \\euler \<tab\> to get symbol d = convert(Dec128, C) println("C …

---

## [Formulating objective function, DimensionMismatch](https://discourse.julialang.org/t/formulating-objective-function-dimensionmismatch/109016)

<div class="topic-metadata">

**Author:** [@legio](https://discourse.julialang.org/u/legio)\
**Replies:** 6\
**Last updated:** [January 19, 2024, 10:21pm UTC](https://discourse.julialang.org/t/formulating-objective-function-dimensionmismatch/109016 "2024-01-19T22:21:29Z")

</div>

Hi, I’m very new to Julia, and I am trying to construct a minimization over x for the following objective: where B is a 2x8 matrix, μ is a 2x3 matrix, and x is an 8x3 matrix. I have tried using the following line to …

---

## [How to translate and scale Makie.image?](https://discourse.julialang.org/t/how-to-translate-and-scale-makie-image/108741)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 5\
**Last updated:** [January 19, 2024, 6:02pm UTC](https://discourse.julialang.org/t/how-to-translate-and-scale-makie-image/108741 "2024-01-19T18:02:47Z")

</div>

Makie.image plots a set of pixels efficiently, assuming that the image starts at the origin (0,0) and that the pixels are of size 1x1. We tried to apply Makie.scale! and Makie.translate! to the result of Makie.image to …

---

## [Maliar, Maliar, and Winant using Flux.jl (I just want to write a custom objective)](https://discourse.julialang.org/t/maliar-maliar-and-winant-using-flux-jl-i-just-want-to-write-a-custom-objective/107993)

<div class="topic-metadata">

**Author:** [@JHall](https://discourse.julialang.org/u/JHall)\
**Replies:** 8\
**Last updated:** [January 19, 2024, 4:02pm UTC](https://discourse.julialang.org/t/maliar-maliar-and-winant-using-flux-jl-i-just-want-to-write-a-custom-objective/107993 "2024-01-19T16:02:24Z")

</div>

Hi all, I am trying to translate the code that you can find here from Python into Julia. Everything works swimmingly until I get to the end of the code where I have to do the training section. I am using Flux.jl, and …

---

## [Zygote silently fails on CircularArrays.jl](https://discourse.julialang.org/t/zygote-silently-fails-on-circulararrays-jl/87321)

<div class="topic-metadata">

**Author:** [@trakjohnson](https://discourse.julialang.org/u/trakjohnson)\
**Replies:** 2\
**Last updated:** [January 19, 2024, 12:54pm UTC](https://discourse.julialang.org/t/zygote-silently-fails-on-circulararrays-jl/87321 "2024-01-19T12:54:15Z")

</div>

It seems that Zygote silently fails when differentiating a function that takes and outputs CircularArrays, using a Zygote.Buffer to allow mutation. Here’s a comparison with ForwardDiff: using Zygote, ForwardDiff, Circul…

---

## [No strict ticks found message](https://discourse.julialang.org/t/no-strict-ticks-found-message/45217)

<div class="topic-metadata">

**Author:** [@HelgavonLichtenstein](https://discourse.julialang.org/u/HelgavonLichtenstein)\
**Replies:** 13\
**Last updated:** [January 19, 2024, 10:58am UTC](https://discourse.julialang.org/t/no-strict-ticks-found-message/45217 "2024-01-19T10:58:23Z")

</div>

I was plotting and realised a message was popping up in the REPL. I am using Julia 1.5 in Atom and StatsPlots.jl and Plot.jl. Any idea what is causing it? Warning: No strict ticks found └ @ PlotUtils C:\\Users\\Helga\\.ju…

---

## [LU factorization and non-square matrices](https://discourse.julialang.org/t/lu-factorization-and-non-square-matrices/108834)

<div class="topic-metadata">

**Author:** [@sijo](https://discourse.julialang.org/u/sijo)\
**Replies:** 6\
**Last updated:** [January 19, 2024, 10:23am UTC](https://discourse.julialang.org/t/lu-factorization-and-non-square-matrices/108834 "2024-01-19T10:23:09Z")

</div>

The documentation for \\ says For non-triangular square matrices, an LU factorization is used. For rectangular A the result is the minimum-norm least squares solution computed by a pivoted QR factorization of A and a r…

---

## [How do I model a combination of polynomial and SOC constraints?](https://discourse.julialang.org/t/how-do-i-model-a-combination-of-polynomial-and-soc-constraints/108968)

<div class="topic-metadata">

**Author:** [@Khr](https://discourse.julialang.org/u/Khr)\
**Replies:** 2\
**Last updated:** [January 19, 2024, 10:11am UTC](https://discourse.julialang.org/t/how-do-i-model-a-combination-of-polynomial-and-soc-constraints/108968 "2024-01-19T10:11:02Z")

</div>

I have a problem consisting of both polynomial constraints (using the PolyJuMP), with nonnegativity requirements on a certain domain, which should be able to be handled using the SumOfSquares package and several second-o…

---

## [Unexpected behavior of objective\_value with quadratic objective and semidefinite constraint](https://discourse.julialang.org/t/unexpected-behavior-of-objective-value-with-quadratic-objective-and-semidefinite-constraint/107211)

<div class="topic-metadata">

**Author:** [@ryancorywright](https://discourse.julialang.org/u/ryancorywright)\
**Replies:** 5\
**Last updated:** [January 19, 2024, 10:05am UTC](https://discourse.julialang.org/t/unexpected-behavior-of-objective-value-with-quadratic-objective-and-semidefinite-constraint/107211 "2024-01-19T10:05:45Z")

</div>

When solving a convex quadratic optimization problem with semidefinite constraints in Mosek, the objective\_value function appears to be returning an objective value that is off by a constant. Minimal working example: wh…

---

## [Cryptography and Julia](https://discourse.julialang.org/t/cryptography-and-julia/4868)

<div class="topic-metadata">

**Author:** [@sambitdash](https://discourse.julialang.org/u/sambitdash)\
**Replies:** 4\
**Last updated:** [January 19, 2024, 9:47am UTC](https://discourse.julialang.org/t/cryptography-and-julia/4868 "2024-01-19T09:47:33Z")

</div>

Hi All, Is there any thoughts provided in supporting Cryptographic functions in Julia? I did not see any native crytographic API for Julia, hence wondered if there is any in the roadmap currently. The largest concern wi…

---

## [Help debugging Runtime error 1](https://discourse.julialang.org/t/help-debugging-runtime-error-1/108931)

<div class="topic-metadata">

**Author:** [@nomadbl](https://discourse.julialang.org/u/nomadbl)\
**Replies:** 7\
**Last updated:** [January 19, 2024, 8:27am UTC](https://discourse.julialang.org/t/help-debugging-runtime-error-1/108931 "2024-01-19T08:27:48Z")

</div>

I wrote an implementation of im2col kernel to use with a custom convolution-like operation on GPU with CUDA.jl. After testing it for correctness (comparing with the NNlib cpu implementation), I am trying to use it in my…

---

## [JSON to string transposing problem](https://discourse.julialang.org/t/json-to-string-transposing-problem/108967)

<div class="topic-metadata">

**Author:** [@Pascal\_Buhler](https://discourse.julialang.org/u/Pascal_Buhler)\
**Replies:** 2\
**Last updated:** [January 19, 2024, 6:13am UTC](https://discourse.julialang.org/t/json-to-string-transposing-problem/108967 "2024-01-19T06:13:07Z")

</div>

i have this code and it gives me always a {} error. after this i wanna publish the code to string over a mqtt client. LED = JSON.parse({"type": "led-ring", "payload": {"mode": 1, "duration": 10000, "speed": 100, "bright…

---

## [Unexpected simulation behaviour of Geometric Brownian Motion with SciML](https://discourse.julialang.org/t/unexpected-simulation-behaviour-of-geometric-brownian-motion-with-sciml/108870)

<div class="topic-metadata">

**Author:** [@VincentW](https://discourse.julialang.org/u/VincentW)\
**Replies:** 1\
**Last updated:** [January 19, 2024, 3:32am UTC](https://discourse.julialang.org/t/unexpected-simulation-behaviour-of-geometric-brownian-motion-with-sciml/108870 "2024-01-19T03:32:24Z")

</div>

Hey, I wanted to simulate a geometric Brownian Motion of the form GBB(t)=\\exp\\left(\\beta t+\\delta B(t)\\right), where B(t) is just some standard Brownian Motion. Or expressed as a SDE, I want to simulate the solution …

---

## [Make Predictive Glacier Forward Model Compatible with Dual Numbers](https://discourse.julialang.org/t/make-predictive-glacier-forward-model-compatible-with-dual-numbers/108977)

<div class="topic-metadata">

**Author:** [@vivekag7](https://discourse.julialang.org/u/vivekag7)\
**Replies:** 3\
**Last updated:** [January 18, 2024, 10:49pm UTC](https://discourse.julialang.org/t/make-predictive-glacier-forward-model-compatible-with-dual-numbers/108977 "2024-01-18T22:49:55Z")

</div>

Hi Julia Community, I have an in place predictive model for glaciers, which is well tested and works perfectly fine with any \<:AbstractFloat. Now what I would like to do is make this model compatible with ForwardDiff.D…

---

## [\[PSA\] Custom default backends for Plots.jl broken on julia 1.10](https://discourse.julialang.org/t/psa-custom-default-backends-for-plots-jl-broken-on-julia-1-10/108979)

<div class="topic-metadata">

**Author:** [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Replies:** 2\
**Last updated:** [January 18, 2024, 7:57pm UTC](https://discourse.julialang.org/t/psa-custom-default-backends-for-plots-jl-broken-on-julia-1-10/108979 "2024-01-18T19:57:34Z")

</div>

Julia 1.10 turned loading packages that are not direct dependencies at precompile time into an error. Historically Plots.jl relied on some sketchy code loading practices to make the multiple backend story workable. That…

---

## [How to control lighting in 3D plots for CairoMakie?](https://discourse.julialang.org/t/how-to-control-lighting-in-3d-plots-for-cairomakie/108981)

<div class="topic-metadata">

**Author:** [@JonasWickman](https://discourse.julialang.org/u/JonasWickman)\
**Replies:** 0\
**Last updated:** [January 18, 2024, 6:13pm UTC](https://discourse.julialang.org/t/how-to-control-lighting-in-3d-plots-for-cairomakie/108981 "2024-01-18T18:13:09Z")

</div>

I’m having some difficulty with the lighting options when saving a 3D figure using CairoMakie. In particular, none of the lighting options work (commented out in the code below), nor does the option invert\_normals = true …

---

## [Strange behavior of plot---plot successful only if it is the last line of the code](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 5\
**Last updated:** [January 18, 2024, 3:17pm UTC](https://discourse.julialang.org/t/strange-behavior-of-plot-plot-successful-only-if-it-is-the-last-line-of-the-code/108952 "2024-01-18T15:17:41Z")

</div>

I am using vscode in anaconda. The following code using Plots a = 3+4 plot(\[1,2,3\],\[2,4,8\]) can produce a figure. But this code cannot using Plots plot(\[1,2,3\],\[2,4,8\]) a = 3+4 It seems that the plot is displayed o…

---

## [Read vector from data file](https://discourse.julialang.org/t/read-vector-from-data-file/108945)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 8\
**Last updated:** [January 18, 2024, 2:39pm UTC](https://discourse.julialang.org/t/read-vector-from-data-file/108945 "2024-01-18T14:39:05Z")

</div>

Hi I’m currently trying to read a vector from a .dat file. the structure of the file is not complicated and I currently managed to read the rows/columns that I need by using the following code: using DelimitedFiles fun…

---

## [How to understand filtering in topology optimization?](https://discourse.julialang.org/t/how-to-understand-filtering-in-topology-optimization/108905)

<div class="topic-metadata">

**Author:** [@ehgus](https://discourse.julialang.org/u/ehgus)\
**Replies:** 6\
**Last updated:** [January 18, 2024, 12:55pm UTC](https://discourse.julialang.org/t/how-to-understand-filtering-in-topology-optimization/108905 "2024-01-18T12:55:54Z")

</div>

Hello I’m trying to understand the role of filtering in the tutorial about topology optimization of gridap. It claims that filtering process will help to binarize the result. Well… I first imagine an optimization probl…

---

## [GLMakie crashes when maximising window after saving high resolution .png](https://discourse.julialang.org/t/glmakie-crashes-when-maximising-window-after-saving-high-resolution-png/108949)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 1\
**Last updated:** [January 18, 2024, 12:11pm UTC](https://discourse.julialang.org/t/glmakie-crashes-when-maximising-window-after-saving-high-resolution-png/108949 "2024-01-18T12:11:59Z")

</div>

Quick aside: should I be putting stuff like this onto github instead of here? I’ve never really interacted with github more than my own repos. Step 1, make figure: begin f = Figure() ax = Axis3(f\[1, 1\], aspect = :data)…

---

## [The Jacobian for the equality constraints contains an invalid number (+ general help with matrices in JuMP)](https://discourse.julialang.org/t/the-jacobian-for-the-equality-constraints-contains-an-invalid-number-general-help-with-matrices-in-jump/107512)

<div class="topic-metadata">

**Author:** [@Jack21](https://discourse.julialang.org/u/Jack21)\
**Replies:** 4\
**Last updated:** [January 18, 2024, 11:30am UTC](https://discourse.julialang.org/t/the-jacobian-for-the-equality-constraints-contains-an-invalid-number-general-help-with-matrices-in-jump/107512 "2024-01-18T11:30:47Z")

</div>

Hello all! I am pretty new to Julia, and am trying to implement a matrix form model for the dynamics. This is what I have written so far: using JuMP #, MadNLP import Ipopt #Number of mesh point n = 10 #Simulation para…

---

## [Kernel Error while running code on GPU](https://discourse.julialang.org/t/kernel-error-while-running-code-on-gpu/108745)

<div class="topic-metadata">

**Author:** [@Pranav\_Vinod](https://discourse.julialang.org/u/Pranav_Vinod)\
**Replies:** 12\
**Last updated:** [January 18, 2024, 8:57am UTC](https://discourse.julialang.org/t/kernel-error-while-running-code-on-gpu/108745 "2024-01-18T08:57:10Z")

</div>

I have been trying to run the following code on a GPU: using OrdinaryDiffEq using DiffEqFlux using Random using CUDA using DiffEqFlux: gpu CUDA.allowscalar(true) function RelativisticOrbitModel(u, model\_params, t) …

---

## [Enforcing Variable Allocation Priorities in JuMP Model](https://discourse.julialang.org/t/enforcing-variable-allocation-priorities-in-jump-model/108806)

<div class="topic-metadata">

**Author:** [@Lemma](https://discourse.julialang.org/u/Lemma)\
**Replies:** 7\
**Last updated:** [January 16, 2024, 10:20pm UTC](https://discourse.julialang.org/t/enforcing-variable-allocation-priorities-in-jump-model/108806 "2024-01-16T22:20:12Z")

</div>

Hello Everyone, I’m working on an optimization problem in Julia’s JuMP and need help with correctly prioritizing the allocation of certain variables in a constraint. My primary constraint is as follows: C \\cdot x + S \\…

---

## [Problem implementing perpendicular Neumann boundary conditions using MethodOfLines.jl](https://discourse.julialang.org/t/problem-implementing-perpendicular-neumann-boundary-conditions-using-methodoflines-jl/108925)

<div class="topic-metadata">

**Author:** [@aharbick](https://discourse.julialang.org/u/aharbick)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 7:37pm UTC](https://discourse.julialang.org/t/problem-implementing-perpendicular-neumann-boundary-conditions-using-methodoflines-jl/108925 "2024-01-17T19:37:21Z")

</div>

I am currently bug-fixing a more complicated set of equations I am trying to solve using MethodOfLines.jl and I have narrowed down the current issue I am facing to a particular term which involves a perpendicular Neumann…

---

## [Tables.jl / ERROR: MethodError: no method matching length(::var"#7#8"{TabOHLCV})](https://discourse.julialang.org/t/tables-jl-error-methoderror-no-method-matching-length-var-7-8-tabohlcv/108915)

<div class="topic-metadata">

**Author:** [@FemtoTrader](https://discourse.julialang.org/u/FemtoTrader)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 7:08pm UTC](https://discourse.julialang.org/t/tables-jl-error-methoderror-no-method-matching-length-var-7-8-tabohlcv/108915 "2024-01-17T19:08:48Z")

</div>

Hello, I’ve some vectors defined like so const OPEN\_TMPL = \[ 10.81, 10.58, 10.07, 10.58, 10.56, 10.4, 10.74, 10.16, 10.29, 9.4, 9.62, 9.35, 8.64, 8.8, 8.31, …

---

## [Julia Makie plot with WCS coordinates](https://discourse.julialang.org/t/julia-makie-plot-with-wcs-coordinates/108917)

<div class="topic-metadata">

**Author:** [@Matt\_jl](https://discourse.julialang.org/u/Matt_jl)\
**Replies:** 2\
**Last updated:** [January 17, 2024, 4:36pm UTC](https://discourse.julialang.org/t/julia-makie-plot-with-wcs-coordinates/108917 "2024-01-17T16:36:55Z")

</div>

have a specific question regarding the Makie library In my work, I frequently deal with astronomical images that require the projection of the axes onto the World Coordinate System (WCS) of the map. I am aware that the …

---

## [Modeling and solving systems of nonlinear dynamic equations](https://discourse.julialang.org/t/modeling-and-solving-systems-of-nonlinear-dynamic-equations/108556)

<div class="topic-metadata">

**Author:** [@enzo.salvatore](https://discourse.julialang.org/u/enzo.salvatore)\
**Replies:** 11\
**Last updated:** [January 17, 2024, 3:48pm UTC](https://discourse.julialang.org/t/modeling-and-solving-systems-of-nonlinear-dynamic-equations/108556 "2024-01-17T15:48:08Z")

</div>

I am currently a Ph.D. student in economics, and I am looking to find a way to model and solve dynamic systems of nonlinear equations. The goal is to create a dynamic Computable General Equilibrium (CGE) model in Julia. …

---

## [Solving large convex optimization/flow assignment problem](https://discourse.julialang.org/t/solving-large-convex-optimization-flow-assignment-problem/108872)

<div class="topic-metadata">

**Author:** [@SuperGrobi](https://discourse.julialang.org/u/SuperGrobi)\
**Replies:** 7\
**Last updated:** [January 17, 2024, 2:13pm UTC](https://discourse.julialang.org/t/solving-large-convex-optimization-flow-assignment-problem/108872 "2024-01-17T14:13:09Z")

</div>

I am trying to solve a convex flow-assignment problem on a large(ish) graph with (currently) about 7000 edges. Mathematically, it looks like \\underset{x\\in\\mathbb{R}\_+^{|E|}}{\\text{minimize}} \\quad U(x) \\\\ U(x) = -l^T…

---

## [Microsoft Phi model](https://discourse.julialang.org/t/microsoft-phi-model/108895)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 0\
**Last updated:** [January 17, 2024, 8:42am UTC](https://discourse.julialang.org/t/microsoft-phi-model/108895 "2024-01-17T08:42:50Z")

</div>

Is anyone up to porting (adding) microsoft phi model to Transformers.jl? I would like to use it for experiments (I am interested to make it a bert-like model). I have been using so far llama2-7b, but phi models seems sma…

---

## [Sun elevation and moon phase](https://discourse.julialang.org/t/sun-elevation-and-moon-phase/74753)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 6\
**Last updated:** [January 16, 2024, 11:28pm UTC](https://discourse.julialang.org/t/sun-elevation-and-moon-phase/74753 "2024-01-16T23:28:26Z")

</div>

I need to know what the: sun elevation (and sunrise) moon phase moon elevation is as a function of date, time, and coordinates. I tried looking for an existing package in JuliaAstro, and it truly seems like all the p…

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

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