Spaces:
Sleeping
Sleeping
Download data/help/Integer_pal/INTMUL.xml from notsn/headless_scilab: direct link, hf CLI and curl.
- Browser
- Download file 13.6 kB
-
https://huggingface.co/spaces/notsn/headless_scilab/resolve/main/data/help/Integer_pal/INTMUL.xml
- Command line
-
hf download hf://spaces/notsn/headless_scilab/data/help/Integer_pal/INTMUL.xml
-
curl -L -o INTMUL.xml https://huggingface.co/spaces/notsn/headless_scilab/resolve/main/data/help/Integer_pal/INTMUL.xml
13.6 kB
| <!-- | |
| * Xcos | |
| * | |
| * Copyright (C) INRIA - METALAU Project <scicos@inria.fr> (HTML version) | |
| * Copyright (C) DIGITEO - Scilab Consortium (XML Docbook version) | |
| * Copyright 2011 - Bernard DUJARDIN <bernard.dujardin@contrib.scilab.org> | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, | |
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| * GNU General Public License for more details. | |
| * | |
| * You should have received a copy of the GNU General Public License | |
| * along with this program; if not, write to the Free Software | |
| * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
| * | |
| * See the file ./license.txt | |
| * | |
| --> | |
| <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" | |
| xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" | |
| xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" | |
| xml:id="INTMUL" xmln.mml="http://www.w3.org/1998/Math/MathML" xml:lang="en_US"> | |
| <refnamediv> | |
| <refname>INTMUL</refname> | |
| <refpurpose>Integer matrix multiplication</refpurpose> | |
| </refnamediv> | |
| <refsection> | |
| <title>Block Screenshot</title> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata align="center" fileref="../../../../images/palettes/INTMUL.png"/> | |
| </imageobject> | |
| </inlinemediaobject> | |
| </refsection> | |
| <refsection id="Contents_INTMUL"> | |
| <title>Contents</title> | |
| <itemizedlist> | |
| <listitem> | |
| <xref linkend="Description_INTMUL">Description</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Data_Type_INTMUL">Data types</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Dialogbox_INTMUL">Parameters</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Defaultproperties_INTMUL">Default properties</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Interfacingfunction_INTMUL">Interfacing function</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Computationalfunction_INTMUL">Computational function</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Example_INTMUL">Example</xref> | |
| </listitem> | |
| <listitem> | |
| <xref linkend="Seealso_INTMUL">See also</xref> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Description_INTMUL"> | |
| <title>Description</title> | |
| <para> | |
| 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. | |
| </para> | |
| <para> | |
| 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. | |
| </para> | |
| <para>On overflow, the result can take different forms:</para> | |
| <orderedlist> | |
| <listitem> | |
| <para> | |
| A normal non saturated result. By example, if type is int8 and the result is 128, the block output value will be -128. | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| A saturated result. For the previous example the block output value will be 127 | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| An error message warning the user about the overflow. | |
| </para> | |
| </listitem> | |
| </orderedlist> | |
| <para> | |
| The user can select one of these three forms by setting the | |
| <emphasis role="bold">Do on Overflow</emphasis> field to 0, 1 or 2. | |
| </para> | |
| </refsection> | |
| <refsection id="Data_Type_INTMUL"> | |
| <title>Data types</title> | |
| <para> | |
| The block supports the following types : | |
| </para> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| Input : matrices, vectors or scalars. Scilab's integer data types (<emphasis role="bold">Data Type</emphasis> parameter). | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| Output : same type that the inputs. | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Dialogbox_INTMUL"> | |
| <title>Parameters</title> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata align="center" fileref="../../../gui/integer_pal/en_US/INTMUL_gui.png" style="float:right"/> | |
| <!-- align => Javahelp, style => Online --> | |
| </imageobject> | |
| </inlinemediaobject> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">Data Type (3:int32, 4:int16, 5:int8, ...)</emphasis> | |
| </para> | |
| <para> | |
| It indicates the type of the input/output data : between 3 and 8. | |
| </para> | |
| <para>Properties : Type 'vec' of size 1.</para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">Do on Overflow (0:Nothing, 1:Saturate, 2:Error)</emphasis> | |
| </para> | |
| <para> | |
| Between 0 and 2. When there are an overflowing, if parameter is equal to : | |
| </para> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">0</emphasis> : the result is non saturated. | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">1</emphasis> : the result is saturated. | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">2</emphasis> : the simulation displays en error message. | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| <para>Properties : Type 'vec' of size 1.</para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Defaultproperties_INTMUL"> | |
| <title>Default properties</title> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">always active:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">direct-feedthrough:</emphasis> yes | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">zero-crossing:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">mode:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">regular inputs:</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 1 : size [-1,-2] / type 3</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 2 : size [-2,-3] / type 3</emphasis> | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">regular outputs:</emphasis> | |
| </para> | |
| <para> | |
| <emphasis role="bold">- port 1 : size [-1,-3] / type 3</emphasis> | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">number/sizes of activation inputs:</emphasis> 0 | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">number/sizes of activation outputs:</emphasis> 0 | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">continuous-time state:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">discrete-time state:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">object discrete-time state:</emphasis> no | |
| </para> | |
| </listitem> | |
| <listitem> | |
| <para> | |
| <emphasis role="bold">name of computational function:</emphasis> | |
| <emphasis role="italic">matmul_i32</emphasis> | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| <para/> | |
| </refsection> | |
| <refsection id="Example_INTMUL"> | |
| <title>Example</title> | |
| <para> | |
| 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 <link linkend="EXTRACTBITS">EXTRACTBITS</link> block. | |
| </para> | |
| <para> | |
| <link type="scilab" linkend="scilab.xcos/xcos/examples/integer_pal/en_US/INTMUL_en_US.zcos"> | |
| <inlinemediaobject> | |
| <imageobject> | |
| <imagedata fileref="../../../../examples/integer_pal/en_US/INTMUL_en_US.zcos" align="center"/> | |
| </imageobject> | |
| </inlinemediaobject> | |
| </link> | |
| </para> | |
| </refsection> | |
| <refsection id="Interfacingfunction_INTMUL"> | |
| <title>Interfacing function</title> | |
| <itemizedlist> | |
| <listitem> | |
| <para> | |
| <link type="scilab" linkend="scilab.scinotes/scicos_blocks/macros/IntegerOp/INTMUL.sci">SCI/modules/scicos_blocks/macros/IntegerOp/INTMUL.sci</link> | |
| </para> | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection id="Computationalfunction_INTMUL"> | |
| <title>Computational function</title> | |
| <itemizedlist> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i32n.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i16n.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i8n.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui32n.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui16n.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui8n.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i32s.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i16s.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i8s.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui32s.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui16s.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui8s.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i32e.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i16e.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_i8e.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui32e.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui16e.c | |
| </listitem> | |
| <listitem> | |
| SCI/modules/scicos_blocks/src/c/matmul_ui8e.c | |
| </listitem> | |
| </itemizedlist> | |
| </refsection> | |
| <refsection role="see also" xml:id="Seealso_INTMUL"> | |
| <title>See also</title> | |
| <simplelist type="inline"> | |
| <member> | |
| <link linkend="MATMUL">MATMUL</link> | |
| </member> | |
| <member> | |
| <link linkend="EXTRACTBITS">EXTRACTBITS</link> | |
| </member> | |
| </simplelist> | |
| </refsection> | |
| </refentry> | |