~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/elementary/and.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

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