Specialization for short and byte

15 views
Skip to first unread message

Alan Effrig

unread,
Jul 8, 2016, 3:01:49 PM7/8/16
to Scala Breeze
I am working with grayscale image data, and I was surprised to find that DenseMatrix was defined as

final class DenseMatrix[@spec(Double, Int, Float, Long) V ...

with no specialization for Short or Byte.  Is there some reason why not?  Is this addition worthy of a PR?

Regards,
Alan

David Hall

unread,
Jul 9, 2016, 3:18:33 AM7/9/16
to scala-...@googlegroups.com
I'd probably take it as a PR. I didn't do it historically because no one wanted it and it causes a nontrivial amount of bytecode bloat, but it's probably worth it

--
You received this message because you are subscribed to the Google Groups "Scala Breeze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-breeze...@googlegroups.com.
To post to this group, send email to scala-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scala-breeze/e4742d9c-a319-4c30-bbf2-3dea7d6f5300%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages