You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Donbeo <lu...@gmail.com> on 2015/02/11 10:51:19 UTC
apply function to all elements of a row matrix
HI,
I have a row matrix x
scala> x
res3: org.apache.spark.mllib.linalg.distributed.RowMatrix =
org.apache.spark.mllib.linalg.distributed.RowMatrix@63949747
and I would like to apply a function to each element of this matrix. I was
looking for something like:
x map (e => exp(-e*e))
How can I do that?
Thanks!!
--
View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/apply-function-to-all-elements-of-a-row-matrix-tp21596.html
Sent from the Apache Spark User List mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org