public class Maths
extends java.lang.Object
Constructor and Description |
---|
Maths() |
Modifier and Type | Method and Description |
---|---|
static void |
sortArray(double[] array)
Sort the given array of doubles into ascending order, using the default CUDA device.
|
static void |
sortArray(double[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of doubles into ascending order, using the default CUDA device.
|
static void |
sortArray(float[] array)
Sort the given array of floats into ascending order, using the default CUDA device.
|
static void |
sortArray(float[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of floats into ascending order, using the default CUDA device.
|
static void |
sortArray(int[] array)
Sort the given array of integers into ascending order, using the default CUDA device.
|
static void |
sortArray(int[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of integers into ascending order, using the default CUDA device.
|
static void |
sortArray(int deviceId,
double[] array)
Sort the given array of doubles into ascending order, using the specified CUDA device.
|
static void |
sortArray(int deviceId,
double[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of doubles into ascending order, using the specified CUDA device.
|
static void |
sortArray(int deviceId,
float[] array)
Sort the given array of floats into ascending order, using the specified CUDA device.
|
static void |
sortArray(int deviceId,
float[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of floats into ascending order, using the specified CUDA device.
|
static void |
sortArray(int deviceId,
int[] array)
Sort the given array of integers into ascending order, using the specified CUDA device.
|
static void |
sortArray(int deviceId,
int[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of integers into ascending order, using the specified CUDA device.
|
static void |
sortArray(int deviceId,
long[] array)
Sort the given array of longs into ascending order, using the specified CUDA device.
|
static void |
sortArray(int deviceId,
long[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of longs into ascending order, using the specified CUDA device.
|
static void |
sortArray(long[] array)
Sort the given array of longs into ascending order, using the default CUDA device.
|
static void |
sortArray(long[] array,
int fromIndex,
int toIndex)
Sort the specified range of the array of longs into ascending order, using the default CUDA device.
|
public static void sortArray(double[] array) throws GPUConfigurationException, GPUSortException
array
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(double[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
array
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(float[] array) throws GPUSortException, GPUConfigurationException
array
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(float[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
array
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, double[] array) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, double[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, float[] array) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, float[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, int[] array) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, int[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, long[] array) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int deviceId, long[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
deviceId
- the CUDA device to be usedarray
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int[] array) throws GPUConfigurationException, GPUSortException
array
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(int[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
array
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(long[] array) throws GPUConfigurationException, GPUSortException
array
- the array that will be sortedGPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
public static void sortArray(long[] array, int fromIndex, int toIndex) throws GPUConfigurationException, GPUSortException
array
- the array that will be sortedfromIndex
- the range starting index (inclusive)toIndex
- the range ending index (exclusive)GPUConfigurationException
- if an issue has occurred with the CUDA environmentGPUSortException
- if any of the following happens:
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2014, 2023 IBM Corp. and others.