Category "julia"

Julia error when trying to modify last number of an Array {Float 64}

I'm now starting using Julia and I need to interpolate a Brownian motion. I run the following codes but the following error appear. N = 3 B = zeros(N) B[N] = ra

Unrecognized runtime "julia"; defaulting to "python3"

I am trying to run the Julia template in Google Colab, but the first code block throws the following warning: Unrecognized runtime "julia"; defaulting to "pytho

Eigenvectors in Julia vs Numpy

I'm currently working to diagonalize a 5000x5000 Hermitian matrix, and I find that when I use Julia's eigen function in the LinearAlgebra module, which produces

convert dictionary to abstract matrix in julia

I'm trying to do dimension reduction, and I got a: d = Dict{Tuple{String, String}, Vector{Float64}} Trying to apply umap on it. While umap can only accepts abs

How do I determine the likelihood of my data coming from a model distribution using Julia?

I am trying to do a statistical analysis in Julia on experimental data. I tried to create a model and use Turing to obtain distributions for the mean and standa

Is there a way to dynamically create new arrays from a dataframe

I have a table that looks like |Category|number|absorbance|protein1|protein2| |--------|------|----------|--------|--------| |a|int|float|float|float| |a|int|fl

Functioning of permutedims in Julia unclear

What does permutedims() do when called upon a multidimensional array? From its name, it is evident it has something to do with the dimentions of the array. How

Plot points moving along the velocity field in Julia

The code below creates velocity field. I plotted a blue point in (0.5,0.5). How do I plot series of points that move alongside the velocity field? using PyPlot

Julia: how to index an 'any' type array

I am new in Julia. I want to replicate the results in Wollmann (2019). However, it always give me this error: LoadError: MethodError: no method matching setinde

How to check if a string is alphanumeric?

I can use occursin function, but its haystack argument cannot be a regular expression, which means I have to pass the entire alphanumeric string to it. Is there

Randomized eigenvalue decomposition

I need the implementation of randomized eigenvalue decomposition. This algorithm can find the largest r-eigenvalues of a symmetric real n×n matrix A rapi

How to install a Julia package if it fails to install / build on an M1 Mac?

I am trying to use the Twitter.jl package locally on my M1 Mac. However, when I try to install it, I get: ERROR: Error building `DecFP`: ┌ Warning: Platf

Convert float to int in Julia Lang

Is there a way to convert a floating number to int in Julia? I'm trying to convert a floating point number to a fixed precision number with the decimal part rep

Concatenating arrays in Julia

If the two Int arrays are, a = [1;2;3] and b = [4;5;6], how do we concatenate the two arrays in both the dimensions? The expected outputs are, julia> out1

What is the difference between "==" and "===" comparison operators in Julia?

What is the difference between == and === comparison operators in Julia?

How to clear screen in Julia REPL on Windows

How do you clear screen while using Julia REPL, using ctrl +L just scrolls down enough for it to look clean, but the variables still hold the same value, is the

Julia: How do I create a macro that returns its argument?

My question is quite similar to this one, but with a difference. I want to create a macro (or whatever) that behaves this way: julia> @my-macro x + 2 :(x +

How do I check if a method exists for a particular type?

LATEST UPDATE: Shep has provided an answer that updates this question to v1+. UPDATE: Thanks to @rickhg12s for pointing out that it appears I may have stumbled

Julia is not giving me a good return value in Binary Search

I have made this recursive binary search function in Julia that will return the index where the number I am looking for is. (example: array = [1,2,4,8,16], key

Initialize a column with missing values and copy+transform another column of a dataframe into the initialized column

I have a messy column in a csv file (column A of the dataframe). using CSV, DataFrames df = DataFrame(A = ["1", "3", "-", "4", missing, "9"], B = ["M", "F", "R