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

    https://github.com/apache/spark/pull/5312#discussion_r27590985
  
    --- Diff: python/pyspark/mllib/linalg.py ---
    @@ -292,6 +309,25 @@ def __ne__(self, other):
         def __getattr__(self, item):
             return getattr(self.array, item)
     
    +    def _delegate(op):
    +        def func(self, other):
    +            if isinstance(other, DenseVector):
    +                other = other.array
    +            return getattr(self.array, op)(other)
    --- End diff --
    
    Should we return an DenseVector?


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