Overload List
| # | Signature | Description |
|---|---|---|
| 1 | procedure Mul(const C: TSparseMtx; const B: TSparseMtx; MaxNonZeroCount: Integer); | Multiply two sparse matrices (matrix multiplication). |
| 2 | function Mul(const Value: TCplx): TMtxVec; | Multiply all calling object elements with complex Value in-place. |
| └ indexed: function Mul(const Value: TCplx; Index: Integer; Len: Integer): TMtxVec; | ||
| 3 | function Mul(const Vec: TMtxVec; const Value: TCplx): TMtxVec; | Multiply each element of Vec with complex Value. |
| └ indexed: function Mul(const Vec: TMtxVec; const Value: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec; | ||
| 4 | function Mul(const Vec: TMtxVec; const Value: Double): TMtxVec; | Multiply each element of Vec with Value. |
| └ indexed: function Mul(const Vec: TMtxVec; const Value: Double; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec; | ||
| 5 | function Mul(const Value: Double): TMtxVec; | Multiply object elements with Value. |
| └ indexed: function Mul(const Value: Double; Index: Integer; Len: Integer): TMtxVec; |
Overload 1: procedure Mul(const C: TSparseMtx; const B: TSparseMtx; MaxNonZeroCount: Integer);
Multiply two sparse matrices (matrix multiplication).
| # | Name | Type | Description |
|---|---|---|---|
| 1 | C | TSparseMtx | |
| 2 | B | TSparseMtx | |
| 3 | MaxNonZeroCount | Integer |
Result: stored in self (calling object)
Multiply sparse matrices A and B and place the result in the calling matrix. Because the resulting matrix can be much less sparse, the memory requirements can increase beyond the available system memory. This method will raise an exception, if the requested memory size will exceed the value of MaxNonZeroCount.
Overload 2: function Mul(const Value: TCplx): TMtxVec;
Multiply all calling object elements with complex Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
Result: stored in self (calling object), returns self for chaining
Indexed: function Mul(const Value: TCplx; Index: Integer; Len: Integer): TMtxVec;
Multipy calling object elements [Index]..[Index+Len-1] with complex Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | TCplx | scalar |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.
Overload 3: function Mul(const Vec: TMtxVec; const Value: TCplx): TMtxVec;
Multiply each element of Vec with complex Value.
Result: stored in self (calling object), returns self for chaining
Store the result in the calling object. Size of the calling object is set automatically. TMtxVec.Complex property of the calling object is set to True.
Indexed: function Mul(const Vec: TMtxVec; const Value: TCplx; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with complex Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | Value | TCplx | scalar |
| 3 | VecIndex | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the result in calling object elements [Index]..[Index+Len-1]. Size of the calling object is not changed. An exception is raised if array borders are overrun or underrun. TMtxVec.Complex propertiy of the calling object is set to True.
Overload 4: function Mul(const Vec: TMtxVec; const Value: Double): TMtxVec;
Multiply each element of Vec with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | Value | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Store the result in the calling object. Size and TMtxVec.Complex properties of the calling object are adjusted automatically.
Indexed: function Mul(const Vec: TMtxVec; const Value: Double; VecIndex: Integer; Index: Integer; Len: Integer): TMtxVec;
Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVec | source TVec or TMtx |
| 2 | Value | Double | scalar |
| 3 | VecIndex | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Store the result in calling object elements [Index]..[Index+Len-1]. Size of the calling object is not changed. An exception is raised if array borders are overrun or underrun. TMtxVec.Complex propertiy of the calling object is set implicitly.
Overload 5: function Mul(const Value: Double): TMtxVec;
Multiply object elements with Value.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
Result: stored in self (calling object), returns self for chaining
Multiplies all calling object elements with Value in-place.
var v: Vector;
begin
v.SetIt(1,3,false,[2,3,5]); // v = [2,3,5]
v := v*3; // v = [6,9,15]
end;
Indexed: function Mul(const Value: Double; Index: Integer; Len: Integer): TMtxVec;
Multipy calling object elements [Index]..[Index+Len-1] with Value in-place.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Value | Double | scalar |
| 2 | Index | Integer | start index |
| 3 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
An exception is raised if array borders are overrun or underrun.