インタフェースjdk.incubator.vector.VectorSpeciesの
使用
VectorSpeciesを使用するパッケージ
-
jdk.incubator.vectorでのVectorSpeciesの使用
VectorSpeciesとして宣言されたjdk.incubator.vectorのフィールド修飾子と型フィールド説明static VectorSpecies<Byte>
ByteVector.SPECIES_128
static VectorSpecies<Double>
DoubleVector.SPECIES_128
static VectorSpecies<Float>
FloatVector.SPECIES_128
static VectorSpecies<Integer>
IntVector.SPECIES_128
static VectorSpecies<Long>
LongVector.SPECIES_128
static VectorSpecies<Short>
ShortVector.SPECIES_128
static VectorSpecies<Byte>
ByteVector.SPECIES_256
static VectorSpecies<Double>
DoubleVector.SPECIES_256
static VectorSpecies<Float>
FloatVector.SPECIES_256
static VectorSpecies<Integer>
IntVector.SPECIES_256
static VectorSpecies<Long>
LongVector.SPECIES_256
static VectorSpecies<Short>
ShortVector.SPECIES_256
static VectorSpecies<Byte>
ByteVector.SPECIES_512
static VectorSpecies<Double>
DoubleVector.SPECIES_512
static VectorSpecies<Float>
FloatVector.SPECIES_512
static VectorSpecies<Integer>
IntVector.SPECIES_512
static VectorSpecies<Long>
LongVector.SPECIES_512
static VectorSpecies<Short>
ShortVector.SPECIES_512
static VectorSpecies<Byte>
ByteVector.SPECIES_64
static VectorSpecies<Double>
DoubleVector.SPECIES_64
static VectorSpecies<Float>
FloatVector.SPECIES_64
static VectorSpecies<Integer>
IntVector.SPECIES_64
static VectorSpecies<Long>
LongVector.SPECIES_64
static VectorSpecies<Short>
ShortVector.SPECIES_64
static VectorSpecies<Byte>
ByteVector.SPECIES_MAX
static VectorSpecies<Double>
DoubleVector.SPECIES_MAX
static VectorSpecies<Float>
FloatVector.SPECIES_MAX
static VectorSpecies<Integer>
IntVector.SPECIES_MAX
static VectorSpecies<Long>
LongVector.SPECIES_MAX
static VectorSpecies<Short>
ShortVector.SPECIES_MAX
static VectorSpecies<Byte>
ByteVector.SPECIES_PREFERRED
ByteVector
の優先種。static VectorSpecies<Double>
DoubleVector.SPECIES_PREFERRED
DoubleVector
の優先種。static VectorSpecies<Float>
FloatVector.SPECIES_PREFERRED
FloatVector
の優先種。static VectorSpecies<Integer>
IntVector.SPECIES_PREFERRED
IntVector
の優先種。static VectorSpecies<Long>
LongVector.SPECIES_PREFERRED
LongVector
の優先種。static VectorSpecies<Short>
ShortVector.SPECIES_PREFERRED
ShortVector
の優先種。修飾子と型メソッド説明<F> VectorSpecies<F>
この種が指定された要素型を持っているかどうかを判定し、この種をそのまま返します。static <E> VectorSpecies<E>
VectorSpecies.of(Class<E> elementType, VectorShape shape)
要素の型とシェイプの種を検索します。static <E> VectorSpecies<E>
VectorSpecies.ofLargestShape(Class<E> etype)
指定された要素型の最大のベクトル種を検索します。static <E> VectorSpecies<E>
VectorSpecies.ofPreferred(Class<E> etype)
指定されたベクトル要素型について、現在のプラットフォームが優先する種を検索します。abstract VectorSpecies<E>
Vector.species()
このベクトルの種を返します。abstract VectorSpecies<E>
VectorMask.vectorSpecies()
このマスクが適用されるベクトル種を返します。abstract VectorSpecies<E>
VectorShuffle.vectorSpecies()
このシャッフルの種を返します。<E> VectorSpecies<E>
指定された要素型と現在のシェイプを持つベクトル種を検索します。<F> VectorSpecies<F>
指定された要素タイプとこの種と同じシェイプを持つ種を検索します。VectorSpecies.withShape(VectorShape newShape)
指定されたシェイプとこの種と同じelementTypeを持つ種を検索します。型VectorSpeciesのパラメータを持つjdk.incubator.vectorのメソッド修飾子と型メソッド説明static ByteVector
ByteVector.broadcast(VectorSpecies<Byte> species, byte e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static ByteVector
ByteVector.broadcast(VectorSpecies<Byte> species, long e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static DoubleVector
DoubleVector.broadcast(VectorSpecies<Double> species, double e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static DoubleVector
DoubleVector.broadcast(VectorSpecies<Double> species, long e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static FloatVector
FloatVector.broadcast(VectorSpecies<Float> species, float e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static FloatVector
FloatVector.broadcast(VectorSpecies<Float> species, long e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static IntVector
IntVector.broadcast(VectorSpecies<Integer> species, int e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static IntVector
IntVector.broadcast(VectorSpecies<Integer> species, long e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static LongVector
LongVector.broadcast(VectorSpecies<Long> species, long e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static ShortVector
ShortVector.broadcast(VectorSpecies<Short> species, long e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。static ShortVector
ShortVector.broadcast(VectorSpecies<Short> species, short e)
すべてのレーン要素がプリミティブ値e
に設定されている、指定された種のベクトルを返します。abstract <F> VectorMask<F>
VectorMask.cast(VectorSpecies<F> species)
このマスクを、指定された種の要素型F
のマスクに変換します。abstract <F> VectorShuffle<F>
VectorShuffle.cast(VectorSpecies<F> species)
このシャッフルを、要素型F
の指定された種のシャッフルに変換します。abstract <F> Vector<F>
Vector.castShape(VectorSpecies<F> rsp, int part)
ベクトルをあるレーン・タイプから別のレーン・タイプに変換する便利なメソッドで、レーン・サイズが変更されたときに必要に応じてシェイプを変更します。abstract <F> Vector<F>
Vector.check(VectorSpecies<F> species)
このベクトルが指定された種を持っているかどうかを判定し、このベクトルをそのまま返します。abstract <F> VectorMask<F>
VectorMask.check(VectorSpecies<F> species)
このマスクが指定された種を持っていることを確認し、このマスクをそのまま返します。abstract <F> VectorShuffle<F>
VectorShuffle.check(VectorSpecies<F> species)
このシャッフルが指定された種を持っていることを確認し、このシャッフルをそのまま返します。abstract <F> Vector<F>
Vector.convertShape(VectorOperators.Conversion<E,F> conv, VectorSpecies<F> rsp, int part)
指定された「変換」に従って、このベクトルを指定された種、シェイプ、および要素型のベクトルに変換し、レーン値を現在のETYPE
から新しいレーン型(ここではFTYPE
と呼びます)に変換します。static ByteVector
ByteVector.fromArray(VectorSpecies<Byte> species, byte[] a, int offset)
オフセットから始まるbyte[]
型の配列からベクトルをロードします。static ByteVector
ByteVector.fromArray(VectorSpecies<Byte> species, byte[] a, int offset, int[] indexMap, int mapOffset)
「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用して、byte[]
タイプの配列から要素で構成される新しいベクトルを収集します。static ByteVector
ByteVector.fromArray(VectorSpecies<Byte> species, byte[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Byte> m)
マスクの制御下にあるbyte[]
型の配列から要素で構成される新しいベクトルを収集し、「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用します。static ByteVector
ByteVector.fromArray(VectorSpecies<Byte> species, byte[] a, int offset, VectorMask<Byte> m)
オフセットからマスクを使用して、byte[]
型の配列からベクトルをロードします。static DoubleVector
DoubleVector.fromArray(VectorSpecies<Double> species, double[] a, int offset)
オフセットから始まるdouble[]
型の配列からベクトルをロードします。static DoubleVector
DoubleVector.fromArray(VectorSpecies<Double> species, double[] a, int offset, int[] indexMap, int mapOffset)
「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用して、double[]
タイプの配列から要素で構成される新しいベクトルを収集します。static DoubleVector
DoubleVector.fromArray(VectorSpecies<Double> species, double[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Double> m)
マスクの制御下にあるdouble[]
型の配列から要素で構成される新しいベクトルを収集し、「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用します。static DoubleVector
DoubleVector.fromArray(VectorSpecies<Double> species, double[] a, int offset, VectorMask<Double> m)
オフセットからマスクを使用して、double[]
型の配列からベクトルをロードします。static FloatVector
FloatVector.fromArray(VectorSpecies<Float> species, float[] a, int offset)
オフセットから始まるfloat[]
型の配列からベクトルをロードします。static FloatVector
FloatVector.fromArray(VectorSpecies<Float> species, float[] a, int offset, int[] indexMap, int mapOffset)
「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用して、float[]
タイプの配列から要素で構成される新しいベクトルを収集します。static FloatVector
FloatVector.fromArray(VectorSpecies<Float> species, float[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Float> m)
マスクの制御下にあるfloat[]
型の配列から要素で構成される新しいベクトルを収集し、「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用します。static FloatVector
FloatVector.fromArray(VectorSpecies<Float> species, float[] a, int offset, VectorMask<Float> m)
オフセットからマスクを使用して、float[]
型の配列からベクトルをロードします。static IntVector
IntVector.fromArray(VectorSpecies<Integer> species, int[] a, int offset)
オフセットから始まるint[]
型の配列からベクトルをロードします。static IntVector
IntVector.fromArray(VectorSpecies<Integer> species, int[] a, int offset, int[] indexMap, int mapOffset)
「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用して、int[]
タイプの配列から要素で構成される新しいベクトルを収集します。static IntVector
IntVector.fromArray(VectorSpecies<Integer> species, int[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Integer> m)
マスクの制御下にあるint[]
型の配列から要素で構成される新しいベクトルを収集し、「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用します。static IntVector
IntVector.fromArray(VectorSpecies<Integer> species, int[] a, int offset, VectorMask<Integer> m)
オフセットからマスクを使用して、int[]
型の配列からベクトルをロードします。static LongVector
LongVector.fromArray(VectorSpecies<Long> species, long[] a, int offset)
オフセットから始まるlong[]
型の配列からベクトルをロードします。static LongVector
LongVector.fromArray(VectorSpecies<Long> species, long[] a, int offset, int[] indexMap, int mapOffset)
「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用して、long[]
タイプの配列から要素で構成される新しいベクトルを収集します。static LongVector
LongVector.fromArray(VectorSpecies<Long> species, long[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Long> m)
マスクの制御下にあるlong[]
型の配列から要素で構成される新しいベクトルを収集し、「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用します。static LongVector
LongVector.fromArray(VectorSpecies<Long> species, long[] a, int offset, VectorMask<Long> m)
オフセットからマスクを使用して、long[]
型の配列からベクトルをロードします。static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset)
オフセットから始まるshort[]
型の配列からベクトルをロードします。static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, int[] indexMap, int mapOffset)
「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用して、short[]
タイプの配列から要素で構成される新しいベクトルを収集します。static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, int[] indexMap, int mapOffset, VectorMask<Short> m)
マスクの制御下にあるshort[]
型の配列から要素で構成される新しいベクトルを収集し、「索引マップ」から一連のセカンダリ・オフセットに固定offset
を追加して取得した索引を使用します。static ShortVector
ShortVector.fromArray(VectorSpecies<Short> species, short[] a, int offset, VectorMask<Short> m)
オフセットからマスクを使用して、short[]
型の配列からベクトルをロードします。static <E> VectorMask<E>
VectorMask.fromArray(VectorSpecies<E> species, boolean[] bits, int offset)
オフセットから始まるboolean
配列からマスクをロードします。static <E> VectorShuffle<E>
VectorShuffle.fromArray(VectorSpecies<E> species, int[] sourceIndexes, int offset)
オフセットから始まるint
配列から、指定された種のシャッフルを作成します。static ByteVector
ByteVector.fromByteArray(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static ByteVector
ByteVector.fromByteArray(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo, VectorMask<Byte> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static DoubleVector
DoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static DoubleVector
DoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo, VectorMask<Double> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static FloatVector
FloatVector.fromByteArray(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static FloatVector
FloatVector.fromByteArray(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo, VectorMask<Float> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static IntVector
IntVector.fromByteArray(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static IntVector
IntVector.fromByteArray(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo, VectorMask<Integer> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static LongVector
LongVector.fromByteArray(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static LongVector
LongVector.fromByteArray(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo, VectorMask<Long> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static ByteVector
ByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static ByteVector
ByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static DoubleVector
DoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static DoubleVector
DoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static FloatVector
FloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static FloatVector
FloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static IntVector
IntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static IntVector
IntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static LongVector
LongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static LongVector
LongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static <E> VectorMask<E>
VectorMask.fromLong(VectorSpecies<E> species, long bits)
指定されたビット・マスク内のビットに従って、最下位ビットから符号ビットまで、各レーンが設定または設定解除されているマスクを返します。static <E> VectorShuffle<E>
VectorShuffle.fromOp(VectorSpecies<E> species, IntUnaryOperator fn)
範囲[0..VLENGTH-1]
に適用される演算子の連続する値から、指定された種のシャッフルを作成します。static <E> VectorMask<E>
VectorMask.fromValues(VectorSpecies<E> species, boolean... bits)
指定されたboolean
値に従って各レーンが設定または設定解除されるマスクを返します。static <E> VectorShuffle<E>
VectorShuffle.fromValues(VectorSpecies<E> species, int... sourceIndexes)
一連のソース・インデックスから、指定された種のシャッフルを作成します。static <E> VectorShuffle<E>
VectorShuffle.iota(VectorSpecies<E> species, int start, int step, boolean wrap)
start
から始まり、指定されたstep
によってステップ実行される連続値に設定されたソース索引を使用してシャッフルを作成します。static <E> VectorShuffle<E>
VectorShuffle.makeUnzip(VectorSpecies<E> species, int part)
2つのベクトルの連結を解凍するシャッフルを作成します。代わりに、入力レーンを1つまたは他の出力ベクトルに格納します。static <E> VectorShuffle<E>
VectorShuffle.makeZip(VectorSpecies<E> species, int part)
2つのベクトルをまとめて圧縮するシャッフルを作成します。代わりに、一方のベクトルからレーンを選択します。int
VectorSpecies.partLimit(VectorSpecies<?> outputSpecies, boolean lanewise)
この種と別の種を指定すると、「再解釈キャスト」またはlane-wise conversion
のサイズを変更する(潜在的)のネット拡張または縮小が、この種から秒にレポートされます。abstract <F> Vector<F>
Vector.reinterpretShape(VectorSpecies<F> species, int part)
値の変換を実行せずに、このベクトルを要素型F
の指定された種のベクトルに変換し、このベクトルのバイトを再解釈します。static ByteVector
ByteVector.zero(VectorSpecies<Byte> species)
すべてのレーン要素がデフォルトのプリミティブ値であるゼロに設定されている、指定された種のベクトルを返します。static DoubleVector
DoubleVector.zero(VectorSpecies<Double> species)
すべてのレーン要素がデフォルトのプリミティブ値であるゼロに設定されている、指定された種のベクトルを返します。static FloatVector
FloatVector.zero(VectorSpecies<Float> species)
すべてのレーン要素がデフォルトのプリミティブ値であるゼロに設定されている、指定された種のベクトルを返します。static IntVector
IntVector.zero(VectorSpecies<Integer> species)
すべてのレーン要素がデフォルトのプリミティブ値であるゼロに設定されている、指定された種のベクトルを返します。static LongVector
LongVector.zero(VectorSpecies<Long> species)
すべてのレーン要素がデフォルトのプリミティブ値であるゼロに設定されている、指定された種のベクトルを返します。static ShortVector
ShortVector.zero(VectorSpecies<Short> species)
すべてのレーン要素がデフォルトのプリミティブ値であるゼロに設定されている、指定された種のベクトルを返します。