~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/elementary/and.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
and              Scilab Group              Scilab Function              and
2
 
NAME
3
 
   and (&) - logical and
4
 
  
5
 
CALLING SEQUENCE
6
 
 b=and(A),  b=and(A,'*')
7
 
 b=and(A,'r'), b=and(A,1)
8
 
 b=and(A,'c'), b=and(A,2)
9
 
 A&B
10
 
DESCRIPTION
11
 
   and(A) is the logical AND of elements of  the boolean matrix A. and(A)
12
 
  returns %T ("true")  iff  all entries of A are %T.
13
 
  
14
 
   y=and(A,'r') (or, equivalently, y=and(A,1)) is the rowwise and. It
15
 
  returns in each  entry of the row vector y the and of the rows of x (The
16
 
  and is performed on the  row index : y(j)= and(A(i,j),i=1,m)).
17
 
  
18
 
   y=and(A,'c') (or, equivalently, y=and(A,2)) is the columnwise and. It
19
 
  returns  in each entry of the column vector y the and of the columns of x
20
 
   (The and is performed on the column index:  y(i)= and(A(i,j),j=1,n))).
21
 
  
22
 
    A&B  gives the element-wise logical and of the booleans matrices  A and 
23
 
  B .A and  B must be matrices with the same  dimensions or one from them
24
 
  must be a single boolean.
25
 
  
26
 
SEE ALSO
27
 
   not, or
28