1
.TH and 1 "April 1993" "Scilab Group" "Scilab Function"
8
b=and(A,'r'), b=and(A,1)
9
b=and(A,'c'), b=and(A,2)
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.
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).
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)).
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.