Github user MechCoder commented on the pull request:
https://github.com/apache/spark/pull/5946#issuecomment-99560518
@jkbradley I was also thinking of vectorizing the sparse dot. I came up
with this. Can you think of anything better?
def dot(self, other):
cm1 = np.in1d(self.indices, other.indices)
cm2 = np.in1d(other,indices, self.indices)
return np.dot(self.values[cm1], other.values[cm2])
---
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]