1 <?xml version="1.0" encoding="UTF-8"?>
4 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
5 * Copyright (C) 2011 - DIGITEO - Michael Baudin
7 * This file must be used under the terms of the CeCILL.
8 * This source file is licensed as described in the file COPYING, which
9 * you should have received as part of this distribution. The terms
10 * are also available at
11 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
14 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns3="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="bitcmp" xml:lang="ja">
16 <refname>bitcmp</refname>
17 <refpurpose>ビット毎の補数</refpurpose>
32 m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
33 または符合なし整数(uint8, uint16 または uint32)の
34 m行n列行列.値は正の整数値である必要があります.
42 m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
43 または符合なし整数(uint8, uint16 または uint32)の
45 入力<literal>n</literal>は 1,2,...,bitmax の範囲であることが
47 ただし,bitmax は x の最大ビット数です.
56 m行n列の行列(double)またはm1 x m2 x ... x mm ハイパー行列(double)
66 符合なし整数<literal>x</literal>を指定すると, この関数は
67 <literal>x</literal>の2進数形式の補数を値とする
71 整数 <literal>n</literal> は最大ビット数を指定します.
74 <literal>x</literal>の2進数表現のビット数が bitmax の値 (8, 16 または 32)
75 よりも小さい場合, bitmax ビット (8, 16 または 32)の補数とするために
81 <programlisting role="example"><![CDATA[
83 // We insert zeros in the begining to get a 8-bit number:
85 // The 8-bits complement is then (11110010)_2
90 // The input argument can be an unsigned int