mult_element_matrixT_mult_element_matrixMultElementMatrixMultElementMatrixmult_element_matrix (Operator)

Name

mult_element_matrixT_mult_element_matrixMultElementMatrixMultElementMatrixmult_element_matrix — Multipliziert Matrizen elementweise.

Signatur

mult_element_matrix( : : MatrixAID, MatrixBID : MatrixMultID)

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

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

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

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

HMatrix HMatrix.MultElementMatrix(HMatrix matrixBID)

def mult_element_matrix(matrix_aid: HHandle, matrix_bid: HHandle) -> HHandle

Beschreibung

Der Operator mult_element_matrixmult_element_matrixMultElementMatrixMultElementMatrixmult_element_matrix multipliziert die zwei Eingabematrizen MatrixA und MatrixB Element für Element. Die Matrizen sind durch die Matrix Handles MatrixAIDMatrixAIDMatrixAIDmatrixAIDmatrix_aid und MatrixBIDMatrixBIDMatrixBIDmatrixBIDmatrix_bid gegeben. Beide Eingabematrizen müssen die gleiche Dimension besitzen. Es wird eine neue Matrix MatrixMult generiert und das Ergebnis in dieser gespeichert. Der Operator gibt das Matrix Handle MatrixMultIDMatrixMultIDMatrixMultIDmatrixMultIDmatrix_mult_id der Matrix MatrixMult zurück. Zugriff auf die Elemente der Matrix ist z.B. mit dem Operator get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixget_full_matrix möglich. Die Formel für die Berechnung lautet:

Beispiel:

Ausführungsinformationen

Parameter

MatrixAIDMatrixAIDMatrixAIDmatrixAIDmatrix_aid (input_control)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle der Eingabematrix A.

MatrixBIDMatrixBIDMatrixBIDmatrixBIDmatrix_bid (input_control)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle der Eingabematrix B.

MatrixMultIDMatrixMultIDMatrixMultIDmatrixMultIDmatrix_mult_id (output_control)  matrix HMatrix, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Matrix Handle mit den multiplizierten Werten der Eingabematrizen.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert mult_element_matrixmult_element_matrixMultElementMatrixMultElementMatrixmult_element_matrix den Wert 2 ( H_MSG_TRUE) . Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

create_matrixcreate_matrixCreateMatrixCreateMatrixcreate_matrix

Nachfolger

get_full_matrixget_full_matrixGetFullMatrixGetFullMatrixget_full_matrix, get_value_matrixget_value_matrixGetValueMatrixGetValueMatrixget_value_matrix

Alternativen

mult_element_matrix_modmult_element_matrix_modMultElementMatrixModMultElementMatrixModmult_element_matrix_mod

Siehe auch

div_element_matrixdiv_element_matrixDivElementMatrixDivElementMatrixdiv_element_matrix, div_element_matrix_moddiv_element_matrix_modDivElementMatrixModDivElementMatrixModdiv_element_matrix_mod, scale_matrixscale_matrixScaleMatrixScaleMatrixscale_matrix, scale_matrix_modscale_matrix_modScaleMatrixModScaleMatrixModscale_matrix_mod

Modul

Foundation