diff --git a/Makefile b/Makefile index 636f88ff2..f214ba19d 100644 --- a/Makefile +++ b/Makefile @@ -311,11 +311,11 @@ todo: .PHONY: supported_functions # Update docs with supported functions supported_functions: - poetry run python script/doc_utils/gen_supported_ufuncs.py docs/user/howto/NUMPY_SUPPORT.md + poetry run python script/doc_utils/gen_supported_ufuncs.py docs/user/howto/numpy_support.md .PHONY: check_supported_functions # Check supported functions (for the doc) check_supported_functions: - poetry run python script/doc_utils/gen_supported_ufuncs.py docs/user/howto/NUMPY_SUPPORT.md --check + poetry run python script/doc_utils/gen_supported_ufuncs.py docs/user/howto/numpy_support.md --check .PHONY: licenses # Generate the list of licenses of dependencies licenses: diff --git a/docs/dev/explanation/COMPILATION.md b/docs/dev/explanation/compilation.md similarity index 99% rename from docs/dev/explanation/COMPILATION.md rename to docs/dev/explanation/compilation.md index 266f82f5c..cc583b572 100644 --- a/docs/dev/explanation/COMPILATION.md +++ b/docs/dev/explanation/compilation.md @@ -125,7 +125,7 @@ Let's take a closer look at the transforms we perform today. ### Fusing floating point operations We decided to allocate a whole new chapter to explain float fusing. -You can find it [here](./FLOAT-FUSING.md). +You can find it [here](./float-fusing.md). ## Bounds measurement @@ -212,7 +212,7 @@ Assigned Data Types: ## MLIR conversion -The actual compilation will be done by the **Concrete** compiler, which is expecting an MLIR input. The MLIR conversion goes from an operation graph to its MLIR equivalent. You can read more about it [here](./MLIR.md) +The actual compilation will be done by the **Concrete** compiler, which is expecting an MLIR input. The MLIR conversion goes from an operation graph to its MLIR equivalent. You can read more about it [here](./mlir.md) ## Example walkthrough #1 diff --git a/docs/dev/explanation/FLOAT-FUSING.md b/docs/dev/explanation/float-fusing.md similarity index 100% rename from docs/dev/explanation/FLOAT-FUSING.md rename to docs/dev/explanation/float-fusing.md diff --git a/docs/dev/explanation/index.rst b/docs/dev/explanation/index.rst index 6c9d43d8d..76f75276f 100644 --- a/docs/dev/explanation/index.rst +++ b/docs/dev/explanation/index.rst @@ -4,8 +4,8 @@ Explanations .. toctree:: :maxdepth: 1 - COMPILATION.md - TERMINOLOGY_AND_STRUCTURE.md - FLOAT-FUSING.md - MLIR.md - QUANTIZATION.md + compilation.md + terminology_and_structure.md + float-fusing.md + mlir.md + quantization.md diff --git a/docs/dev/explanation/MLIR.md b/docs/dev/explanation/mlir.md similarity index 100% rename from docs/dev/explanation/MLIR.md rename to docs/dev/explanation/mlir.md diff --git a/docs/dev/explanation/QUANTIZATION.md b/docs/dev/explanation/quantization.md similarity index 100% rename from docs/dev/explanation/QUANTIZATION.md rename to docs/dev/explanation/quantization.md diff --git a/docs/dev/explanation/TERMINOLOGY_AND_STRUCTURE.md b/docs/dev/explanation/terminology_and_structure.md similarity index 100% rename from docs/dev/explanation/TERMINOLOGY_AND_STRUCTURE.md rename to docs/dev/explanation/terminology_and_structure.md diff --git a/docs/dev/howto/CONTRIBUTING.md b/docs/dev/howto/contributing.md similarity index 100% rename from docs/dev/howto/CONTRIBUTING.md rename to docs/dev/howto/contributing.md diff --git a/docs/dev/howto/DOCKER.md b/docs/dev/howto/docker.md similarity index 100% rename from docs/dev/howto/DOCKER.md rename to docs/dev/howto/docker.md diff --git a/docs/dev/howto/DOCUMENTING.md b/docs/dev/howto/documenting.md similarity index 100% rename from docs/dev/howto/DOCUMENTING.md rename to docs/dev/howto/documenting.md diff --git a/docs/dev/howto/index.rst b/docs/dev/howto/index.rst index fc1ba8d87..068fb06e0 100644 --- a/docs/dev/howto/index.rst +++ b/docs/dev/howto/index.rst @@ -4,8 +4,8 @@ How To .. toctree:: :maxdepth: 1 - PROJECT_SETUP.md - DOCKER.md - DOCUMENTING.md - RELEASING.md - CONTRIBUTING.md + project_setup.md + docker.md + documenting.md + releasing.md + contributing.md diff --git a/docs/dev/howto/PROJECT_SETUP.md b/docs/dev/howto/project_setup.md similarity index 97% rename from docs/dev/howto/PROJECT_SETUP.md rename to docs/dev/howto/project_setup.md index af39039c6..d31cf47e2 100644 --- a/docs/dev/howto/PROJECT_SETUP.md +++ b/docs/dev/howto/project_setup.md @@ -5,7 +5,7 @@ FIXME(Arthur): to check what needs to be updated here # Project Setup ```{note} -You will need Zama's specific environment with zamalang module to have the project fully functional. It is currently only delivered via the docker image (see the [docker](./DOCKER.md) guide). +You will need Zama's specific environment with zamalang module to have the project fully functional. It is currently only delivered via the docker image (see the [docker](./docker.md) guide). ``` ## Installing Python v3.8 diff --git a/docs/dev/howto/RELEASING.md b/docs/dev/howto/releasing.md similarity index 100% rename from docs/dev/howto/RELEASING.md rename to docs/dev/howto/releasing.md diff --git a/docs/user/basics/COMPILING_AND_EXECUTING.md b/docs/user/basics/compiling_and_executing.md similarity index 91% rename from docs/user/basics/COMPILING_AND_EXECUTING.md rename to docs/user/basics/compiling_and_executing.md index c782d7ac1..9002ca63e 100644 --- a/docs/user/basics/COMPILING_AND_EXECUTING.md +++ b/docs/user/basics/compiling_and_executing.md @@ -10,7 +10,7 @@ import concrete.numpy as hnp ## Defining a function to compile -You need to have a python function that follows the [limits](../explanation/FHE_AND_FRAMEWORK_LIMITS.md) of the **Concrete Framework**. Here is a simple example: +You need to have a python function that follows the [limits](../explanation/fhe_and_framework_limits.md) of the **Concrete Framework**. Here is a simple example: ```python @@ -101,6 +101,6 @@ FIXME(benoit): explain the API to encrypt, run_inference, decrypt, keygen etc wh ## Further reading -- [Working With Floating Points Tutorial](../tutorial/WORKING_WITH_FLOATING_POINTS.md) -- [Table Lookup Tutorial](../tutorial/TABLE_LOOKUP.md) -- [Compiling a torch model](../tutorial/COMPILING_TORCH_MODEL.md) +- [Working With Floating Points Tutorial](../tutorial/working_with_floating_points.md) +- [Table Lookup Tutorial](../tutorial/table_lookup.md) +- [Compiling a torch model](../tutorial/compiling_torch_model.md) diff --git a/docs/user/basics/index.rst b/docs/user/basics/index.rst index 7fe1aa0f1..2050fd6b1 100644 --- a/docs/user/basics/index.rst +++ b/docs/user/basics/index.rst @@ -4,7 +4,7 @@ Getting Started .. toctree:: :maxdepth: 1 - INTRO.md - INSTALLING.md - COMPILING_AND_EXECUTING.md + intro.md + installing.md + compiling_and_executing.md benchmarks.md diff --git a/docs/user/basics/INSTALLING.md b/docs/user/basics/installing.md similarity index 100% rename from docs/user/basics/INSTALLING.md rename to docs/user/basics/installing.md diff --git a/docs/user/basics/INTRO.md b/docs/user/basics/intro.md similarity index 95% rename from docs/user/basics/INTRO.md rename to docs/user/basics/intro.md index d1e5116bb..28c528ae9 100644 --- a/docs/user/basics/INTRO.md +++ b/docs/user/basics/intro.md @@ -33,14 +33,14 @@ Basically, we have divided our documentation into several parts: ## A work in progress ```{note} -Concrete is a work in progress, and is currently limited to a certain number of operators and features. In the future, there will be improvements as described in this [section](../explanation/FUTURE_FEATURES.md). +Concrete is a work in progress, and is currently limited to a certain number of operators and features. In the future, there will be improvements as described in this [section](../explanation/future_features.md). ``` The main _current_ limits are: - **Concrete** is only supporting unsigned integers - **Concrete** needs the integer to be less than 7 bits (included) -These limits can be taken care of with the use of quantization, as explained a bit further in [this](../explanation/QUANTIZATION.md) and [this](../howto/REDUCE_NEEDED_PRECISION.md) parts of the documentation. +These limits can be taken care of with the use of quantization, as explained a bit further in [this](../explanation/quantization.md) and [this](../howto/reduce_needed_precision.md) parts of the documentation. ```{warning} FIXME(Jordan): speak about our quantization framework diff --git a/docs/user/explanation/FHE_AND_FRAMEWORK_LIMITS.md b/docs/user/explanation/fhe_and_framework_limits.md similarity index 90% rename from docs/user/explanation/FHE_AND_FRAMEWORK_LIMITS.md rename to docs/user/explanation/fhe_and_framework_limits.md index 3cb4cf1b2..67d672d10 100644 --- a/docs/user/explanation/FHE_AND_FRAMEWORK_LIMITS.md +++ b/docs/user/explanation/fhe_and_framework_limits.md @@ -10,7 +10,7 @@ However, one still has to consider that FHE is slow, as compared to the vanilla ### Multiplying by constants -In the scheme used in the **Concrete Framework**, namely [TFHE](https://tfhe.github.io/tfhe/), multiplications by constants is only defined for integer constants. Notably, one can't multiply by floats. As float multiplication is very usual in the data science (think of weights of dense layers, for example), this could be a problem, but quantization is at our rescue. See [this](QUANTIZATION.md) section for more details. +In the scheme used in the **Concrete Framework**, namely [TFHE](https://tfhe.github.io/tfhe/), multiplications by constants is only defined for integer constants. Notably, one can't multiply by floats. As float multiplication is very usual in the data science (think of weights of dense layers, for example), this could be a problem, but quantization is at our rescue. See [this](quantization.md) section for more details. ### Achieving computations of not-linear functions @@ -26,7 +26,7 @@ Since this is an early version of the product, not everything is done, to say th FIXME(Benoit): we'll see later if this is still a valid limit, #1111 ``` -As of today, the execution of the FHE program is done locally. Notably, in the current version, there is no client (on which we encrypt the private data, or decrypt the returned result) or server (on which the computation is done completely over encrypted data), but a single host. As explained in [this section](FUTURE_FEATURES.md), this limit will be removed in the next version, such that the **Concrete Framework** can be used in production. +As of today, the execution of the FHE program is done locally. Notably, in the current version, there is no client (on which we encrypt the private data, or decrypt the returned result) or server (on which the computation is done completely over encrypted data), but a single host. As explained in [this section](future_features.md), this limit will be removed in the next version, such that the **Concrete Framework** can be used in production. ### Currently slow diff --git a/docs/user/explanation/FUTURE_FEATURES.md b/docs/user/explanation/future_features.md similarity index 96% rename from docs/user/explanation/FUTURE_FEATURES.md rename to docs/user/explanation/future_features.md index 610678ceb..bff9ed863 100644 --- a/docs/user/explanation/FUTURE_FEATURES.md +++ b/docs/user/explanation/future_features.md @@ -1,6 +1,6 @@ # Future Features -As explained in [this section](FHE_AND_FRAMEWORK_LIMITS.md#concrete-framework-limits), the **Concrete Framework** +As explained in [this section](fhe_and_framework_limits.md#concrete-framework-limits), the **Concrete Framework** is currently in a preliminary version, and quite constrained in term of functionalities. However, the good news is that we are going to release new versions regularly, where a lot of functionalities will be added progressively. diff --git a/docs/user/explanation/index.rst b/docs/user/explanation/index.rst index 98457dd74..56c90295a 100644 --- a/docs/user/explanation/index.rst +++ b/docs/user/explanation/index.rst @@ -4,7 +4,7 @@ Explanations .. toctree:: :maxdepth: 1 - WHAT_IS_FHE.md - FHE_AND_FRAMEWORK_LIMITS.md - QUANTIZATION.md - FUTURE_FEATURES.md + what_is_fhe.md + fhe_and_framework_limits.md + quantization.md + future_features.md diff --git a/docs/user/explanation/QUANTIZATION.md b/docs/user/explanation/quantization.md similarity index 96% rename from docs/user/explanation/QUANTIZATION.md rename to docs/user/explanation/quantization.md index 2c2c8f0ea..5800021da 100644 --- a/docs/user/explanation/QUANTIZATION.md +++ b/docs/user/explanation/quantization.md @@ -1,5 +1,5 @@ ```{warning} -FIXME(Jordan/Andrei): see if this is still appropriate, update etc; make link with USE_QUANTIZATION.md +FIXME(Jordan/Andrei): see if this is still appropriate, update etc; make link with use_quantization.md ``` # Quantization @@ -12,7 +12,7 @@ from [Wikipedia](https://en.wikipedia.org/wiki/Quantization): ## Why is it needed? -Modern computing has long been using data types that use 32 or 64 bits (be that integers or floating point numbers), or even bigger data types. However due to the costly nature of FHE computations (see [the limits of FHE](FHE_AND_FRAMEWORK_LIMITS.md)), using such types with FHE is impractical (or plain impossible) to have computations executing in a reasonable amount of time. +Modern computing has long been using data types that use 32 or 64 bits (be that integers or floating point numbers), or even bigger data types. However due to the costly nature of FHE computations (see [the limits of FHE](fhe_and_framework_limits.md)), using such types with FHE is impractical (or plain impossible) to have computations executing in a reasonable amount of time. ## The gist of quantization diff --git a/docs/user/explanation/WHAT_IS_FHE.md b/docs/user/explanation/what_is_fhe.md similarity index 100% rename from docs/user/explanation/WHAT_IS_FHE.md rename to docs/user/explanation/what_is_fhe.md diff --git a/docs/user/howto/DEBUG_SUPPORT_SUBMIT_ISSUES.md b/docs/user/howto/debug_support_submit_issues.md similarity index 98% rename from docs/user/howto/DEBUG_SUPPORT_SUBMIT_ISSUES.md rename to docs/user/howto/debug_support_submit_issues.md index 925bda1bf..ef8fdcadd 100644 --- a/docs/user/howto/DEBUG_SUPPORT_SUBMIT_ISSUES.md +++ b/docs/user/howto/debug_support_submit_issues.md @@ -37,7 +37,7 @@ Hopefully, it is just a misunderstanding or a small mistake on your side, that o ## Having a look to the compilation artifacts -When things are more complicated, or if you want to have a look by yourself, you may want to have a look to the compilation reports, which are called artifacts. This is as simple as described in [here](../tutorial/COMPILATION_ARTIFACTS.md) +When things are more complicated, or if you want to have a look by yourself, you may want to have a look to the compilation reports, which are called artifacts. This is as simple as described in [here](../tutorial/compilation_artifacts.md) The artifact system will create a directory, containing: - **environment.txt:** information about your system @@ -66,7 +66,7 @@ To simplify our work and let us reproduce your bug easily, we need all the infor - any insight you might have on the bug - any workaround you have been able to find -Remember, **Concrete Framework** is a project where we are open to contributions, more information at [Contributing](../../dev/howto/CONTRIBUTING.md). +Remember, **Concrete Framework** is a project where we are open to contributions, more information at [Contributing](../../dev/howto/contributing.md). ## Submitting an issue diff --git a/docs/user/howto/FAQ.md b/docs/user/howto/faq.md similarity index 84% rename from docs/user/howto/FAQ.md rename to docs/user/howto/faq.md index c5a7a923b..2bc5a654c 100644 --- a/docs/user/howto/FAQ.md +++ b/docs/user/howto/faq.md @@ -2,7 +2,7 @@ ## What is **Concrete**? -See [here](../basics/INTRO.md) +See [here](../basics/intro.md) ## Is it an open source project? diff --git a/docs/user/howto/index.rst b/docs/user/howto/index.rst index cdc218f6d..3d2939c43 100644 --- a/docs/user/howto/index.rst +++ b/docs/user/howto/index.rst @@ -4,9 +4,9 @@ How To .. toctree:: :maxdepth: 1 - NUMPY_SUPPORT.md - PRINTING_AND_DRAWING.md - USE_QUANTIZATION.md - REDUCE_NEEDED_PRECISION.md - DEBUG_SUPPORT_SUBMIT_ISSUES.md - FAQ.md + numpy_support.md + printing_and_drawing.md + use_quantization.md + reduce_needed_precision.md + debug_support_submit_issues.md + faq.md diff --git a/docs/user/howto/NUMPY_SUPPORT.md b/docs/user/howto/numpy_support.md similarity index 95% rename from docs/user/howto/NUMPY_SUPPORT.md rename to docs/user/howto/numpy_support.md index 769804205..8760508d7 100644 --- a/docs/user/howto/NUMPY_SUPPORT.md +++ b/docs/user/howto/numpy_support.md @@ -91,7 +91,7 @@ List of supported binary functions if one of the two operators is a constant sca ## Indexing -Indexing is described in [this section](../tutorial/INDEXING.md). +Indexing is described in [this section](../tutorial/indexing.md). ## Other machine-learning-related operators @@ -119,7 +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 -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](../tutorial/WORKING_WITH_FLOATING_POINTS.md) to see how to work with floating point values. +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](../tutorial/working_with_floating_points.md) to see how to work with floating point values. ```{warning} FIXME(Umut): speak about `shape` diff --git a/docs/user/howto/PRINTING_AND_DRAWING.md b/docs/user/howto/printing_and_drawing.md similarity index 95% rename from docs/user/howto/PRINTING_AND_DRAWING.md rename to docs/user/howto/printing_and_drawing.md index 7ac6c6eae..904399377 100644 --- a/docs/user/howto/PRINTING_AND_DRAWING.md +++ b/docs/user/howto/printing_and_drawing.md @@ -5,7 +5,7 @@ FIXME(all): we should add an example drawing and printing with fusing (so subgra # Printing and Drawing -Sometimes, it can be useful to print or draw fhe circuits, we provide methods to just do that. Please read [Compiling and Executing](../basics/COMPILING_AND_EXECUTING.md) before reading further to see how you can compile your function into an fhe circuit. +Sometimes, it can be useful to print or draw fhe circuits, we provide methods to just do that. Please read [Compiling and Executing](../basics/compiling_and_executing.md) before reading further to see how you can compile your function into an fhe circuit. ## Printing diff --git a/docs/user/howto/REDUCE_NEEDED_PRECISION.md b/docs/user/howto/reduce_needed_precision.md similarity index 98% rename from docs/user/howto/REDUCE_NEEDED_PRECISION.md rename to docs/user/howto/reduce_needed_precision.md index a1d7b1c04..6d84881ca 100644 --- a/docs/user/howto/REDUCE_NEEDED_PRECISION.md +++ b/docs/user/howto/reduce_needed_precision.md @@ -63,7 +63,7 @@ The input contains 28x28x8 = 6272 bits of information. In practice you could als This shows how adapting your data can allow you to use models that may require smaller data types (i.e. use less precision) to perform their computations. ```{note} -Binarizing here is akin to quantization which is introduced [here](../explanation/QUANTIZATION.md). You can also find further resources on the linked page. +Binarizing here is akin to quantization which is introduced [here](../explanation/quantization.md). You can also find further resources on the linked page. ``` ### There is a tolerance on the result diff --git a/docs/user/howto/USE_QUANTIZATION.md b/docs/user/howto/use_quantization.md similarity index 100% rename from docs/user/howto/USE_QUANTIZATION.md rename to docs/user/howto/use_quantization.md diff --git a/docs/user/tutorial/COMPILATION_ARTIFACTS.md b/docs/user/tutorial/compilation_artifacts.md similarity index 96% rename from docs/user/tutorial/COMPILATION_ARTIFACTS.md rename to docs/user/tutorial/compilation_artifacts.md index 0061b9f9c..3250958ed 100644 --- a/docs/user/tutorial/COMPILATION_ARTIFACTS.md +++ b/docs/user/tutorial/compilation_artifacts.md @@ -12,7 +12,7 @@ def f(x): return np.sin(x) ``` -This function fails to compile because **Concrete Framework** doesn't support floating point outputs. When you try to compile it (you might want to check [this](../basics/COMPILING_AND_EXECUTING.md) to see how you can do that), an exception will be raised and the artifacts will be exported automatically. +This function fails to compile because **Concrete Framework** doesn't support floating point outputs. When you try to compile it (you might want to check [this](../basics/compiling_and_executing.md) to see how you can do that), an exception will be raised and the artifacts will be exported automatically. ### environment.txt @@ -226,7 +226,7 @@ This file contains information about the bounds of the final computation graph o %3 :: [32, 125] ``` -You can learn what bounds are [here](../../dev/explanation/TERMINOLOGY_AND_STRUCTURE.md). +You can learn what bounds are [here](../../dev/explanation/terminology_and_structure.md). ### mlir.txt @@ -245,4 +245,4 @@ module { ``` -You can learn more about MLIR [here](../../dev/explanation/MLIR.md). +You can learn more about MLIR [here](../../dev/explanation/mlir.md). diff --git a/docs/user/tutorial/COMPILING_TORCH_MODEL.md b/docs/user/tutorial/compiling_torch_model.md similarity index 100% rename from docs/user/tutorial/COMPILING_TORCH_MODEL.md rename to docs/user/tutorial/compiling_torch_model.md diff --git a/docs/user/tutorial/index.rst b/docs/user/tutorial/index.rst index 28063b111..c34c323ba 100644 --- a/docs/user/tutorial/index.rst +++ b/docs/user/tutorial/index.rst @@ -4,9 +4,9 @@ Tutorial .. toctree:: :maxdepth: 1 - COMPILING_TORCH_MODEL.md - TABLE_LOOKUP.md - WORKING_WITH_FLOATING_POINTS.md - INDEXING.md - MACHINE_LEARNING_TOOLS.md - COMPILATION_ARTIFACTS.md + compiling_torch_model.md + table_lookup.md + working_with_floating_points.md + indexing.md + machine_learning_tools.md + compilation_artifacts.md diff --git a/docs/user/tutorial/INDEXING.md b/docs/user/tutorial/indexing.md similarity index 100% rename from docs/user/tutorial/INDEXING.md rename to docs/user/tutorial/indexing.md diff --git a/docs/user/tutorial/MACHINE_LEARNING_TOOLS.md b/docs/user/tutorial/machine_learning_tools.md similarity index 100% rename from docs/user/tutorial/MACHINE_LEARNING_TOOLS.md rename to docs/user/tutorial/machine_learning_tools.md diff --git a/docs/user/tutorial/TABLE_LOOKUP.md b/docs/user/tutorial/table_lookup.md similarity index 95% rename from docs/user/tutorial/TABLE_LOOKUP.md rename to docs/user/tutorial/table_lookup.md index f9cc9b345..42fdf8d15 100644 --- a/docs/user/tutorial/TABLE_LOOKUP.md +++ b/docs/user/tutorial/table_lookup.md @@ -1,6 +1,6 @@ # Table Lookup -In this tutorial, we are going to go over the ways to perform direct table lookups in **Concrete Framework**. Please read [Compiling and Executing](../basics/COMPILING_AND_EXECUTING.md) before reading further to see how you can compile the functions below. +In this tutorial, we are going to go over the ways to perform direct table lookups in **Concrete Framework**. Please read [Compiling and Executing](../basics/compiling_and_executing.md) before reading further to see how you can compile the functions below. ## Direct table lookup @@ -78,7 +78,7 @@ Basically, we applied `squared` table to the first column and `cubed` to the sec ## Fused table lookup -Direct tables are tedious to prepare by hand. When possible, **Concrete Framework** fuses the floating point operations into table lookups automatically. There are some limitations on fusing operations, which you can learn more about on the next tutorial, [Working With Floating Points](./WORKING_WITH_FLOATING_POINTS.md). +Direct tables are tedious to prepare by hand. When possible, **Concrete Framework** fuses the floating point operations into table lookups automatically. There are some limitations on fusing operations, which you can learn more about on the next tutorial, [Working With Floating Points](./working_with_floating_points.md). Here is an example function that results in fused table lookup: diff --git a/docs/user/tutorial/WORKING_WITH_FLOATING_POINTS.md b/docs/user/tutorial/working_with_floating_points.md similarity index 89% rename from docs/user/tutorial/WORKING_WITH_FLOATING_POINTS.md rename to docs/user/tutorial/working_with_floating_points.md index e7eaf3ea4..757bae628 100644 --- a/docs/user/tutorial/WORKING_WITH_FLOATING_POINTS.md +++ b/docs/user/tutorial/working_with_floating_points.md @@ -26,7 +26,7 @@ assert circuit.run(60) == f(60) print("All good!") ``` -One can look to [numpy supported functions](../howto/NUMPY_SUPPORT.md) for information about possible float operations. +One can look to [numpy supported functions](../howto/numpy_support.md) for information about possible float operations. ## Limitations @@ -37,4 +37,4 @@ This biggest one is that, because floating point operations are fused into table To give a precise example, `100 - np.fabs(50 * (np.sin(x) + np.sin(y)))` cannot be compiled because the floating point part depends on both `x` and `y` (i.e., it cannot be rewritten in the form `100 - table[z]` for a `z` that could be computed easily from `x` and `y`). -To dive into implementation details, you may refer to [Fusing Floating Point Operations](../../dev/explanation/FLOAT-FUSING.md) document. +To dive into implementation details, you may refer to [Fusing Floating Point Operations](../../dev/explanation/float-fusing.md) document.