Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8255023

Documentation for Vector API zero methods

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 16
    • hotspot
    • None
    • behavioral
    • minimal
    • Java API
    • JDK

      Summary

      The Vector API is missing documentation for zero methods accepting a species on IntVector and all other specializations.

      Specification

      Specification on DoubleVector:

      /**
       * Returns a vector of the given species
       * where all lane elements are set to
       * zero, the default primitive value.
       *
       * @param species species of the desired zero vector
       * @return a zero vector
       */
      public static DoubleVector zero(VectorSpecies<Double> species)

      Same applies to ByteVector, ShortVector, IntVector, LongVector, and FloatVector.

            psandoz Paul Sandoz
            psandoz Paul Sandoz
            Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: