Skip to main content

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.

2 votes
1 answer
239 views

Write Julia struct to a C++ struct

For the following Julia code: ...
dearn44's user avatar
  • 195
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 ...
Andy Sukowski-Bang's user avatar
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) ...
Royi's user avatar
  • 582
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 ...
K.H.'s user avatar
  • 2,728
3 votes
0 answers
99 views

Raytracing in Julia

This is my first project in julia. It is a raytracer based on spheres. ...
M472's user avatar
  • 386
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 ...
chase's user avatar
  • 123
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 ...
Leo Flores's user avatar
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 ...
phipsgabler's user avatar
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. ...
Maxwell's Daemon's user avatar
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. ...
Luapulu's user avatar
  • 333
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: ...
ForceBru's user avatar
  • 455
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 ...
Timo's user avatar
  • 165
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 ...
giac's user avatar
  • 247
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 ...
manuka's user avatar
  • 31
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: ...
Jessica Nowak's user avatar

15 30 50 per page