Closed drone29a closed 9 years ago
Hi @mattrepl the extra protocol implementations are very welcome!
Can you remove the redundancy however? In most cases you don't need to implement for specific subclasses of AVector
for example since the implementation for AVector
will do the job. Standard Java virtual method dispatch will take care of getting the right overriden implementation on the Java side.
If you can simplify all this then I will merge.
Ah yes, thanks for pointing that out. Some of this code was written under duress. =) There's more work needed to fully take advantage of the sparse structures.
Looks good, thanks!
Not sure why I missed this before, but I had added some protocol implementations to speed up operations (e.g., PNonZeroIndices).
These should be reviewed for design sensibility. Posting it here so we can discuss and I'm happy to modify.