Arrays.ParallelPrefix Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ParallelPrefix(Double[], Int32, Int32, IDoubleBinaryOperator) |
Performs |
ParallelPrefix(Int64[], Int32, Int32, ILongBinaryOperator) |
Performs |
ParallelPrefix(Int32[], Int32, Int32, IIntBinaryOperator) |
Performs |
ParallelPrefix(Object[], Int32, Int32, IBinaryOperator) |
Performs |
ParallelPrefix(Int32[], IIntBinaryOperator) |
Cumulates, in parallel, each element of the given array in place, using the supplied function. |
ParallelPrefix(Double[], IDoubleBinaryOperator) |
Cumulates, in parallel, each element of the given array in place, using the supplied function. |
ParallelPrefix(Object[], IBinaryOperator) |
Cumulates, in parallel, each element of the given array in place, using the supplied function. |
ParallelPrefix(Int64[], ILongBinaryOperator) |
Cumulates, in parallel, each element of the given array in place, using the supplied function. |
ParallelPrefix(Double[], Int32, Int32, IDoubleBinaryOperator)
Performs #parallelPrefix(double[], DoubleBinaryOperator)
for the given subrange of the array.
[Android.Runtime.Register("parallelPrefix", "([DIILjava/util/function/DoubleBinaryOperator;)V", "", ApiSince=24)]
public static void ParallelPrefix (double[] array, int fromIndex, int toIndex, Java.Util.Functions.IDoubleBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([DIILjava/util/function/DoubleBinaryOperator;)V", "", ApiSince=24)>]
static member ParallelPrefix : double[] * int * int * Java.Util.Functions.IDoubleBinaryOperator -> unit
Parameters
- array
- Double[]
the array
- fromIndex
- Int32
the index of the first element, inclusive
- toIndex
- Int32
the index of the last element, exclusive
a side-effect-free, associative function to perform the cumulation
- Attributes
Remarks
Performs #parallelPrefix(double[], DoubleBinaryOperator)
for the given subrange of the array.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelPrefix(Int64[], Int32, Int32, ILongBinaryOperator)
Performs #parallelPrefix(long[], LongBinaryOperator)
for the given subrange of the array.
[Android.Runtime.Register("parallelPrefix", "([JIILjava/util/function/LongBinaryOperator;)V", "", ApiSince=24)]
public static void ParallelPrefix (long[] array, int fromIndex, int toIndex, Java.Util.Functions.ILongBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([JIILjava/util/function/LongBinaryOperator;)V", "", ApiSince=24)>]
static member ParallelPrefix : int64[] * int * int * Java.Util.Functions.ILongBinaryOperator -> unit
Parameters
- array
- Int64[]
the array
- fromIndex
- Int32
the index of the first element, inclusive
- toIndex
- Int32
the index of the last element, exclusive
a side-effect-free, associative function to perform the cumulation
- Attributes
Remarks
Performs #parallelPrefix(long[], LongBinaryOperator)
for the given subrange of the array.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelPrefix(Int32[], Int32, Int32, IIntBinaryOperator)
Performs #parallelPrefix(int[], IntBinaryOperator)
for the given subrange of the array.
[Android.Runtime.Register("parallelPrefix", "([IIILjava/util/function/IntBinaryOperator;)V", "", ApiSince=24)]
public static void ParallelPrefix (int[] array, int fromIndex, int toIndex, Java.Util.Functions.IIntBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([IIILjava/util/function/IntBinaryOperator;)V", "", ApiSince=24)>]
static member ParallelPrefix : int[] * int * int * Java.Util.Functions.IIntBinaryOperator -> unit
Parameters
- array
- Int32[]
the array
- fromIndex
- Int32
the index of the first element, inclusive
- toIndex
- Int32
the index of the last element, exclusive
a side-effect-free, associative function to perform the cumulation
- Attributes
Remarks
Performs #parallelPrefix(int[], IntBinaryOperator)
for the given subrange of the array.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelPrefix(Object[], Int32, Int32, IBinaryOperator)
Performs #parallelPrefix(Object[], BinaryOperator)
for the given subrange of the array.
[Android.Runtime.Register("parallelPrefix", "([Ljava/lang/Object;IILjava/util/function/BinaryOperator;)V", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static void ParallelPrefix (Java.Lang.Object[] array, int fromIndex, int toIndex, Java.Util.Functions.IBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([Ljava/lang/Object;IILjava/util/function/BinaryOperator;)V", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member ParallelPrefix : Java.Lang.Object[] * int * int * Java.Util.Functions.IBinaryOperator -> unit
Parameters
- array
- Object[]
the array
- fromIndex
- Int32
the index of the first element, inclusive
- toIndex
- Int32
the index of the last element, exclusive
a side-effect-free, associative function to perform the cumulation
- Attributes
Remarks
Performs #parallelPrefix(Object[], BinaryOperator)
for the given subrange of the array.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelPrefix(Int32[], IIntBinaryOperator)
Cumulates, in parallel, each element of the given array in place, using the supplied function.
[Android.Runtime.Register("parallelPrefix", "([ILjava/util/function/IntBinaryOperator;)V", "", ApiSince=24)]
public static void ParallelPrefix (int[] array, Java.Util.Functions.IIntBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([ILjava/util/function/IntBinaryOperator;)V", "", ApiSince=24)>]
static member ParallelPrefix : int[] * Java.Util.Functions.IIntBinaryOperator -> unit
Parameters
- array
- Int32[]
the array, which is modified in-place by this method
a side-effect-free, associative function to perform the cumulation
- Attributes
Remarks
Cumulates, in parallel, each element of the given array in place, using the supplied function. For example if the array initially holds [2, 1, 0, 3]
and the operation performs addition, then upon return the array holds [2, 3, 3, 6]
. Parallel prefix computation is usually more efficient than sequential loops for large arrays.
Added in 1.8.
Java documentation for java.util.Arrays.parallelPrefix(int[], java.util.function.IntBinaryOperator)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelPrefix(Double[], IDoubleBinaryOperator)
Cumulates, in parallel, each element of the given array in place, using the supplied function.
[Android.Runtime.Register("parallelPrefix", "([DLjava/util/function/DoubleBinaryOperator;)V", "", ApiSince=24)]
public static void ParallelPrefix (double[] array, Java.Util.Functions.IDoubleBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([DLjava/util/function/DoubleBinaryOperator;)V", "", ApiSince=24)>]
static member ParallelPrefix : double[] * Java.Util.Functions.IDoubleBinaryOperator -> unit
Parameters
- array
- Double[]
the array, which is modified in-place by this method
a side-effect-free function to perform the cumulation
- Attributes
Remarks
Cumulates, in parallel, each element of the given array in place, using the supplied function. For example if the array initially holds [2.0, 1.0, 0.0, 3.0]
and the operation performs addition, then upon return the array holds [2.0, 3.0, 3.0, 6.0]
. Parallel prefix computation is usually more efficient than sequential loops for large arrays.
Because floating-point operations may not be strictly associative, the returned result may not be identical to the value that would be obtained if the operation was performed sequentially.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelPrefix(Object[], IBinaryOperator)
Cumulates, in parallel, each element of the given array in place, using the supplied function.
[Android.Runtime.Register("parallelPrefix", "([Ljava/lang/Object;Ljava/util/function/BinaryOperator;)V", "", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public static void ParallelPrefix (Java.Lang.Object[] array, Java.Util.Functions.IBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([Ljava/lang/Object;Ljava/util/function/BinaryOperator;)V", "", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
static member ParallelPrefix : Java.Lang.Object[] * Java.Util.Functions.IBinaryOperator -> unit
Parameters
- array
- Object[]
the array, which is modified in-place by this method
a side-effect-free, associative function to perform the cumulation
- Attributes
Remarks
Cumulates, in parallel, each element of the given array in place, using the supplied function. For example if the array initially holds [2, 1, 0, 3]
and the operation performs addition, then upon return the array holds [2, 3, 3, 6]
. Parallel prefix computation is usually more efficient than sequential loops for large arrays.
Added in 1.8.
Java documentation for java.util.Arrays.parallelPrefix(T[], java.util.function.BinaryOperator<T>)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ParallelPrefix(Int64[], ILongBinaryOperator)
Cumulates, in parallel, each element of the given array in place, using the supplied function.
[Android.Runtime.Register("parallelPrefix", "([JLjava/util/function/LongBinaryOperator;)V", "", ApiSince=24)]
public static void ParallelPrefix (long[] array, Java.Util.Functions.ILongBinaryOperator op);
[<Android.Runtime.Register("parallelPrefix", "([JLjava/util/function/LongBinaryOperator;)V", "", ApiSince=24)>]
static member ParallelPrefix : int64[] * Java.Util.Functions.ILongBinaryOperator -> unit
Parameters
- array
- Int64[]
the array, which is modified in-place by this method
a side-effect-free, associative function to perform the cumulation
- Attributes
Remarks
Cumulates, in parallel, each element of the given array in place, using the supplied function. For example if the array initially holds [2, 1, 0, 3]
and the operation performs addition, then upon return the array holds [2, 3, 3, 6]
. Parallel prefix computation is usually more efficient than sequential loops for large arrays.
Added in 1.8.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.