Github user jkbradley commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9916#discussion_r49251958
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/BlockMatrix.scala
 ---
    @@ -351,6 +355,28 @@ class BlockMatrix @Since("1.3.0") (
         }
       }
     
    +  /**
    +   * Adds two block matrices together. The matrices must have the same 
size and matching
    +   * `rowsPerBlock` and `colsPerBlock` values. If one of the blocks that 
are being added are
    +   * instances of [[SparseMatrix]], the resulting sub matrix will also be 
a [[SparseMatrix]], even
    +   * if it is being added to a [[DenseMatrix]]. If two dense matrices are 
added, the output will
    +   * also be a [[DenseMatrix]].
    +   */
    +  @Since("1.3.0")
    +  def add(other: BlockMatrix): BlockMatrix =
    +    blockMap(other, (x: BM[Double], y: BM[Double]) => x + y)
    +
    +  /**
    +   * Subtracts two block matrices together. The matrices must have the 
same size and matching
    +   * `rowsPerBlock` and `colsPerBlock` values. If one of the blocks that 
are being added are
    +   * instances of [[SparseMatrix]], the resulting sub matrix will also be 
a [[SparseMatrix]], even
    +   * if it is being added to a [[DenseMatrix]]. If two dense matrices are 
added, the output will
    +   * also be a [[DenseMatrix]].
    +   */
    +  @Since("1.6.0")
    --- End diff --
    
    now needs to be updated to 2.0.0


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to