Files
concrete/docs/dev/api/concrete.fhe.extensions.array.md

32 lines
956 B
Markdown

<!-- markdownlint-disable -->
<a href="../../frontends/concrete-python/concrete/fhe/extensions/array.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
# <kbd>module</kbd> `concrete.fhe.extensions.array`
Declaration of `array` function, to simplify creation of encrypted arrays.
---
<a href="../../frontends/concrete-python/concrete/fhe/extensions/array.py#L16"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
## <kbd>function</kbd> `array`
```python
array(values: Any) Union[ndarray, Tracer]
```
Create an encrypted array from either encrypted or clear values.
**Args:**
values (Any): array like object compatible with numpy to construct the resulting encrypted array
**Returns:**
Union[np.ndarray, Tracer]: Tracer that represents the operation during tracing ndarray with values otherwise