Judge an all zero vector

Share:

Description

A logical function to judge if a vector is all zeros. If so, TRUE will be returned; otherwise, FALSE will be returned

Usage

1

Arguments

x

a numerical vector

Details

A simple tiny function embedded in QICD

Value

TRUE will be returned if the vector contains all zeros, otherwise, FALSE will be returned

Author(s)

Bo Peng

Examples

1
2
x=rep(0,10)
allzero(x)