Commit be3c15f8 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

fixes

parent c1c23619
Pipeline #9655 passed with stages
in 3 minutes and 17 seconds
......@@ -11,8 +11,8 @@ sizes.
As such, the main function of a tiling is to provide an index into
subcomponents of a layout.
As for the layouts, both the C and Fortran storage orders are available for the
tilings, with similar names: `AML_TILING_ORDER_C` and
As for the layouts, both the C and Fortran indexing orders are available for
the tilings, with similar names: `AML_TILING_ORDER_C` and
`AML_TILING_ORDER_FORTRAN`.
Creating an AML tiling
......@@ -26,9 +26,9 @@ First, you need to have the right headers.
#include <aml/layout/dense.h>
#include "aml/tiling/resize.h"
Let's take the example of a two-dimensional matrix, with `x` rows and `y` colums.
We need to have already allocated some memory space for our matrix, for
instance with a AML area.
Let's take the example of a two-dimensional matrix, with `x` rows and `y`
columns. We need to have already allocated some memory space for our matrix,
for instance with a AML area.
.. code-block:: c
......@@ -95,7 +95,7 @@ Generic operations on an AML tiling
-----------------------------------
Several operations on an AML tiling are defined in the AML Tiling generic API.
Let's assume here that we have successful created a tilng called `tiling` in
Let's assume here that we have successful created a tiling called `tiling` in
this part.
We can get the number of dimensions of this tiling:
......@@ -134,7 +134,7 @@ The dimensions of each tile in the tiling can be obtained in a array:
size_t tile_dims[ndims];
aml_tiling_tile_dims(tiling, tile_dims);
The resulting array would be `{tile_x, tile_y}` for both `tiling_c` and `tiling_r`.
The resulting array would be `{tile_x, tile_y}` for both `tiling_c` and `tiling_f`.
Accessing a tile and elements of a tile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
......
......@@ -12,5 +12,5 @@ to better understand each abstraction.
hello_world/hello_world
area/areas
layouts/layouts
dma/dmas
tiling/tilings
dma/dmas
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment