Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function Product: double; overload; | Elements product. |
| └ indexed: function Product(Index,Len: integer): double; overload; | ||
| 2 | procedure Product(out X: TCplx); overload; | Calculate the product of all calling object complex elements. |
| └ indexed: procedure Product(out X: TCplx; Index,Len: integer); overload; | ||
| 3 | procedure Product(out X: double); overload; | Calculate the product of all calling object elements. |
| └ indexed: procedure Product(out X: double; Index,Len: integer); overload; |
Overload 1: function Product: double; overload;
Elements product.
Returns: double - the product of all calling object elements
An exception is raised if calling object TMtxVec.Complex property is true.
var a: Matrix;
c: double;
begin
a := [[1,2,3,4]];
c := a.Product; // c= 24
end;
Indexed: function Product(Index,Len: integer): double; overload;
Returns the product for calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | integer | start index |
| 2 | Len | integer | element count |
Returns: double
An exception is raised if array borders are overrun or underrun.
Overload 2: procedure Product(out X: TCplx); overload;
Calculate the product of all calling object complex elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TCplx | scalar |
Result: stored in self (calling object)
Store the result in complex variable X.
Indexed: procedure Product(out X: TCplx; Index,Len: integer); overload;
Calculate the product for calling object complex elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TCplx | scalar |
| 2 | Index | integer | start index |
| 3 | Len | integer | element count |
Result: stored in self (calling object)
Store the result in complex variable X. An exception is raised if array borders are overrun or underrun.
Overload 3: procedure Product(out X: double); overload;
Calculate the product of all calling object elements.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | double | scalar |
Result: stored in self (calling object)
Store the result in real variable X.
Indexed: procedure Product(out X: double; Index,Len: integer); overload;
Calculate the product for calling object elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | double | scalar |
| 2 | Index | integer | start index |
| 3 | Len | integer | element count |
Result: stored in self (calling object)
Store the result in real variable X. An exception is raised if array borders are overrun or underrun.