ClassesClassesClassesClasses | | | | Operators

mult_element_matrixmult_element_matrixMultElementMatrixmult_element_matrixMultElementMatrixMultElementMatrix (Operator)

Name

mult_element_matrixmult_element_matrixMultElementMatrixmult_element_matrixMultElementMatrixMultElementMatrix — Multiply matrices element-by-element.

Signature

mult_element_matrix( : : MatrixAID, MatrixBID : MatrixMultID)

Herror mult_element_matrix(const Hlong MatrixAID, const Hlong MatrixBID, Hlong* MatrixMultID)

Herror T_mult_element_matrix(const Htuple MatrixAID, const Htuple MatrixBID, Htuple* MatrixMultID)

Herror mult_element_matrix(const HTuple& MatrixAID, const HTuple& MatrixBID, Hlong* MatrixMultID)

HMatrix HMatrix::MultElementMatrix(const HMatrix& MatrixBID) const

void MultElementMatrix(const HTuple& MatrixAID, const HTuple& MatrixBID, HTuple* MatrixMultID)

HMatrix HMatrix::MultElementMatrix(const HMatrix& MatrixBID) const

void HOperatorSetX.MultElementMatrix(
[in] VARIANT MatrixAID, [in] VARIANT MatrixBID, [out] VARIANT* MatrixMultID)

IHMatrixX* HMatrixX.MultElementMatrix([in] IHMatrixX* MatrixBID)

static void HOperatorSet.MultElementMatrix(HTuple matrixAID, HTuple matrixBID, out HTuple matrixMultID)

HMatrix HMatrix.MultElementMatrix(HMatrix matrixBID)

Description

The operator mult_element_matrixmult_element_matrixMultElementMatrixmult_element_matrixMultElementMatrixMultElementMatrix mutiplies the two matrices MatrixAMatrixAMatrixAMatrixAMatrixAmatrixA and MatrixBMatrixBMatrixBMatrixBMatrixBmatrixB element-by-element. The matrices are defined by the matrix handles MatrixAIDMatrixAIDMatrixAIDMatrixAIDMatrixAIDmatrixAID and MatrixBIDMatrixBIDMatrixBIDMatrixBIDMatrixBIDmatrixBID. It is required that both input matrices have identical dimensions. A new matrix MatrixMultMatrixMultMatrixMultMatrixMultMatrixMultmatrixMult is generated with the result. The operator returns the matrix handle MatrixMultIDMatrixMultIDMatrixMultIDMatrixMultIDMatrixMultIDmatrixMultID of the matrix MatrixMultMatrixMultMatrixMultMatrixMultMatrixMultmatrixMult. Access to the elements of the matrix is possible e.g. with the operator get_full_matrixget_full_matrixGetFullMatrixget_full_matrixGetFullMatrixGetFullMatrix. The formula for the calculation of the result is:

Example:

Parallelization

Parameters

MatrixAIDMatrixAIDMatrixAIDMatrixAIDMatrixAIDmatrixAID (input_control)  matrix HMatrix, HTupleHTupleHMatrix, HTupleHMatrixX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Matrix handle of the input matrix A.

MatrixBIDMatrixBIDMatrixBIDMatrixBIDMatrixBIDmatrixBID (input_control)  matrix HMatrix, HTupleHTupleHMatrix, HTupleHMatrixX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Matrix handle of the input matrix B.

MatrixMultIDMatrixMultIDMatrixMultIDMatrixMultIDMatrixMultIDmatrixMultID (output_control)  matrix HMatrix, HTupleHTupleHMatrix, HTupleHMatrixX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Matrix handle with the multiplied values of the input matrices.

Result

If the parameters are valid, the operator mult_element_matrixmult_element_matrixMultElementMatrixmult_element_matrixMultElementMatrixMultElementMatrix returns the value 2 (H_MSG_TRUE). If necessary, an exception is raised.

Possible Predecessors

create_matrixcreate_matrixCreateMatrixcreate_matrixCreateMatrixCreateMatrix

Possible Successors

get_full_matrixget_full_matrixGetFullMatrixget_full_matrixGetFullMatrixGetFullMatrix, get_value_matrixget_value_matrixGetValueMatrixget_value_matrixGetValueMatrixGetValueMatrix

Alternatives

mult_element_matrix_modmult_element_matrix_modMultElementMatrixModmult_element_matrix_modMultElementMatrixModMultElementMatrixMod

See also

div_element_matrixdiv_element_matrixDivElementMatrixdiv_element_matrixDivElementMatrixDivElementMatrix, div_element_matrix_moddiv_element_matrix_modDivElementMatrixModdiv_element_matrix_modDivElementMatrixModDivElementMatrixMod, scale_matrixscale_matrixScaleMatrixscale_matrixScaleMatrixScaleMatrix, scale_matrix_modscale_matrix_modScaleMatrixModscale_matrix_modScaleMatrixModScaleMatrixMod

Module

Foundation


ClassesClassesClassesClasses | | | | Operators