[vector] Why is it `FloatSpecies.zero()` and `FloatSpecies.broadcast()` but `FloatArray.fromArray()`?
Brian Goetz
brian.goetz at oracle.com
Fri Mar 15 21:57:02 UTC 2019
They are all migrating to XxxVector.
> On Mar 15, 2019, at 3:50 PM, Lev Serebryakov <lev at serebryakov.spb.ru> wrote:
>
>
> I, as early adopter of Vector API, was very surprised by inconsistency
> of fabric methods for vectors.
>
> Some of these methods are methods of "Spices" (`zero()`, `scalar()`,
> `random()` and `broadcast()`) and some of these methods (all
> `*fromArray()`) are class-methods of "Vector" and takes "Spices" as
> argument.
>
> Is here any rationale behind this inconsistency?
>
> --
> // Black Lion AKA Lev Serebryakov
>
More information about the panama-dev
mailing list