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

Raises all calling vector elements to complex power Exponent in-place.

Pascal
function Power(const Exponent: TCplx): TOpenCLMtxVec; overload;

If the calling vector is real and has negative elements, the result will be NAN at those entries. To obtain a valid result in this case, extend the calling vector to complex with ExtendToComplex method. In all real/complex combinations, the Power method will not automatically assume that a number is complex to speed up the computation. 

Alternatively the user can of course always convert the real numbers to complex before passing them to the Power routine.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!