TSparseMtx::Mul Method

Overload List

#SignatureDescription
1TMtxVec *Mul(const double Value);Multiply object elements with Value.
2TMtxVec *Mul(const TCplx &Value);Multiply all calling object elements with complex Value in-place.
3TMtxVec *Mul(const double Value, int Index, int Len);Multipy calling object elements [Index]..[Index+Len-1] with Value in-place.
4TMtxVec *Mul(const TCplx &Value, int Index, int Len);Multipy calling object elements [Index]..[Index+Len-1] with complex Value in-place.
5TMtxVec *Mul(TMtxVec *Vec, const double Value);Multiply each element of Vec with Value.
6TMtxVec *Mul(TMtxVec *Vec, const TCplx &Value);Multiply each element of Vec with complex Value.
7TMtxVec *Mul(TMtxVec *Vec, const double Value, int VecIndex, int Index, int Len);Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with Value.
8TMtxVec *Mul(TMtxVec *Vec, const TCplx &Value, int VecIndex, int Index, int Len);Multiply Vec elements [VecIndex]..[VecIndex+Len-1] with complex Value.
9void Mul(TSparseMtx *C, TSparseMtx *B, int MaxNonZeroCount = 10000000);Multiply two sparse matrices (matrix multiplication).

Overload 1: TMtxVec *Mul(const double Value);

Multiply object elements with Value.

#NameTypeDescription
1Valueconst double
Remarks:

Multiplies all calling object elements with Value in-place.

See Also: TDenseMtxVec::Add
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 2: TMtxVec *Mul(const TCplx &Value);

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

#NameTypeDescription
1Valueconst TCplx &
Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 3: TMtxVec *Mul(const double Value, int Index, int Len);

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

#NameTypeDescription
1Valueconst double
2Indexint
3Lenint
Remarks:

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

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 4: TMtxVec *Mul(const TCplx &Value, int Index, int Len);

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

#NameTypeDescription
1Valueconst TCplx &
2Indexint
3Lenint
Remarks:

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

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 5: TMtxVec *Mul(TMtxVec *Vec, const double Value);

Multiply each element of Vec with Value.

#NameTypeDescription
1VecTMtxVec *
2Valueconst double
Remarks:

Store the result in the calling object. Size and TSparseMtx::Complex properties of the calling object are adjusted automatically.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 6: TMtxVec *Mul(TMtxVec *Vec, const TCplx &Value);

Multiply each element of Vec with complex Value.

#NameTypeDescription
1VecTMtxVec *
2Valueconst TCplx &
Remarks:

Store the result in the calling object. Size of the calling object is set automatically. TSparseMtx::Complex property of the calling object is set to True.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 7: TMtxVec *Mul(TMtxVec *Vec, const double Value, int VecIndex, int Index, int Len);

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

#NameTypeDescription
1VecTMtxVec *
2Valueconst double
3VecIndexint
4Indexint
5Lenint
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. TSparseMtx::Complex propertiy of the calling object is set implicitly.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 8: TMtxVec *Mul(TMtxVec *Vec, const TCplx &Value, int VecIndex, int Index, int Len);

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

#NameTypeDescription
1VecTMtxVec *
2Valueconst TCplx &
3VecIndexint
4Indexint
5Lenint
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. TSparseMtx::Complex propertiy of the calling object is set to True.

Declared in Dew::Math::TMtxVec · Dew.Math/AbstractMtxVec.h · Cross-compiler

Overload 9: void Mul(TSparseMtx *C, TSparseMtx *B, int MaxNonZeroCount = 10000000);

Multiply two sparse matrices (matrix multiplication).

#NameTypeDescription
1CTSparseMtx *
2BTSparseMtx *
3MaxNonZeroCount = 10000000int
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
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler