[Vector API] Why to talk about lanes, shapes and species in the API doc?

Dietmar Lippold dietmar.lippold at mailbox.org
Thu Apr 7 20:48:13 UTC 2022


I have now created a repository and put the three files into it. It is accessible under https://github.com/dlippold/java-hl-vector

Dietmar

> Dietmar Lippold <dietmar.lippold at mailbox.org> hat am 03.04.2022 23:22 geschrieben:
> 
>  
> Hi Paul, hi August,
> 
> thanks for your positive answers. Attached I send such an partial implementation of a higher-level class which uses IntVector (named "HighLevelIntVector"), as well as a superclass ("HighLevelVector") and a test class ("HighLevelTest"). These belong to a package named "hlvector". The test class contains the following method:
> 
>     public static int[] intVectorComputation(int[] a, int[] b) {
> 
>         var va = HighLevelIntVector.fromArray(a);
>         var vb = HighLevelIntVector.fromArray(b);
>         var vc = va.mul(va)
>                    .add(vb.mul(vb))
>                    .neg();
> 
>         return vc.toArray();
>     }
> 
> What do you think about these classes?
> 
> Dietmar
> 
> 
> > Paul Sandoz <paul.sandoz at oracle.com> hat am 01.04.2022 02:00 geschrieben:
> > 
> >  
> > Hi Dietmar,
> > 
> > I think what might be useful exploration is a higher-level API whose implementation uses the Vector API. Vector API will remain focused on specific shapes (perhaps expanding from the current set into small groups of vectors).


More information about the panama-dev mailing list