Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical(kind=LGT), | intent(in), | DIMENSION(:) | :: | a | ||
logical(kind=LGT), | intent(in), | DIMENSION(:) | :: | b |
FUNCTION outerand(a,b)
LOGICAL(LGT), DIMENSION(:), INTENT(IN) :: a,b
LOGICAL(LGT), DIMENSION(size(a),size(b)) :: outerand
outerand = spread(a,dim=2,ncopies=size(b)) .and. &
spread(b,dim=1,ncopies=size(a))
END FUNCTION outerand