Action: MATRIX_PRODUCT_DIAGONAL

Module refdist
Description Usage
Calculate the product of two matrices and return a vector that contains the diagonal elements of the ouptut vector used in 0 tutorialsused in 0 eggs
output value type
a vector containing the diagonal elements of the matrix that obtaned by multiplying the two input matrices together scalar/vector

Input

The arguments that serve as the input for this action are specified using one or more of the keywords in the following table.

Keyword Type Description
ARG vector/matrix the two vectors/matrices whose product are to be taken

Further details and examples

Calculate the product of two matrices and return a vector that contains the diagonal elements of the ouptut vector

\par Examples

Syntax

The following table describes the keywords and options that can be used with this action

Keyword Type Default Description
ARG input none the two vectors/matrices whose product are to be taken
SERIAL optional false do the calculation in serial