<< gpuMult sciGPGPU gpuSetData >>

sciGPGPU >> sciGPGPU > gpuNorm

gpuNorm

Compute the norm of matrix.

Call sequence

resNorm = gpuNorm(A)

Parameters

A

Can be :

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

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

resNorm

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

Description

resNorm = gpuNorm(A)

gpuNorm compute the Frobenius norm of matrix. This function use cuBLAS to perform operations.

Exemples

A = rand(200,300) + %i * rand(200,300);
dA = gpuSetData(A);

resNorm = gpuNorm(A)
resNorm1 = gpuNorm(dA)
resNorm2 = norm(A,"fro")

dA=gpuFree(dA);

See Also

<< gpuMult sciGPGPU gpuSetData >>