mirror of
https://github.com/zama-ai/concrete.git
synced 2026-01-13 23:08:14 -05:00
32 lines
956 B
Markdown
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
|
|
|
|
|