Jake Brooks
Jake Brooks
MModular
Created by Jake Brooks on 6/6/2024 in #community-showcase
A Complex Math Library for Mojo
Hi folks, I've had way too much free time recently, so I wrote a complex math library for Mojo! It massively expands the existing ComplexSIMD type as well as adding all the standard functions like csqrt, csin, cexp, and so on. Of course, it's still a WIP, but if you want more let me know! I'm trying to align this as close to the stdlib as possible so it feels natural to use. https://github.com/JakeEBrooks/mojocmath
9 replies
MModular
Created by Jake Brooks on 2/9/2024 in #questions
Determining Tensor datatype at runtime
Hi folks! I'm working on a project where I need to extract a bunch of numeric data from a file, and the datatype for the file data is contained within the metadata for the file. I want the data within to always be read into a Tensor, but I'm not sure how to handle the datatyping at runtime, since you have to define the Tensor with a datatype at compile time. I have a feeling the answer lies in pointers, but I'm used to Python so I'm still learning about them 🙂 Grateful for any advice!
3 replies
MModular
Created by Jake Brooks on 10/3/2023 in #questions
Possible to get a meaningful time value?
Hi all. I'm wondering if it's possible to get a more meaningful time value than the existing time.now(), without going through Python or C. From my research it seems like you would have to interface with the OS, but I'm not sure Mojo has the necessary functionality to do that yet. Is it possible to get something like a Unix time? If so, could someone point me in the right direction?
14 replies