Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - Français

Change language to:
English - 日本語 - Português - Русский

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

Aide de Scilab >> Matrices creuses > Manipulation des Matrices Creuses > issparse

issparse

determine whether input is sparse

Syntax

res = issparse(S)

Arguments

S

a scilab object

res

1 is the matrix is a sparse and 0 otherwise/

Description

res = issparse(S) returns 1 if S is a sparse matrix and 0 otherwise.

Examples

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

See also

  • type — Retourne le type d'une variable
  • typeof — type explicite ou code de surcharge d'un objet Scilab
Report an issue
<< Manipulation des Matrices Creuses Manipulation des Matrices Creuses nnz >>

Copyright (c) 2022-2023 (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:
Tue Feb 14 15:06:37 CET 2017