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

Elements product.

Pascal
function Product: double; overload;

the product of all calling object elements

 

An exception is raised if calling object TOpenCLBase.ComplexComplexproperty is true.

var a: TOpenCLVector; c: double; begin CreateIt(a); try a.CopyFromArray(TDoubleArray.Create(1,2,3,4)); c := a.Product; // c= 24 finally FreeIt(a); end; end;
Examples on GitHub
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!