You are here:
Symbol Reference >
MtxExpr Namespace
>
Classes
>
Vector Record
>
public
>
Log2 Method
>
Vector.Log2 Method ()
MtxVec VCL
Vector.Log2 Method ()
Vector Record
|
Vector Members
|
MtxExpr Namespace
|
Log2 Method
|
Example
|
See Also
Collapse All
Log base 2.
Pascal
function
Log2
:
TMtxVec
;
overload
;
Description
Calculate the log base 2 for all calling object elements in-place.
See Also
Exp2
Example
var
a,b:
Vector
;
begin
a.SetIt(False,[1,2,4,8]); a.Log2;
//same as:
a := Log2(a); b := Log2(a);
//same as:
b.Log2(a);
end
;
Examples on GitHub
Group
Log2 Method
Links
Vector Record
,
Vector Members
,
MtxExpr Namespace
,
Log2 Method
,
Example
,
See Also
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic?
Send feedback!