<< EXTRACTBITS Integer palette JKFLIPFLOP >>

Scilab Help >> Xcos > palettes > Integer palette > INTMUL

INTMUL

Integer matrix multiplication

Block Screenshot

Contents

Description

That block computes the matrix multiplication of two integer input matrices. The number of rows of the second matrix must be equal to the number of columns of the first matrix.

The output is a matrix where the number of rows is equal to the number of rows of the first input matrix and the number of columns is equal to the number of columns of the second input matrix.

On overflow, the result can take different forms:

  1. A normal non saturated result. By example, if type is int8 and the result is 128, the block output value will be -128.

  2. A saturated result. For the previous example the block output value will be 127

  3. An error message warning the user about the overflow.

The user can select one of these three forms by setting the Do on Overflow field to 0, 1 or 2.

Data types

The block supports the following types :

Parameters

Default properties

Example

The goal of this example is to code two decimals digits in an only byte. It makes exactly the inverse work of the example of the EXTRACTBITS block.

Interfacing function

Computational function

See also


Report an issue
<< EXTRACTBITS Integer palette JKFLIPFLOP >>