Questions tagged [mir]

LLVM-accelerated Generic Numerical Library for Science and Machine Learning for D.

Mir is a numerical library for D programming language. It follows the steps of numpy and attempts to be as even faster!

Documentation API

The Mir Blog

4 questions
2
votes
3 answers

How to install properly nodejs in snapcraft?

https://ubuntu.com/tutorials/electron-kiosk#4-converting-the-electron-snap-into-a-kiosk-snap Hello ! I have followed this tutorial but I don't manage to have it work properly, my probleme is that nodejs 8.10.0 is install when I need 10.12 at…
guhurak
  • 143
  • 8
2
votes
1 answer

Memory Allocation and Mir

I'm trying to work in an environment in which I need to minimize dynamic allocations and I was curious as to how the sliced function works in terms of memory allocation. I've looked around and haven't found much. Is it possible to have slices…
Emmy Chow
  • 41
  • 3
2
votes
0 answers

How to select rows by a column value in D with mir.ndslice?

I am browsing through mir.ndslice docs trying to figure out how to do a simple row selection by column. In numpy I would do: a = np.random.randint(0, 20, [4, 6]) # array([[ 8, 5, 4, 18, 1, 4], # [ 2, 18, 15, 7, 18, 19], # [16, …
minerals
  • 6,090
  • 17
  • 62
  • 107
1
vote
1 answer

How to get the MIR for rust code that can't pass the borrow checker?

For the code that passes the Rust borrow checker, we can get its MIR via rustc filename --emit=mir But for the code that can not pass the Rust borrow checker the same option doesn't work. For example, we can use the demo code from this blog:…
Aimer_zz
  • 13
  • 3