From 868f9d9d6b3684cfc8b61b7e35e40080cb6c3f51 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Wed, 8 Dec 2021 14:11:32 +0100 Subject: [PATCH] docs: update numpy support with information about astype refs #1080 --- docs/user/tutorial/NUMPY_SUPPORT.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/user/tutorial/NUMPY_SUPPORT.md b/docs/user/tutorial/NUMPY_SUPPORT.md index 518b31baf..18cd8f9ec 100644 --- a/docs/user/tutorial/NUMPY_SUPPORT.md +++ b/docs/user/tutorial/NUMPY_SUPPORT.md @@ -119,9 +119,7 @@ The framework also gives support for: - true div, i.e., `x / y`: if one of `x` or `y` is a constant - floor div, i.e., `x // y`: if one of `x` or `y` is a constant -```{warning} -FIXME(Arthur): speak about `astype` -``` +There is support for astype as well, e.g. `x.astype(numpy.int32)`. This allows to control which data type to use for computations. In the context of FHE going back to integers may allow to fuse floating point operations together, see [this tutorial](./WORKING_WITH_FLOATING_POINTS.md) to see how to work with floating point values. ```{warning} FIXME(Umut): speak about `shape`