Fork me on GitHub
#uncomplicate2015-10-27
>
aaelony15:10:09

what's the best, idiomatic way to create a matrix of ones using Neanderthal?

aaelony18:10:44

@blueberry: question.... what's the best, idiomatic way to create a matrix of ones using Neanderthal?

blueberry19:10:25

@aaelony On the CPU, (entry! m 1.0), on the GPU (transfer! m gpu-m)

aaelony19:10:20

@blueberry, thank-you. hadn't found it. Any recommendations on a good resource to learn more?

blueberry19:10:48

But it is something that depends on your use case. There are other ways. If you already have such matrice, you can copy it to another with (copy! m1 m1-copy) etc...

aaelony19:10:08

In this case I want to create a large matrix of ones

blueberry19:10:38

On the CPU? entry! is the simplest way

aaelony19:10:50

cpu... something similar to

rep(1,1e9)
in R

aaelony19:10:24

cool. will try entry!

blueberry19:10:11

I try to cover as much as i can in api docs + tests + tutorials. I believe I mentioned that, but could be wrong.

aaelony19:10:40

I am reading through them, but hadn't come to it yet. link?

blueberry19:10:26

http://neanderthal.uncomplicate.org. Then there are links to tutorials, and in the top bar, there is a link to the API documentation with examples. For tests, see the source.

aaelony19:10:54

cool. doing that.

aaelony19:10:32

nice! I was looking for the codox api actually. perfect

aaelony19:10:43

lastly, I'm about to try a fresh install on a centos server without atlas etc.. any recommendations on making this as painless as possible?

blueberry19:10:40

I recommend to follow the atlas compilation tutorial carefully simple_smile I used Arch Linux, and the process worked as advertized. I just had to configure a few documented options, tested with existing atlas test scripts, add the binary to the path, and was ready to go. Today I am installing NixOS and it seems that it is even more streamlined in it, since the Nix package script seems to do that for me (not tried it yet). Regarding neanderthal itself, it works out of the box on linux if atlas is properly connected with the OS.

blueberry19:10:14

@aaleony Would you write some notes on your installing process please? That would help other users a lot since native libs are a huge scare off for many Java people.

aaelony19:10:37

sure, if/when I get it working would be happy to do that. I did notice that from the link http://neanderthal.uncomplicate.org/articles/getting_started.html the (from the Clojars) link is slightly wrong. should be I believe

blueberry19:10:21

thanks for reporting. will you please open an issue, so I do not forget to fix it when I install and configure my new OS

aaelony19:10:42

question... wouldn't a ones function be handy? There is a zero already...

blueberry19:10:27

zero is different. It is for the cases when you need a new instance to hold the results. + it is created instantly, while all those 1s need to be written in memory somehow.

blueberry19:10:10

you can create (defn ones [x] (entry! (raw x) 1.0)) if you need it, but I try to keep the API as simple as possible

aaelony19:10:49

cool. thanks