< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/FloatVector.java

Print this page




 444     public static final FloatVector single(Species<Float> s, float e) {
 445         return zero(s).with(0, e);
 446     }
 447 
 448     /**
 449      * Returns a vector where each lane element is set to a randomly
 450      * generated primitive value.
 451      *
 452      * The semantics are equivalent to calling
 453      * {@link ThreadLocalRandom#nextFloat()}
 454      *
 455      * @param s species of the desired vector
 456      * @return a vector where each lane elements is set to a randomly
 457      * generated primitive value
 458      */
 459     public static FloatVector random(Species<Float> s) {
 460         ThreadLocalRandom r = ThreadLocalRandom.current();
 461         return ((FloatSpecies)s).op(i -> r.nextFloat());
 462     }
 463 
 464     /**
 465      * Returns a mask where each lane is set or unset according to given
 466      * {@code boolean} values
 467      * <p>
 468      * For each mask lane, where {@code N} is the mask lane index,
 469      * if the given {@code boolean} value at index {@code N} is {@code true}
 470      * then the mask lane at index {@code N} is set, otherwise it is unset.
 471      *
 472      * @param species mask species
 473      * @param bits the given {@code boolean} values
 474      * @return a mask where each lane is set or unset according to the given {@code boolean} value
 475      * @throws IndexOutOfBoundsException if {@code bits.length < species.length()}
 476      */
 477     @ForceInline
 478     public static Mask<Float> maskFromValues(Species<Float> species, boolean... bits) {
 479         if (species.boxType() == FloatMaxVector.class)
 480             return new FloatMaxVector.FloatMaxMask(bits);
 481         switch (species.bitSize()) {
 482             case 64: return new Float64Vector.Float64Mask(bits);
 483             case 128: return new Float128Vector.Float128Mask(bits);
 484             case 256: return new Float256Vector.Float256Mask(bits);
 485             case 512: return new Float512Vector.Float512Mask(bits);
 486             default: throw new IllegalArgumentException(Integer.toString(species.bitSize()));
 487         }
 488     }
 489 
 490     // @@@ This is a bad implementation -- makes lambdas capturing -- fix this
 491     static Mask<Float> trueMask(Species<Float> species) {
 492         if (species.boxType() == FloatMaxVector.class)
 493             return FloatMaxVector.FloatMaxMask.TRUE_MASK;
 494         switch (species.bitSize()) {
 495             case 64: return Float64Vector.Float64Mask.TRUE_MASK;
 496             case 128: return Float128Vector.Float128Mask.TRUE_MASK;
 497             case 256: return Float256Vector.Float256Mask.TRUE_MASK;
 498             case 512: return Float512Vector.Float512Mask.TRUE_MASK;
 499             default: throw new IllegalArgumentException(Integer.toString(species.bitSize()));
 500         }
 501     }
 502 
 503     static Mask<Float> falseMask(Species<Float> species) {
 504         if (species.boxType() == FloatMaxVector.class)
 505             return FloatMaxVector.FloatMaxMask.FALSE_MASK;
 506         switch (species.bitSize()) {
 507             case 64: return Float64Vector.Float64Mask.FALSE_MASK;
 508             case 128: return Float128Vector.Float128Mask.FALSE_MASK;
 509             case 256: return Float256Vector.Float256Mask.FALSE_MASK;
 510             case 512: return Float512Vector.Float512Mask.FALSE_MASK;
 511             default: throw new IllegalArgumentException(Integer.toString(species.bitSize()));
 512         }
 513     }
 514 
 515     /**
 516      * Loads a mask from a {@code boolean} array starting at an offset.
 517      * <p>
 518      * For each mask lane, where {@code N} is the mask lane index,
 519      * if the array element at index {@code ix + N} is {@code true} then the
 520      * mask lane at index {@code N} is set, otherwise it is unset.
 521      *
 522      * @param species mask species
 523      * @param bits the {@code boolean} array
 524      * @param ix the offset into the array
 525      * @return the mask loaded from a {@code boolean} array
 526      * @throws IndexOutOfBoundsException if {@code ix < 0}, or
 527      * {@code ix > bits.length - species.length()}
 528      */
 529     @ForceInline
 530     @SuppressWarnings("unchecked")
 531     public static Mask<Float> maskFromArray(Species<Float> species, boolean[] bits, int ix) {
 532         Objects.requireNonNull(bits);
 533         ix = VectorIntrinsics.checkIndex(ix, bits.length, species.length());
 534         return VectorIntrinsics.load((Class<Mask<Float>>) species.maskType(), int.class, species.length(),
 535                                      bits, (((long) ix) << ARRAY_SHIFT) + Unsafe.ARRAY_BOOLEAN_BASE_OFFSET,
 536                                      bits, ix, species,
 537                                      (c, idx, s) -> (Mask<Float>) ((FloatSpecies)s).opm(n -> c[idx + n]));
 538     }
 539 
 540     /**
 541      * Returns a mask where all lanes are set.
 542      *
 543      * @param species mask species
 544      * @return a mask where all lanes are set
 545      */
 546     @ForceInline
 547     @SuppressWarnings("unchecked")
 548     public static Mask<Float> maskAllTrue(Species<Float> species) {
 549         return VectorIntrinsics.broadcastCoerced((Class<Mask<Float>>) species.maskType(), int.class, species.length(),
 550                                                  (int)-1,  species,
 551                                                  ((z, s) -> trueMask(s)));
 552     }
 553 
 554     /**
 555      * Returns a mask where all lanes are unset.
 556      *
 557      * @param species mask species
 558      * @return a mask where all lanes are unset
 559      */
 560     @ForceInline
 561     @SuppressWarnings("unchecked")
 562     public static Mask<Float> maskAllFalse(Species<Float> species) {
 563         return VectorIntrinsics.broadcastCoerced((Class<Mask<Float>>) species.maskType(), int.class, species.length(),
 564                                                  0, species, 
 565                                                  ((z, s) -> falseMask(s)));
 566     }
 567 
 568     /**
 569      * Returns a shuffle of mapped indexes where each lane element is
 570      * the result of applying a mapping function to the corresponding lane
 571      * index.
 572      * <p>
 573      * Care should be taken to ensure Shuffle values produced from this
 574      * method are consumed as constants to ensure optimal generation of
 575      * code.  For example, values held in static final fields or values
 576      * held in loop constant local variables.
 577      * <p>
 578      * This method behaves as if a shuffle is created from an array of
 579      * mapped indexes as follows:
 580      * <pre>{@code
 581      *   int[] a = new int[species.length()];
 582      *   for (int i = 0; i < a.length; i++) {
 583      *       a[i] = f.applyAsInt(i);
 584      *   }
 585      *   return this.shuffleFromValues(a);
 586      * }</pre>
 587      *
 588      * @param species shuffle species
 589      * @param f the lane index mapping function
 590      * @return a shuffle of mapped indexes
 591      */
 592     @ForceInline
 593     public static Shuffle<Float> shuffle(Species<Float> species, IntUnaryOperator f) {
 594         if (species.boxType() == FloatMaxVector.class)
 595             return new FloatMaxVector.FloatMaxShuffle(f);
 596         switch (species.bitSize()) {
 597             case 64: return new Float64Vector.Float64Shuffle(f);
 598             case 128: return new Float128Vector.Float128Shuffle(f);
 599             case 256: return new Float256Vector.Float256Shuffle(f);
 600             case 512: return new Float512Vector.Float512Shuffle(f);
 601             default: throw new IllegalArgumentException(Integer.toString(species.bitSize()));
 602         }
 603     }
 604 
 605     /**
 606      * Returns a shuffle where each lane element is the value of its
 607      * corresponding lane index.
 608      * <p>
 609      * This method behaves as if a shuffle is created from an identity
 610      * index mapping function as follows:
 611      * <pre>{@code
 612      *   return this.shuffle(i -> i);
 613      * }</pre>
 614      *
 615      * @param species shuffle species
 616      * @return a shuffle of lane indexes
 617      */
 618     @ForceInline
 619     public static Shuffle<Float> shuffleIota(Species<Float> species) {
 620         if (species.boxType() == FloatMaxVector.class)
 621             return new FloatMaxVector.FloatMaxShuffle(AbstractShuffle.IDENTITY);
 622         switch (species.bitSize()) {
 623             case 64: return new Float64Vector.Float64Shuffle(AbstractShuffle.IDENTITY);
 624             case 128: return new Float128Vector.Float128Shuffle(AbstractShuffle.IDENTITY);
 625             case 256: return new Float256Vector.Float256Shuffle(AbstractShuffle.IDENTITY);
 626             case 512: return new Float512Vector.Float512Shuffle(AbstractShuffle.IDENTITY);
 627             default: throw new IllegalArgumentException(Integer.toString(species.bitSize()));
 628         }
 629     }
 630 
 631     /**
 632      * Returns a shuffle where each lane element is set to a given
 633      * {@code int} value logically AND'ed by the species length minus one.
 634      * <p>
 635      * For each shuffle lane, where {@code N} is the shuffle lane index, the
 636      * the {@code int} value at index {@code N} logically AND'ed by
 637      * {@code species.length() - 1} is placed into the resulting shuffle at
 638      * lane index {@code N}.
 639      *
 640      * @param species shuffle species
 641      * @param ixs the given {@code int} values
 642      * @return a shuffle where each lane element is set to a given
 643      * {@code int} value
 644      * @throws IndexOutOfBoundsException if the number of int values is
 645      * {@code < species.length()}
 646      */
 647     @ForceInline
 648     public static Shuffle<Float> shuffleFromValues(Species<Float> species, int... ixs) {
 649         if (species.boxType() == FloatMaxVector.class)
 650             return new FloatMaxVector.FloatMaxShuffle(ixs);
 651         switch (species.bitSize()) {
 652             case 64: return new Float64Vector.Float64Shuffle(ixs);
 653             case 128: return new Float128Vector.Float128Shuffle(ixs);
 654             case 256: return new Float256Vector.Float256Shuffle(ixs);
 655             case 512: return new Float512Vector.Float512Shuffle(ixs);
 656             default: throw new IllegalArgumentException(Integer.toString(species.bitSize()));
 657         }
 658     }
 659 
 660     /**
 661      * Loads a shuffle from an {@code int} array starting at an offset.
 662      * <p>
 663      * For each shuffle lane, where {@code N} is the shuffle lane index, the
 664      * array element at index {@code i + N} logically AND'ed by
 665      * {@code species.length() - 1} is placed into the resulting shuffle at lane
 666      * index {@code N}.
 667      *
 668      * @param species shuffle species
 669      * @param ixs the {@code int} array
 670      * @param i the offset into the array
 671      * @return a shuffle loaded from the {@code int} array
 672      * @throws IndexOutOfBoundsException if {@code i < 0}, or
 673      * {@code i > a.length - species.length()}
 674      */
 675     @ForceInline
 676     public static Shuffle<Float> shuffleFromArray(Species<Float> species, int[] ixs, int i) {
 677         if (species.boxType() == FloatMaxVector.class)
 678             return new FloatMaxVector.FloatMaxShuffle(ixs, i);
 679         switch (species.bitSize()) {
 680             case 64: return new Float64Vector.Float64Shuffle(ixs, i);
 681             case 128: return new Float128Vector.Float128Shuffle(ixs, i);
 682             case 256: return new Float256Vector.Float256Shuffle(ixs, i);
 683             case 512: return new Float512Vector.Float512Shuffle(ixs, i);
 684             default: throw new IllegalArgumentException(Integer.toString(species.bitSize()));
 685         }
 686     }
 687 
 688     // Ops
 689 
 690     @Override
 691     public abstract FloatVector add(Vector<Float> v);
 692 
 693     /**
 694      * Adds this vector to the broadcast of an input scalar.
 695      * <p>
 696      * This is a vector binary operation where the primitive addition operation
 697      * ({@code +}) is applied to lane elements.
 698      *
 699      * @param s the input scalar
 700      * @return the result of adding this vector to the broadcast of an input
 701      * scalar
 702      */
 703     public abstract FloatVector add(float s);
 704 
 705     @Override
 706     public abstract FloatVector add(Vector<Float> v, Mask<Float> m);
 707 


2082      * @param a the array
2083      * @param i the offset into the array, may be negative if relative
2084      * indexes in the index map compensate to produce a value within the
2085      * array bounds
2086      * @param m the mask
2087      * @param indexMap the index map
2088      * @param j the offset into the index map
2089      * @throws IndexOutOfBoundsException if {@code j < 0}, or
2090      * {@code j > indexMap.length - this.length()},
2091      * or for any vector lane index {@code N} where the mask at lane
2092      * {@code N} is set the result of {@code i + indexMap[j + N]} is
2093      * {@code < 0} or {@code >= a.length}
2094      */
2095     public abstract void intoArray(float[] a, int i, Mask<Float> m, int[] indexMap, int j);
2096     // Species
2097 
2098     @Override
2099     public abstract Species<Float> species();
2100 
2101     /**
2102      * Class representing {@link FloatVector}'s of the same {@link Vector.Shape Shape}.
2103      */
2104     static final class FloatSpecies extends Vector.AbstractSpecies<Float> {
2105         final Function<float[], FloatVector> vectorFactory;
2106         final Function<boolean[], Vector.Mask<Float>> maskFactory;
2107 
2108         private FloatSpecies(Vector.Shape shape,
2109                           Class<?> boxType,
2110                           Class<?> maskType,
2111                           Function<float[], FloatVector> vectorFactory,
2112                           Function<boolean[], Vector.Mask<Float>> maskFactory) {
2113             super(shape, float.class, Float.SIZE, boxType, maskType);



2114             this.vectorFactory = vectorFactory;
2115             this.maskFactory = maskFactory;
2116         }
2117 
2118         interface FOp {
2119             float apply(int i);
2120         }
2121 
2122         interface FOpm {
2123             boolean apply(int i);
2124         }
2125 
2126         FloatVector op(FOp f) {
2127             float[] res = new float[length()];
2128             for (int i = 0; i < length(); i++) {
2129                 res[i] = f.apply(i);
2130             }
2131             return vectorFactory.apply(res);
2132         }
2133 
2134         FloatVector op(Vector.Mask<Float> o, FOp f) {
2135             float[] res = new float[length()];
2136             boolean[] mbits = ((AbstractMask<Float>)o).getBits();
2137             for (int i = 0; i < length(); i++) {
2138                 if (mbits[i]) {
2139                     res[i] = f.apply(i);
2140                 }
2141             }
2142             return vectorFactory.apply(res);
2143         }
2144 
2145         Vector.Mask<Float> opm(IntVector.IntSpecies.FOpm f) {
2146             boolean[] res = new boolean[length()];
2147             for (int i = 0; i < length(); i++) {
2148                 res[i] = (boolean)f.apply(i);
2149             }
2150             return maskFactory.apply(res);
2151         }
2152     }
2153 
2154     /**
2155      * Finds the preferred species for an element type of {@code float}.
2156      * <p>
2157      * A preferred species is a species chosen by the platform that has a
2158      * shape of maximal bit size.  A preferred species for different element
2159      * types will have the same shape, and therefore vectors, masks, and
2160      * shuffles created from such species will be shape compatible.
2161      *
2162      * @return the preferred species for an element type of {@code float}
2163      */
2164     private static FloatSpecies preferredSpecies() {
2165         return (FloatSpecies) Species.ofPreferred(float.class);
2166     }
2167 
2168     /**
2169      * Finds a species for an element type of {@code float} and shape.
2170      *
2171      * @param s the shape
2172      * @return a species for an element type of {@code float} and shape
2173      * @throws IllegalArgumentException if no such species exists for the shape
2174      */
2175     static FloatSpecies species(Vector.Shape s) {
2176         Objects.requireNonNull(s);
2177         switch (s) {
2178             case S_64_BIT: return (FloatSpecies) SPECIES_64;
2179             case S_128_BIT: return (FloatSpecies) SPECIES_128;
2180             case S_256_BIT: return (FloatSpecies) SPECIES_256;
2181             case S_512_BIT: return (FloatSpecies) SPECIES_512;
2182             case S_Max_BIT: return (FloatSpecies) SPECIES_MAX;
2183             default: throw new IllegalArgumentException("Bad shape: " + s);
2184         }
2185     }
2186 
2187     /** Species representing {@link FloatVector}s of {@link Vector.Shape#S_64_BIT Shape.S_64_BIT}. */
2188     public static final Species<Float> SPECIES_64 = new FloatSpecies(Shape.S_64_BIT, Float64Vector.class, Float64Vector.Float64Mask.class,
2189                                                                      Float64Vector::new, Float64Vector.Float64Mask::new);

2190 
2191     /** Species representing {@link FloatVector}s of {@link Vector.Shape#S_128_BIT Shape.S_128_BIT}. */
2192     public static final Species<Float> SPECIES_128 = new FloatSpecies(Shape.S_128_BIT, Float128Vector.class, Float128Vector.Float128Mask.class,
2193                                                                       Float128Vector::new, Float128Vector.Float128Mask::new);

2194 
2195     /** Species representing {@link FloatVector}s of {@link Vector.Shape#S_256_BIT Shape.S_256_BIT}. */
2196     public static final Species<Float> SPECIES_256 = new FloatSpecies(Shape.S_256_BIT, Float256Vector.class, Float256Vector.Float256Mask.class,
2197                                                                       Float256Vector::new, Float256Vector.Float256Mask::new);

2198 
2199     /** Species representing {@link FloatVector}s of {@link Vector.Shape#S_512_BIT Shape.S_512_BIT}. */
2200     public static final Species<Float> SPECIES_512 = new FloatSpecies(Shape.S_512_BIT, Float512Vector.class, Float512Vector.Float512Mask.class,
2201                                                                       Float512Vector::new, Float512Vector.Float512Mask::new);

2202 
2203     /** Species representing {@link FloatVector}s of {@link Vector.Shape#S_Max_BIT Shape.S_Max_BIT}. */
2204     public static final Species<Float> SPECIES_MAX = new FloatSpecies(Shape.S_Max_BIT, FloatMaxVector.class, FloatMaxVector.FloatMaxMask.class,
2205                                                                       FloatMaxVector::new, FloatMaxVector.FloatMaxMask::new);

2206 
2207     /**
2208      * Preferred species for {@link FloatVector}s.
2209      * A preferred species is a species of maximal bit size for the platform.
2210      */
2211     public static final Species<Float> SPECIES_PREFERRED = (Species<Float>) preferredSpecies();
2212 }


 444     public static final FloatVector single(Species<Float> s, float e) {
 445         return zero(s).with(0, e);
 446     }
 447 
 448     /**
 449      * Returns a vector where each lane element is set to a randomly
 450      * generated primitive value.
 451      *
 452      * The semantics are equivalent to calling
 453      * {@link ThreadLocalRandom#nextFloat()}
 454      *
 455      * @param s species of the desired vector
 456      * @return a vector where each lane elements is set to a randomly
 457      * generated primitive value
 458      */
 459     public static FloatVector random(Species<Float> s) {
 460         ThreadLocalRandom r = ThreadLocalRandom.current();
 461         return ((FloatSpecies)s).op(i -> r.nextFloat());
 462     }
 463 
































































































































































































































 464     // Ops
 465 
 466     @Override
 467     public abstract FloatVector add(Vector<Float> v);
 468 
 469     /**
 470      * Adds this vector to the broadcast of an input scalar.
 471      * <p>
 472      * This is a vector binary operation where the primitive addition operation
 473      * ({@code +}) is applied to lane elements.
 474      *
 475      * @param s the input scalar
 476      * @return the result of adding this vector to the broadcast of an input
 477      * scalar
 478      */
 479     public abstract FloatVector add(float s);
 480 
 481     @Override
 482     public abstract FloatVector add(Vector<Float> v, Mask<Float> m);
 483 


1858      * @param a the array
1859      * @param i the offset into the array, may be negative if relative
1860      * indexes in the index map compensate to produce a value within the
1861      * array bounds
1862      * @param m the mask
1863      * @param indexMap the index map
1864      * @param j the offset into the index map
1865      * @throws IndexOutOfBoundsException if {@code j < 0}, or
1866      * {@code j > indexMap.length - this.length()},
1867      * or for any vector lane index {@code N} where the mask at lane
1868      * {@code N} is set the result of {@code i + indexMap[j + N]} is
1869      * {@code < 0} or {@code >= a.length}
1870      */
1871     public abstract void intoArray(float[] a, int i, Mask<Float> m, int[] indexMap, int j);
1872     // Species
1873 
1874     @Override
1875     public abstract Species<Float> species();
1876 
1877     /**
1878      * Class representing {@link FloatVector}'s of the same {@link Shape Shape}.
1879      */
1880     static final class FloatSpecies extends AbstractSpecies<Float> {
1881         final Function<float[], FloatVector> vectorFactory;

1882 
1883         private FloatSpecies(Shape shape,
1884                           Class<?> boxType,
1885                           Class<?> maskType,
1886                           Function<float[], FloatVector> vectorFactory,
1887                           Function<boolean[], Mask<Float>> maskFactory,
1888                           Function<IntUnaryOperator, Shuffle<Float>> shuffleFromArrayFactory,
1889                           fShuffleFromArray<Float> shuffleFromOpFactory) {
1890             super(shape, float.class, Float.SIZE, boxType, maskType, maskFactory,
1891                   shuffleFromArrayFactory, shuffleFromOpFactory);
1892             this.vectorFactory = vectorFactory;

1893         }
1894 
1895         interface FOp {
1896             float apply(int i);
1897         }
1898 
1899         interface FOpm {
1900             boolean apply(int i);
1901         }
1902 
1903         FloatVector op(FOp f) {
1904             float[] res = new float[length()];
1905             for (int i = 0; i < length(); i++) {
1906                 res[i] = f.apply(i);
1907             }
1908             return vectorFactory.apply(res);
1909         }
1910 
1911         FloatVector op(Mask<Float> o, FOp f) {
1912             float[] res = new float[length()];
1913             boolean[] mbits = ((AbstractMask<Float>)o).getBits();
1914             for (int i = 0; i < length(); i++) {
1915                 if (mbits[i]) {
1916                     res[i] = f.apply(i);
1917                 }
1918             }
1919             return vectorFactory.apply(res);
1920         }








1921     }
1922 
1923     /**
1924      * Finds the preferred species for an element type of {@code float}.
1925      * <p>
1926      * A preferred species is a species chosen by the platform that has a
1927      * shape of maximal bit size.  A preferred species for different element
1928      * types will have the same shape, and therefore vectors, masks, and
1929      * shuffles created from such species will be shape compatible.
1930      *
1931      * @return the preferred species for an element type of {@code float}
1932      */
1933     private static FloatSpecies preferredSpecies() {
1934         return (FloatSpecies) Species.ofPreferred(float.class);
1935     }
1936 
1937     /**
1938      * Finds a species for an element type of {@code float} and shape.
1939      *
1940      * @param s the shape
1941      * @return a species for an element type of {@code float} and shape
1942      * @throws IllegalArgumentException if no such species exists for the shape
1943      */
1944     static FloatSpecies species(Shape s) {
1945         Objects.requireNonNull(s);
1946         switch (s) {
1947             case S_64_BIT: return (FloatSpecies) SPECIES_64;
1948             case S_128_BIT: return (FloatSpecies) SPECIES_128;
1949             case S_256_BIT: return (FloatSpecies) SPECIES_256;
1950             case S_512_BIT: return (FloatSpecies) SPECIES_512;
1951             case S_Max_BIT: return (FloatSpecies) SPECIES_MAX;
1952             default: throw new IllegalArgumentException("Bad shape: " + s);
1953         }
1954     }
1955 
1956     /** Species representing {@link FloatVector}s of {@link Shape#S_64_BIT Shape.S_64_BIT}. */
1957     public static final Species<Float> SPECIES_64 = new FloatSpecies(Shape.S_64_BIT, Float64Vector.class, Float64Vector.Float64Mask.class,
1958                                                                      Float64Vector::new, Float64Vector.Float64Mask::new,
1959                                                                      Float64Vector.Float64Shuffle::new, Float64Vector.Float64Shuffle::new);
1960 
1961     /** Species representing {@link FloatVector}s of {@link Shape#S_128_BIT Shape.S_128_BIT}. */
1962     public static final Species<Float> SPECIES_128 = new FloatSpecies(Shape.S_128_BIT, Float128Vector.class, Float128Vector.Float128Mask.class,
1963                                                                       Float128Vector::new, Float128Vector.Float128Mask::new,
1964                                                                       Float128Vector.Float128Shuffle::new, Float128Vector.Float128Shuffle::new);
1965 
1966     /** Species representing {@link FloatVector}s of {@link Shape#S_256_BIT Shape.S_256_BIT}. */
1967     public static final Species<Float> SPECIES_256 = new FloatSpecies(Shape.S_256_BIT, Float256Vector.class, Float256Vector.Float256Mask.class,
1968                                                                       Float256Vector::new, Float256Vector.Float256Mask::new,
1969                                                                       Float256Vector.Float256Shuffle::new, Float256Vector.Float256Shuffle::new);
1970 
1971     /** Species representing {@link FloatVector}s of {@link Shape#S_512_BIT Shape.S_512_BIT}. */
1972     public static final Species<Float> SPECIES_512 = new FloatSpecies(Shape.S_512_BIT, Float512Vector.class, Float512Vector.Float512Mask.class,
1973                                                                       Float512Vector::new, Float512Vector.Float512Mask::new,
1974                                                                       Float512Vector.Float512Shuffle::new, Float512Vector.Float512Shuffle::new);
1975 
1976     /** Species representing {@link FloatVector}s of {@link Shape#S_Max_BIT Shape.S_Max_BIT}. */
1977     public static final Species<Float> SPECIES_MAX = new FloatSpecies(Shape.S_Max_BIT, FloatMaxVector.class, FloatMaxVector.FloatMaxMask.class,
1978                                                                       FloatMaxVector::new, FloatMaxVector.FloatMaxMask::new,
1979                                                                       FloatMaxVector.FloatMaxShuffle::new, FloatMaxVector.FloatMaxShuffle::new);
1980 
1981     /**
1982      * Preferred species for {@link FloatVector}s.
1983      * A preferred species is a species of maximal bit size for the platform.
1984      */
1985     public static final Species<Float> SPECIES_PREFERRED = (Species<Float>) preferredSpecies();
1986 }
< prev index next >