Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Sparses Matrix > Sparse Matrix Manipulation > issparse

issparse

入力値が疎行列かどうかを調べる

呼び出し手順

res = issparse(S)

引数

S

scilabオブジェクト

res

1: 行列は疎行列, 0: その他

説明

res = issparse(S) は、S が疎行列の時に1, それ以外の時に0を返します.

sp = sparse([1,2;4,5;3,10],[1,2,3]);
            if issparse(sp) == 1 then
            disp("It is a sparse");
            end
            
            A = 1;
            if issparse(A) == 0 then
            disp("It is not a sparse");
            end

参照

  • type — 変数の型を返す
  • typeof — オブジェクトの型
Report an issue
<< Sparse Matrix Manipulation Sparse Matrix Manipulation nnz >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:40:32 CEST 2012