# Operator ( &&&& )

#### static member ( &&&& ): Tensor<bool> * Tensor<bool> -> Tensor<bool>

Element-wise loigcal and.

##### Declaration

`static member ( &&&& ): a:Tensor<bool> * b:Tensor<bool> -> Tensor<bool>`

##### Parameters

Type | Name | Description |
---|---|---|

Tensor<bool> | a | The tensor on the left side of this binary operation. |

Tensor<bool> | b | The tensor on the right side of this binary operation. |

##### Returns

Type | Description |
---|---|

Tensor<bool> | A new tensor containing the result of this operation. |

##### Remarks

Computes the logical and of each element of tensor `a`

with the corresponding element
of tensor `b`

and returns the results as a new tensor.

The tensors `a`

and `b`

must have the same storage.
Broadcasting rules apply if `a`

and `b`

have different shapes.

##### Examples

```
let a = HostTensor.ofList [true; true; false; false]
let b = HostTensor.ofList [true; false; true; false]
let c = a &&&& b // c = [true; false; false; false]
```

##### See Also

#### static member ( &&&& ): Tensor<bool> * bool -> Tensor<bool>

Element-wise loigcal and with scalar.

##### Declaration

`static member ( &&&& ): a:Tensor<bool> * b:bool -> Tensor<bool>`

##### Parameters

Type | Name | Description |
---|---|---|

Tensor<bool> | a | The tensor on the left side of this binary operation. |

bool | b | The scalar on the right side of this binary operation. |

##### Returns

Type | Description |
---|---|

Tensor<bool> | A new tensor containing the result of this operation. |

##### See Also

#### static member ( &&&& ): bool * Tensor<bool> -> Tensor<bool>

Element-wise loigcal and with scalar.

##### Declaration

`static member ( &&&& ): a:bool * b:Tensor<bool> -> Tensor<bool>`

##### Parameters

Type | Name | Description |
---|---|---|

bool | a | The scalar on the left side of this binary operation. |

Tensor<bool> | b | The tensor on the right side of this binary operation. |

##### Returns

Type | Description |
---|---|

Tensor<bool> | A new tensor containing the result of this operation. |