<< gpuLoadFunction sciGPGPU gpuMin >>

sciGPGPU >> sciGPGPU > gpuMax

gpuMax

Find the Maximum value of matrix.

Call sequence

resMax = gpuMax(A)

Parameters

A

Can be :

Pointer on the matrix stored in device memory (GPU).

Pointer on the matrix stored in host memory (CPU).

resMax

resMax is the result of computation in host memory (CPU).

Description

resMax = gpuMax(A)

gpuMax find the Maximum value of matrix A. To find the Maximum value of complex matrix, the function performs operation abs(real)+abs(imaginary). This function use cuBLAS to perform operations only with a complex matrix.

Exemples

A = rand(200,300);
dA = gpuSetData(A);

resMax = gpuMax(A)
resMax1 = gpuMax(dA)
resMax2 = max(A)

dA=gpuFree(dA);

See Also

<< gpuLoadFunction sciGPGPU gpuMin >>