Questions tagged [julia]
Julia is a high-level dynamic programming language designed to address the requirements of high-performance numerical and scientific computing while also being effective for general purpose programming.
49 questions
2
votes
1
answer
239
views
Write Julia struct to a C++ struct
For the following Julia code:
...
1
vote
1
answer
113
views
Neural Network in Julia (Multilayer Perceptron)
I wrote a simple multilayer perceptron in Julia, which seems to work fine on different datasets, e.g. the MNIST dataset with a success rate of about 90% after a few seconds of training. But I would ...
1
vote
1
answer
352
views
Implementing a 1D Convolution SIMD Friendly in Julia
I want to implement a 1D convolution in Julia using the direct calculation since the conv() function in DSP.jl uses DFT (fft) ...
3
votes
0
answers
86
views
Entities with varied Movement polymorphic implementations in Julia
I have very basic principle. I have multiple types of entities with some shared functionality. Some of this functionality is highly customizable and you want to be able to swap it out even for a ...
3
votes
0
answers
99
views
Raytracing in Julia
This is my first project in julia. It is a raytracer based on spheres.
...
0
votes
1
answer
78
views
streaming / low memory groupby in julia
I am working on a groupby-aggregation function that will work without RAM overflow issues. Essentially, I want it to run as fast as possible, while not necessarily loading the entire data structure ...
4
votes
1
answer
228
views
Minimize memory allocations while calculating the matrix representation of a Hamiltonian
I am writing a script using Julia (calling my functions from the REPL) to compute the matrix representation of certain Hamiltonian. After I run my script I see that the memory allocations count is ...
2
votes
0
answers
68
views
Non-allocating k-nearest-neighbours between two matrices in Julia
I played around with some optimizations when answering this SO question. Sought is a function which given matrices x of size (m, l) and ...
4
votes
3
answers
307
views
Project Euler #12: find smallest triangular number with over 500 factors
My code in Julia, almost identical to the Python code (see below), runs in 4.6 s while the Python version runs in 2.4 s. Obviously there is a lot or room for improvement.
...
2
votes
2
answers
225
views
Sort three numbers
So, I wrote this function to sort three numbers in Julia. Any feedback on readability, performance, and Julian-ness would be appreciated.
...
1
vote
0
answers
157
views
How to make my 1D EM algorithm written in Julia faster?
I wrote this code that's supposed to implement a 1-dimensional (!) EM algorithm with k-means initialization:
...
2
votes
1
answer
188
views
Reducing allocations in arbitrary precision calculations with Julia
I am new to Julia and have only written in python before which is most likely also reflected by my coding style.
Unfortunately, my applications require very high numerical precision which is why I am ...
5
votes
2
answers
416
views
Fast hamming distance function in Julia that returns a distance matrix
I would like to use Julia to compute the hamming distance on a very large dataset.
I need to get back a distance matrix between rows in order to run further ...
3
votes
1
answer
260
views
Discrete event simulation framework for discrete times in Julia
I would like to receive constructive feedback on my simulation framework (this is for my thesis work). I have no formal background in programming, and I am wondering if there is a more effective and ...
3
votes
1
answer
284
views
Parsing values from string into struct using match in Julia
My goal
I am parsing from a string which contains token:value pairs into a type.
Example:
...