File: or.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (33 lines) | stat: -rw-r--r-- 1,030 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
or              Scilab Group              Scilab Function                or
NAME
   or | - logical or
  
CALLING SEQUENCE
 or(A),  or(A,'*')
 or(A,'r'), or(A,1)
 
 or(A,'c'), or(A,2)
 A|B
DESCRIPTION
   or(A)  gives the  or of the elements of the  boolean  matrix  A. or(A) is
  true (%t) iff at least one entry of A is %t. 
  
   y=or(A,'r') (or, equivalently, y=or(A,1)) is the rowwise or. It returns
  in each  entry of the row vector y the or of the rows of x (The or is
  performed on the  row index : y(j)= or(A(i,j),i=1,m)).
  
   y=or(A,'c') (or, equivalently, y=or(A,2)) is the columnwise or. It
  returns  in each entry of the column vector y the or of the columns of x 
  (The or is performed on the column index:  y(i)= or(A(i,j),j=1,n))).
  
   A|B  gives the element-wise logical or of the booleans matrices  A and  B
  .A and  B must be matrices with the same  dimensions or one from them
  must be a single boolean. 
  
EXAMPLES
 or([%t %t %f])
 [%t %t %f]|[%f %t %t]
 [%t %t %f]|%f
SEE ALSO
   and, not, find