TSparseMtx.Mul Method

Overload List

#SignatureDescription
1void Mul(TSparseMtx C, TSparseMtx B, Int32 MaxNonZeroCount)Multiply two sparse matrices (matrix multiplication).
2TMtxVec Mul(TCplx Value)Multiply all calling object elements with complex Value in-place.
└ indexed: TMtxVec Mul(TCplx Value, Int32 Index, Int32 Len)
3TMtxVec Mul(TMtxVec Vec, TCplx Value)Multiply each element of Vec with complex Value.
└ indexed: TMtxVec Mul(TMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len)
4TMtxVec Mul(TMtxVec Vec, Double Value)Multiply each element of Vec with Value.
└ indexed: TMtxVec Mul(TMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len)
5TMtxVec Mul(Double Value)Multiply object elements with Value.
└ indexed: TMtxVec Mul(Double Value, Int32 Index, Int32 Len)

Overload 1: void Mul(TSparseMtx C, TSparseMtx B, Int32 MaxNonZeroCount)

Multiply two sparse matrices (matrix multiplication).

#NameTypeDescription
1CTSparseMtx
2BTSparseMtx
3MaxNonZeroCountInt32

Result: stored in self (calling object)

Remarks:

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.

See Also: TSparseMtx.MulLeft, TSparseMtx.MulRight

Overload 2: TMtxVec Mul(TCplx Value)

Multiply all calling object elements with complex Value in-place.

#NameTypeDescription
1ValueTCplxscalar

Result: stored in self (calling object), returns self for chaining

Indexed: TMtxVec Mul(TCplx Value, Int32 Index, Int32 Len)

Multipy calling object elements [Index]..[Index+Len-1] with complex Value in-place.

#NameTypeDescription
1ValueTCplxscalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

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

Overload 3: TMtxVec Mul(TMtxVec Vec, TCplx Value)

Multiply each element of Vec with complex Value.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2ValueTCplxscalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the result in the calling object. Size of the calling object is set automatically. Dew.Math.TMtxVec.Complex property of the calling object is set to True.

Indexed: TMtxVec Mul(TMtxVec Vec, TCplx Value, Int32 VecIndex, Int32 Index, Int32 Len)

Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with complex Value.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2ValueTCplxscalar
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

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. Dew.Math.TMtxVec.Complex propertiy of the calling object is set to True.

Overload 4: TMtxVec Mul(TMtxVec Vec, Double Value)

Multiply each element of Vec with Value.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2ValueDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Store the result in the calling object. Size and Dew.Math.TMtxVec.Complex properties of the calling object are adjusted automatically.

Indexed: TMtxVec Mul(TMtxVec Vec, Double Value, Int32 VecIndex, Int32 Index, Int32 Len)

Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with Value.

#NameTypeDescription
1VecTMtxVecsource TVec or TMtx
2ValueDoublescalar
3VecIndexInt32
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

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. Dew.Math.TMtxVec.Complex propertiy of the calling object is set implicitly.

Overload 5: TMtxVec Mul(Double Value)

Multiply object elements with Value.

#NameTypeDescription
1ValueDoublescalar

Result: stored in self (calling object), returns self for chaining

Remarks:

Multiplies all calling object elements with Value in-place.

Examples
Vector v;
v.SetIt(1,3,false,new double[] {2,3,5});  // v = new double[] {2,3,5}
v = v*3; // v = new double[] {6,9,15}

Indexed: TMtxVec Mul(Double Value, Int32 Index, Int32 Len)

Multipy calling object elements [Index]..[Index+Len-1] with Value in-place.

#NameTypeDescription
1ValueDoublescalar
2IndexInt32start index
3LenInt32element count

Result: stored in self (calling object), returns self for chaining

Remarks:

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