clMatrix::Product Method

Overload List

#SignatureDescription
1double Product() const;Elements product.
2double Product(int Index, int Len) const;Returns the product for calling object elements [Index]..[Index+Len-1].
3void Product(TCplx &X) const;Calculate the product of all calling object complex elements.
4void Product(TCplx &X, int Index, int Len) const;Calculate the product for calling object complex elements [Index]..[Index+Len-1].
5void Product(double &X) const;Calculate the product of all calling object elements.
6void Product(double &X, int Index, int Len) const;Calculate the product for calling object elements [Index]..[Index+Len-1].

Overload 1: double Product() const;

Elements product.

Returns: the product of all calling object elements

Remarks:
X=k=0V.Length1V[k]X = \prod _{k=0} ^{\text{V.Length}-1} \text{V}[k]

An exception is raised if calling object clMatrix::Complex property is true.

See Also: clMatrix::Productc
Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 2: double Product(int Index, int Len) const;

Returns the product for calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1Indexint
2Lenint
Remarks:

An exception is raised if array borders are overrun or underrun.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 3: void Product(TCplx &X) const;

Calculate the product of all calling object complex elements.

#NameTypeDescription
1XTCplx &
Remarks:

Store the result in complex variable X.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 4: void Product(TCplx &X, int Index, int Len) const;

Calculate the product for calling object complex elements [Index]..[Index+Len-1].

#NameTypeDescription
1XTCplx &
2Indexint
3Lenint
Remarks:

Store the result in complex variable X. An exception is raised if array borders are overrun or underrun.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 5: void Product(double &X) const;

Calculate the product of all calling object elements.

#NameTypeDescription
1Xdouble &
Remarks:

Store the result in real variable X.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler

Overload 6: void Product(double &X, int Index, int Len) const;

Calculate the product for calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1Xdouble &
2Indexint
3Lenint
Remarks:

Store the result in real variable X. An exception is raised if array borders are overrun or underrun.

Declared in Dew::Math::clMatrix · Dew.Math/clMtxExpr.h · Cross-compiler