uncomplicate

2015-10-27T15:12:09.000032Z

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

2015-10-27T18:40:44.000033Z

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

2015-10-27T19:05:25.000034Z

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

2015-10-27T19:06:20.000035Z

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

2015-10-27T19:06:48.000036Z

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...

2015-10-27T19:07:08.000037Z

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

2015-10-27T19:07:38.000038Z

On the CPU? entry! is the simplest way

2015-10-27T19:07:50.000039Z

cpu... something similar to

rep(1,1e9)
in R

2015-10-27T19:08:24.000040Z

cool. will try entry!

2015-10-27T19:10:11.000041Z

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

2015-10-27T19:10:40.000042Z

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

2015-10-27T19:12:26.000045Z

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.

2015-10-27T19:12:54.000046Z

cool. doing that.

2015-10-27T19:13:32.000048Z

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

2015-10-27T19:14:43.000050Z

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?

2015-10-27T19:18:40.000051Z

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.

2015-10-27T19:20:14.000052Z

@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.

2015-10-27T19:22:37.000053Z

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. <http://neanderthal.uncomplicate.org/articles/clojars.org/uncomplicate/neanderthal> should be <https://clojars.org/uncomplicate/neanderthal> I believe

2015-10-27T19:24:21.000055Z

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

2015-10-27T19:25:36.000056Z

sure

2015-10-27T19:29:42.000058Z

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

2015-10-27T19:33:27.000059Z

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.

2015-10-27T19:35:10.000060Z

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

2015-10-27T19:35:49.000061Z

cool. thanks