You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Naveen <na...@formcept.com> on 2015/08/24 13:10:45 UTC
Determinant of Matrix
Hi,
Is there any function to find the determinant of a mllib.linalg.Matrix
(a covariance matrix) using Spark?
Regards,
Naveen
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
For additional commands, e-mail: user-help@spark.apache.org
Re: Determinant of Matrix
Posted by Alex Gittens <gi...@icsi.berkeley.edu>.
It sounds like you've already computed the covariance matrix. You can
convert it to a breeze matrix then use breeze.linalg.det :
val determinant = breeze.linalg.det(
mat.toBreeze.asInstanceOf[breeze.linalg.DenseMatrix[Double]] )
On Mon, Aug 24, 2015 at 4:10 AM, Naveen <na...@formcept.com> wrote:
> Hi,
>
> Is there any function to find the determinant of a mllib.linalg.Matrix (a
> covariance matrix) using Spark?
>
>
> Regards,
> Naveen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@spark.apache.org
> For additional commands, e-mail: user-help@spark.apache.org
>
>