The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



TransposeAndMultiply


Unit:SDL_matrix
Class: TMatrix, TIntMatrix
Declaration: Class TMatrix:
[1] function TransposeAndMultiply (MatB, MatRes: TMatrix): boolean;
[2] function TransposeAndMultiply (VecB, VecRes: TVector): boolean;

Class TIntMatrix:
[3] function TransposeAndMultiply (MatB, MatRes: TIntMatrix): boolean;
[4] function TransposeAndMultiply (VecB, VecRes: TIntVector): boolean;

The function TransposeAndMultiply calculates the product of the transposed matrix self times the matrix MatB. The resulting matrix is stored in MatRes (Versions [1] and [3]). There is an overloaded version of TransposeAndMultiply ([2] and [4]) which multiplies the transposed matrix self with the vector VecB yielding the resulting vector VecRes.

The function returns a TRUE value, if the multiplication has been carried out successfully.

Hint 1: The matrix self is not transposed and is left unchanged. Only a transposed copy of self is used in the calculation.

Hint 2: This function can only be calculated, if the number of rows of the first matrix (self ) equals the number of rows of the second matrix (MatB ). In addition, the number of rows of the resulting matrix MatRes has to be equal to the number of columns of the matrix self, and the numbers of columns of the matrices MatB and MatRes have to be equal. The following figure illustrates the context:



Last Update: 2011-Sep-30