spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick Pentreath (JIRA)" <>
Subject [jira] [Commented] (SPARK-22115) Add operator for linalg Matrix and Vector
Date Mon, 02 Oct 2017 08:00:28 GMT


Nick Pentreath commented on SPARK-22115:

Do we plan to make this private? Or are you suggesting to expose a new public API here?

> Add operator for linalg Matrix and Vector
> -----------------------------------------
>                 Key: SPARK-22115
>                 URL:
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML, MLlib
>    Affects Versions: 3.0.0
>            Reporter: Peng Meng
> For example, there are many code in LDA like this:
> {code:java}
> phiNorm := expElogbetad * expElogthetad +:+ 1e-100
> {code}
> expElogbetad is a breeze Matrix, expElogthetad is a breeze Vector, 
> This code will call a blas GEMV, then loop the result (:+ 1e-100)
> Actually, this can be done with only GEMV, because the standard interface of gemv is
> gemv(alpha, A, x, beta, y)        //y := alpha*A*x + beta*y
> We can provide some operators (e.g. Element-wise product (:*), Element-wise sum (:+))
to Spark linalg Matrix and Vector, and replace breeze Matrix and Vector by Spark linalg Matrix
and Vector. 
> Then for all the cases like: y = alpha*A*x + beta*y, we can call GEMM or GEMV for it.

> Don't need to call GEMM or GEMV and then loop the result (for the add) as the current
> I can help to do it if we plan to add this feature.  

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message