You are here: Symbol Reference > clMtxExpr Namespace > Classes > clMatrix Record > public > Frac Method > clMatrix.Frac Method ()
MtxVec VCL
ContentsIndex
PreviousUpNext
clMatrix.Frac Method ()

Fractional part of values.

Pascal
function Frac: TOpenCLMtxVec; overload;

Calculates the fractional part for all object values in-place.

var a: clMatrix; ind: Integer; begin a.CopyFromArray(2,2,TSingleArray.Create(1,5.5,-1.6,6)); // a = [1, 5.5, -1.6, 6] a.Frac; // a = [0, 0.5, -0.6, 0] finally a.Free; end; end;
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!