Contents

.&(_:_:)

Computes element-wise logical AND where both operands are expected contain Boolean scalar elements.

Declaration

static func .& (lhs: MLTensor, rhs: MLTensor) -> MLTensor

Discussion

For example:

let x = MLTensor([true, true, true])
let y = MLTensor([true, false, true])
x .& y // is [true, false, true]

See Also

Performing arithmetic operations