# New to Julia

**URL:** https://discourse.julialang.org/c/first-steps/8.md?page=56

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

**Page:** 57

---

## [Why is ' the conjugate transpose of a matrix?](https://discourse.julialang.org/t/why-is-the-conjugate-transpose-of-a-matrix/109450)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 13\
**Last updated:** [January 31, 2024, 9:21pm UTC](https://discourse.julialang.org/t/why-is-the-conjugate-transpose-of-a-matrix/109450 "2024-01-31T21:21:29Z")

</div>

Why is the ' operator the conjugate transpose operator and not just the transpose operator or the conjugate operator?

---

## [Switching to Juliaup for installation](https://discourse.julialang.org/t/switching-to-juliaup-for-installation/109525)

<div class="topic-metadata">

**Author:** [@cby](https://discourse.julialang.org/u/cby)\
**Replies:** 2\
**Last updated:** [January 31, 2024, 8:29pm UTC](https://discourse.julialang.org/t/switching-to-juliaup-for-installation/109525 "2024-01-31T20:29:03Z")

</div>

I’m having trouble figuring out how to switch to Juliaup for installation of a new version of Julia with Visual Studio Code. I ran curl -fsSL https://install.julialang.org | sh julia +1.10 At this point I saw that the…

---

## [Kronecker doesn't work, kron yes, in this case](https://discourse.julialang.org/t/kronecker-doesnt-work-kron-yes-in-this-case/109474)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 8\
**Last updated:** [January 31, 2024, 7:44pm UTC](https://discourse.julialang.org/t/kronecker-doesnt-work-kron-yes-in-this-case/109474 "2024-01-31T19:44:35Z")

</div>

This is the program I made: import Random using LinearAlgebra N::Int64 = 100 matr\_A = Array{Float64}(undef, N, N) matr\_B = Array{Float64}(undef, N, N) matr\_C = Array{Float64}(undef, N\*N, N\*N) Random.seed!(1) for j = …

---

## [Right way to run external program in parallel?](https://discourse.julialang.org/t/right-way-to-run-external-program-in-parallel/109490)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 3\
**Last updated:** [January 31, 2024, 4:21am UTC](https://discourse.julialang.org/t/right-way-to-run-external-program-in-parallel/109490 "2024-01-31T04:21:21Z")

</div>

I could not figure this out all day, until finally this answer saved me: run(\`bash -c """cd temp\_dir && some\_cmd"""\`) Is there a better way to do this? In particular I want to run a program designed to log results s…

---

## ['Sol' not defined upon opening Julia?](https://discourse.julialang.org/t/sol-not-defined-upon-opening-julia/109480)

<div class="topic-metadata">

**Author:** [@deweyfinn](https://discourse.julialang.org/u/deweyfinn)\
**Replies:** 15\
**Last updated:** [January 31, 2024, 3:27am UTC](https://discourse.julialang.org/t/sol-not-defined-upon-opening-julia/109480 "2024-01-31T03:27:43Z")

</div>

Hi. I have this code I am trying to make for graphing the trajectory of a thrown baton. The script involves a mass matrix (of the baton) being multiplied by dydt to show its trajectory. My problem comes from the use of …

---

## [Defining a function that modifies its argument in place defines a new function instead](https://discourse.julialang.org/t/defining-a-function-that-modifies-its-argument-in-place-defines-a-new-function-instead/109462)

<div class="topic-metadata">

**Author:** [@keynescoefen](https://discourse.julialang.org/u/keynescoefen)\
**Replies:** 2\
**Last updated:** [January 30, 2024, 5:42pm UTC](https://discourse.julialang.org/t/defining-a-function-that-modifies-its-argument-in-place-defines-a-new-function-instead/109462 "2024-01-30T17:42:33Z")

</div>

Hello! I have the following function using SpecialFunctions function CDFFoldedNormal(x,μ,σ) #follow the example: https://en.wikipedia.org/wiki/Folded\_normal\_distribution #Note that the folded normal is NOT the h…

---

## [Julia installation, Linux](https://discourse.julialang.org/t/julia-installation-linux/109421)

<div class="topic-metadata">

**Author:** [@Enlil50](https://discourse.julialang.org/u/Enlil50)\
**Replies:** 4\
**Last updated:** [January 29, 2024, 8:10pm UTC](https://discourse.julialang.org/t/julia-installation-linux/109421 "2024-01-29T20:10:31Z")

</div>

I suck installing things. I better write them from scratch. So, I runned the script on the Julia site. At the end it said it was successful: Now installing Juliaup Installing Julia 1.10.0+0.x64.linux.gnu Configured the…

---

## [Some\_thing in some\_list](https://discourse.julialang.org/t/some-thing-in-some-list/109327)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 11\
**Last updated:** [January 29, 2024, 5:13pm UTC](https://discourse.julialang.org/t/some-thing-in-some-list/109327 "2024-01-29T17:13:25Z")

</div>

I am from matlab. Codes like if some\_thing in some\_list is new to me. It of course makes coding simple, but what is the price? I guess julia just checks the elements of some\_list one by one to see whether some\_thing …

---

## [Errors in creating a small, multi-file project with one module](https://discourse.julialang.org/t/errors-in-creating-a-small-multi-file-project-with-one-module/109324)

<div class="topic-metadata">

**Author:** [@Spydercrawler](https://discourse.julialang.org/u/Spydercrawler)\
**Replies:** 10\
**Last updated:** [January 29, 2024, 4:33pm UTC](https://discourse.julialang.org/t/errors-in-creating-a-small-multi-file-project-with-one-module/109324 "2024-01-29T16:33:09Z")

</div>

Hello! I am a new Julia user, using v1.10, and am struggling a bit to fully understand how to get multiple code files to work together. Specifically, I am finding that editing files can throw errors, and my using statem…

---

## [Change location of .julia](https://discourse.julialang.org/t/change-location-of-julia/21540)

<div class="topic-metadata">

**Author:** [@Jack\_Stillwell](https://discourse.julialang.org/u/Jack_Stillwell)\
**Replies:** 12\
**Last updated:** [January 29, 2024, 2:18pm UTC](https://discourse.julialang.org/t/change-location-of-julia/21540 "2024-01-29T14:18:11Z")

</div>

I am currently in the process of installing Julia in the ChromeOS shell. I have julia running OK, but I cannot seem to install some packages because the .julia directory is located in the noexec home folder. I would like…

---

## [Error creating a Dict with symbols as indices](https://discourse.julialang.org/t/error-creating-a-dict-with-symbols-as-indices/109367)

<div class="topic-metadata">

**Author:** [@orebas](https://discourse.julialang.org/u/orebas)\
**Replies:** 4\
**Last updated:** [January 29, 2024, 10:02am UTC](https://discourse.julialang.org/t/error-creating-a-dict-with-symbols-as-indices/109367 "2024-01-29T10:02:59Z")

</div>

I am trying to emulate some code I have been given, which returns a Dict that has model states from a ModelingToolkit model as indices. But the below code gives an error. Here’s the MWE: using ModelingToolkit functio…

---

## [ERROR: 'path' appears to be a local path, but directory does not exist](https://discourse.julialang.org/t/error-path-appears-to-be-a-local-path-but-directory-does-not-exist/109362)

<div class="topic-metadata">

**Author:** [@danielbl](https://discourse.julialang.org/u/danielbl)\
**Replies:** 3\
**Last updated:** [January 28, 2024, 6:03pm UTC](https://discourse.julialang.org/t/error-path-appears-to-be-a-local-path-but-directory-does-not-exist/109362 "2024-01-28T18:03:15Z")

</div>

Hi all. This post concerns the following error: ERROR: 'path' appears to be a local path, but directory does not exist I am currently following this Readme for a Julia/Python program (BYU CCBlade.ji). I have tried both…

---

## [How to change colormap for plotting with arrows()?](https://discourse.julialang.org/t/how-to-change-colormap-for-plotting-with-arrows/109323)

<div class="topic-metadata">

**Author:** [@Midez](https://discourse.julialang.org/u/Midez)\
**Replies:** 4\
**Last updated:** [January 27, 2024, 12:49pm UTC](https://discourse.julialang.org/t/how-to-change-colormap-for-plotting-with-arrows/109323 "2024-01-27T12:49:33Z")

</div>

Julia has an awesome documentation, including an example for arrows(). However I don’t figure, how to change the colormap that shows the strength of the arrows. I’d like to change it to :bluesreds. If you know how, let m…

---

## [Minor issue with if statement and may about types?](https://discourse.julialang.org/t/minor-issue-with-if-statement-and-may-about-types/109326)

<div class="topic-metadata">

**Author:** [@Wooheon](https://discourse.julialang.org/u/Wooheon)\
**Replies:** 5\
**Last updated:** [January 27, 2024, 3:03am UTC](https://discourse.julialang.org/t/minor-issue-with-if-statement-and-may-about-types/109326 "2024-01-27T03:03:29Z")

</div>

Hello, I just tried to make the following function. function CRRA\_bernoulli(ω::Float16,x::Int16) if ω == 1.00 val = log( exp(1), x ) else val = ( x / ( 1 - ω ) ) ^ ( 1 - ω ) end return va…

---

## [How to install packages on an offline cluster?](https://discourse.julialang.org/t/how-to-install-packages-on-an-offline-cluster/109293)

<div class="topic-metadata">

**Author:** [@baizhan](https://discourse.julialang.org/u/baizhan)\
**Replies:** 7\
**Last updated:** [January 26, 2024, 2:00pm UTC](https://discourse.julialang.org/t/how-to-install-packages-on-an-offline-cluster/109293 "2024-01-26T14:00:16Z")

</div>

I’m trying to use julia on a cluster, which does not have usual network, so I have to install the packages offlinely. I have read several post regarding this problem, it seems that I should upload the entire ~/.julia …

---

## [zeros(Float64, 2) or zeros(2, Float64)](https://discourse.julialang.org/t/zeros-float64-2-or-zeros-2-float64/109283)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 5\
**Last updated:** [January 26, 2024, 6:56am UTC](https://discourse.julialang.org/t/zeros-float64-2-or-zeros-2-float64/109283 "2024-01-26T06:56:56Z")

</div>

julia\> a = zeros(Float64, 2) 2-element Vector{Float64}: 0.0 0.0 julia\> a = zeros(2, Float64 ) ERROR: MethodError: no method matching zeros(::Int64, ::Type{Float64}) Closest candidates are: zeros(::Union{Integer,…

---

## [GLMakie remote animations through ssh](https://discourse.julialang.org/t/glmakie-remote-animations-through-ssh/109270)

<div class="topic-metadata">

**Author:** [@lpv](https://discourse.julialang.org/u/lpv)\
**Replies:** 3\
**Last updated:** [January 25, 2024, 10:26pm UTC](https://discourse.julialang.org/t/glmakie-remote-animations-through-ssh/109270 "2024-01-25T22:26:27Z")

</div>

Hello! I am trying to create an animation with the results from a simulation remotely through “ssh -X”. When doing locally, it is quite fast. Through the ssh, it get extremely slow. It would be easier for me to simply g…

---

## [Huge memory allocation](https://discourse.julialang.org/t/huge-memory-allocation/109273)

<div class="topic-metadata">

**Author:** [@jisutich](https://discourse.julialang.org/u/jisutich)\
**Replies:** 17\
**Last updated:** [January 25, 2024, 10:16pm UTC](https://discourse.julialang.org/t/huge-memory-allocation/109273 "2024-01-25T22:16:15Z")

</div>

Hi, I am trying to do some calculation which involves large array (float64 arrays with length 2^30). The array is large but I think still acceptable. However, when I tried to run the codes within some loops, the memory …

---

## [Create an implicit environment with package directories](https://discourse.julialang.org/t/create-an-implicit-environment-with-package-directories/109207)

<div class="topic-metadata">

**Author:** [@francis-gagnon](https://discourse.julialang.org/u/francis-gagnon)\
**Replies:** 15\
**Last updated:** [January 25, 2024, 8:53pm UTC](https://discourse.julialang.org/t/create-an-implicit-environment-with-package-directories/109207 "2024-01-25T20:53:18Z")

</div>

The manual mention that it’s possible to create an implicit environnement with package directories (i.e. directories without Project.toml files). Like @plafer in this post, I tried to replicate the example in the manual …

---

## [Nastran OP2 and BDF](https://discourse.julialang.org/t/nastran-op2-and-bdf/108425)

<div class="topic-metadata">

**Author:** [@Jacob53101](https://discourse.julialang.org/u/Jacob53101)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 8:17pm UTC](https://discourse.julialang.org/t/nastran-op2-and-bdf/108425 "2024-01-25T20:17:39Z")

</div>

I’m trying to work with nx nastran bdf and op2 files using julia. There’s a library in python called pyNastran that can parse these nastran files really well and save them as hdf5 files. My plan is to read these hdf5 fil…

---

## [{} in function names](https://discourse.julialang.org/t/in-function-names/109240)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 11:05am UTC](https://discourse.julialang.org/t/in-function-names/109240 "2024-01-25T11:05:24Z")

</div>

I see many functions or constructors with {} in their names. julia\> NTuple{4,Int64}((1,2,3,4)) (1, 2, 3, 4) julia\> function myfun{2}(x,y) return x + y end ERROR: UndefVarError: \`myfun\` not defined Stacktr…

---

## [Convergence behavior in MATLAB vs Julia](https://discourse.julialang.org/t/convergence-behavior-in-matlab-vs-julia/109113)

<div class="topic-metadata">

**Author:** [@Gast](https://discourse.julialang.org/u/Gast)\
**Replies:** 12\
**Last updated:** [January 25, 2024, 8:13am UTC](https://discourse.julialang.org/t/convergence-behavior-in-matlab-vs-julia/109113 "2024-01-25T08:13:07Z")

</div>

I am facing challenges in replicating a nonlinear unconstrained dynamic optimization problem originally coded in MATLAB using Julia. While the convergence of the algorithm is successful in MATLAB, I cannot achieve conver…

---

## [\#jsoc-mentors](https://discourse.julialang.org/t/jsoc-mentors/109213)

<div class="topic-metadata">

**Author:** [@Hiwa](https://discourse.julialang.org/u/Hiwa)\
**Replies:** 1\
**Last updated:** [January 24, 2024, 8:54pm UTC](https://discourse.julialang.org/t/jsoc-mentors/109213 "2024-01-24T20:54:09Z")

</div>

Hello I need to be added to #jsoc-mentors and to mentor students volunteerly, Can you please add me to the list and the group

---

## [Confused by package directory environments](https://discourse.julialang.org/t/confused-by-package-directory-environments/26194)

<div class="topic-metadata">

**Author:** [@evanfields](https://discourse.julialang.org/u/evanfields)\
**Replies:** 6\
**Last updated:** [October 21, 2021, 5:26pm UTC](https://discourse.julialang.org/t/confused-by-package-directory-environments/26194 "2021-10-21T17:26:14Z")

</div>

I’m trying to better understand code loading, so reading that section of the manual. The manual describes package directory environments: A package directory is a directory containing the source trees of a set of packag…

---

## [Recommended AI engine for translating between Julia, Python and Wolfram Mathematica](https://discourse.julialang.org/t/recommended-ai-engine-for-translating-between-julia-python-and-wolfram-mathematica/109152)

<div class="topic-metadata">

**Author:** [@Shamrock\_812](https://discourse.julialang.org/u/Shamrock_812)\
**Replies:** 4\
**Last updated:** [January 23, 2024, 5:00pm UTC](https://discourse.julialang.org/t/recommended-ai-engine-for-translating-between-julia-python-and-wolfram-mathematica/109152 "2024-01-23T17:00:12Z")

</div>

Hi, New to Julia and trying to translate Julia code to Python and to Wolfram Mathematica and the other way around with ChatGPT however the result is buggy and requires too much overhead to deal with. Any recommendation…

---

## [Date axis in Makie](https://discourse.julialang.org/t/date-axis-in-makie/63430)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 11\
**Last updated:** [January 23, 2024, 11:33am UTC](https://discourse.julialang.org/t/date-axis-in-makie/63430 "2024-01-23T11:33:14Z")

</div>

I was looking into Makie for plotting some time series but could only find an open issue for having dates on one of the axes. The first suggested fix does not work for me (I get an error when calling lines) and the secon…

---

## [Performance tips for differential equation RHS](https://discourse.julialang.org/t/performance-tips-for-differential-equation-rhs/108934)

<div class="topic-metadata">

**Author:** [@madeline](https://discourse.julialang.org/u/madeline)\
**Replies:** 22\
**Last updated:** [January 23, 2024, 5:11am UTC](https://discourse.julialang.org/t/performance-tips-for-differential-equation-rhs/108934 "2024-01-23T05:11:55Z")

</div>

Hello, I’ve been working on a project which relies on being able to swiftly solve something like the following system: using DifferentialEquations using StaticArrays using Einsum using Random using Graphs function watt…

---

## [Concatenate Vector of Vector with differents length](https://discourse.julialang.org/t/concatenate-vector-of-vector-with-differents-length/109071)

<div class="topic-metadata">

**Author:** [@blociss](https://discourse.julialang.org/u/blociss)\
**Replies:** 8\
**Last updated:** [January 22, 2024, 5:37pm UTC](https://discourse.julialang.org/t/concatenate-vector-of-vector-with-differents-length/109071 "2024-01-22T17:37:01Z")

</div>

Consider the following vector: v = \[ (1, \[\[11, 11, 11\], \[12, 12, 12\]\]), (2, \[\[21, 21, 21\]), (3, \[\[31, 31, 31\], \[32, 32, 32\]\]), (4, \[\[41, 41, 41\]), \] I want to get 4-element Vector{Any}: \[\[11, 11, 11\], …

---

## [Best way to Re-Install Julia on new computer?](https://discourse.julialang.org/t/best-way-to-re-install-julia-on-new-computer/106103)

<div class="topic-metadata">

**Author:** [@CosmoProf](https://discourse.julialang.org/u/CosmoProf)\
**Replies:** 32\
**Last updated:** [January 22, 2024, 7:29am UTC](https://discourse.julialang.org/t/best-way-to-re-install-julia-on-new-computer/106103 "2024-01-22T07:29:07Z")

</div>

Hi, my computer had to be swapped for a new one, and I need to re-install Julia from scratch, making sure that all of my old Julia programs will still run correctly. The first time I installed Julia, I had a litany of p…

---

## [ADAM crash](https://discourse.julialang.org/t/adam-crash/109040)

<div class="topic-metadata">

**Author:** [@Anders\_Holtsberg](https://discourse.julialang.org/u/Anders_Holtsberg)\
**Replies:** 5\
**Last updated:** [January 21, 2024, 9:04pm UTC](https://discourse.julialang.org/t/adam-crash/109040 "2024-01-21T21:04:39Z")

</div>

I am getting started with Flux and learning machine learning and Julia at the same time. So I had a look at some examples and loading MNIST and running stuff in Jupyter and that works fine for me. I started experimenting…

[Previous page](https://discourse.julialang.org/c/first-steps/8.md?page=55)

[Next page](https://discourse.julialang.org/c/first-steps/8.md?page=57)
