lanjingnage
lanjingnage

Reputation: 13

Is there any implementation of hstack in gnumpy

I want to transfer python codes in CPU to GPU, but I failed to find the numpy function hstack in gnumpy. Who can give me some hints to implement adding some extra rows to a existing matrix(garray) like hstack in numpy. Thank you.

Upvotes: 1

Views: 86

Answers (1)

user2379410
user2379410

Reputation:

You can use gnumpy.concatenate. For 1D arrays you need to reshape to 2D first.

Upvotes: 3

Related Questions