Category Archives: Julia

Julia (Part II): Data Structures for Data Science

By: Julia on Aleph-Zero-Heroes

Re-posted from: https://aleph-zero-heroes.netlify.com/posts/post_julia2/

Spoilers Warning Intro I mentioned in my last post on Julia that dictionaries are incredibly useful data structures for data science. I thought that warranted a little more discussion. And it leads to another data structure that we use a lot: Data Frames. They’re the topic for today.
Dictionaries A dictionary (in computer programming) is much like an English dictionary. It takes a set of objects (the keys) and maps them to something else (the values).

Another example of using type domain information in Julia

By: Julia on EPH

Re-posted from: https://ericphanson.com/blog/2019/another-example-of-using-type-domain-information-in-julia/

In a previous post, I discussed using type domain information to speed up generation of random density matrices with small dimension in Julia. There, we gave the Julia compiler knowledge of the dimension of the matrices at the time it generates code, instead of passing that dimension as a runtime variable, and saw significant runtime speedups as a consequence. This time, let’s push this further by giving the compiler a whole vector of numbers instead of a single integer.