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

    https://github.com/apache/spark/pull/9139#discussion_r42567638
  
    --- Diff: python/pyspark/mllib/linalg/distributed.py ---
    @@ -775,6 +775,80 @@ def numCols(self):
             """
             return self._java_matrix_wrapper.call("numCols")
     
    +    def add(self, other):
    +        """
    +        Adds two block matrices together. The matrices must have the
    +        same size and matching `rowsPerBlock` and `colsPerBlock` values.
    +        If one of the sub matrix blocks that are being added is a
    +        SparseMatrix, the resulting sub matrix block will also be a
    +        SparseMatrix, even if it is being added to a DenseMatrix. If
    +        two dense sub matrix blocks are added, the output block will
    +        also be a DenseMatrix.
    +
    +        :param other: A BlockMatrix
    --- End diff --
    
    `param other` and `return` is not necessary here. `A BlockMatrix` doesn't 
provide much info.


---
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