BIDData / BIDMat

A CPU and GPU-accelerated matrix library for data mining
BSD 3-Clause "New" or "Revised" License
265 stars 73 forks source link

MatFunction not implemented for GMat #5

Closed chrishzhao closed 11 years ago

chrishzhao commented 11 years ago

mean, sum and transpose operator do not support GMat so far.

jcanny commented 11 years ago

Actually they are. What makes you think they are not? If you got an error could you please include the error message?

scala> val a = grand(4,4) a: BIDMat.GMat = 0.40568 0.97801 0.83026 0.41202 0.59785 0.46033 0.79053 0.43692 0.11102 0.96959 0.40141 0.61166 0.32611 0.17353 0.91425 0.55500

scala> a.t res2: BIDMat.GMat = 0.40568 0.59785 0.11102 0.32611 0.97801 0.46033 0.96959 0.17353 0.83026 0.79053 0.40141 0.91425 0.41202 0.43692 0.61166 0.55500

scala> sum(a,1) res3: BIDMat.GMat = 1.4407 2.5814 2.9365 2.0156

scala> mean(a,1) res4: BIDMat.GMat = 0.36017 0.64536 0.73411 0.50390

chrishzhao commented 11 years ago

Sorry. I think I mean GSMat.

From: jcanny [mailto:notifications@github.com] Sent: Friday, February 15, 2013 11:32 AM To: jcanny/BIDMat Cc: chrishzhao Subject: Re: [BIDMat] MatFunction not implemented for GMat (#5)

Actually they are. What makes you think they are not? If you got an error could you please include the error message?

— Reply to this email directly or view it on GitHub https://github.com/jcanny/BIDMat/issues/5#issuecomment-13623729 .

https://github.com/notifications/beacon/lGre0AVfd9qxnKr_i8CgLRqGxWeiq1ApRkuxJ5alnmLYMWBbWzVtE_cu_Ll_4xu-.gif