Top
Back: linSyzSolve
Forward: scalarProd
FastBack: bimodules_lib
FastForward: central_lib
Up: bfun_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.7.2.0. allPositive
Procedure from library bfun.lib (see bfun_lib).

Usage:
allPositive(v); v an intvec

Return:
int, 1 if all components of v are positive, or 0 otherwise

Purpose:
check whether all components of an intvec are positive

Example:
 
LIB "bfun.lib";
intvec v = 1,2,3;
allPositive(v);
==> 1
intvec w = 1,-2,3;
allPositive(w);
==> 0


Top Back: linSyzSolve Forward: scalarProd FastBack: bimodules_lib FastForward: central_lib Up: bfun_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-0-3, 2016, generated by texi2html.