You are here: Symbol Reference > clMtxVec Namespace > Classes > TOpenCLMtxVec Class > public > InvSqrt Method > TOpenCLMtxVec.InvSqrt Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
TOpenCLMtxVec.InvSqrt Method ()

The inverse of square root 1/(v)^1/2.

Pascal
function InvSqrt: TOpenCLMtxVec; overload;

Calculate the inverse square root 1/(element)^(1/2)) of all calling object elements in-place.

v.CopyFromArray(TSingleArray.Create(1,16)); v.InvSqrt; // returns [1,0.25]
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!