Documentation for Vector API zero methods

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P3
    • 16
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: