@@ -220,13 +220,52 @@ namespace xt
220220 template <class E >
221221 constexpr bool is_chunked (const xexpression<E>& e);
222222
223+ /* *
224+ * Creates an in-memory chunked array.
225+ * This function returns an uninitialized ``xchunked_array<xarray<T>>``.
226+ *
227+ * @tparam T The type of the elements (e.g. double)
228+ * @tparam L The layout_type of the array
229+ * @tparam EXT The type of the array extension (default: empty_extension)
230+ *
231+ * @param shape The shape of the array
232+ * @param chunk_shape The shape of a chunk
233+ * @param chunk_memory_layout The layout of each chunk (default: XTENSOR_DEFAULT_LAYOUT)
234+ *
235+ * @return returns a ``xchunked_array<xarray<T>>`` with the given shape, chunk shape and memory layout.
236+ */
223237 template <class T , layout_type L = XTENSOR_DEFAULT_LAYOUT, class EXT = empty_extension, class S >
224238 xchunked_array<xarray<xarray<T>>, EXT> chunked_array (S&& shape, S&& chunk_shape, layout_type chunk_memory_layout = XTENSOR_DEFAULT_LAYOUT);
225239
240+ /* *
241+ * Creates an in-memory chunked array.
242+ * This function returns a ``xchunked_array<xarray<T>>`` initialized from an expression.
243+ *
244+ * @tparam L The layout_type of the array
245+ * @tparam EXT The type of the array extension (default: empty_extension)
246+ *
247+ * @param e The expression to initialize the chunked array from
248+ * @param chunk_shape The shape of a chunk
249+ * @param chunk_memory_layout The layout of each chunk (default: XTENSOR_DEFAULT_LAYOUT)
250+ *
251+ * @return returns a ``xchunked_array<xarray<T>>`` from the given expression, with the given chunk shape and memory layout.
252+ */
226253 template <layout_type L = XTENSOR_DEFAULT_LAYOUT, class EXT = empty_extension, class E , class S >
227254 xchunked_array<xarray<xarray<typename E::value_type>>, EXT>
228255 chunked_array (const xexpression<E>& e, S&& chunk_shape, layout_type chunk_memory_layout = XTENSOR_DEFAULT_LAYOUT);
229256
257+ /* *
258+ * Creates an in-memory chunked array.
259+ * This function returns a ``xchunked_array<xarray<T>>`` initialized from an expression.
260+ *
261+ * @tparam L The layout_type of the array
262+ * @tparam EXT The type of the array extension (default: empty_extension)
263+ *
264+ * @param e The expression to initialize the chunked array from
265+ * @param chunk_memory_layout The layout of each chunk (default: XTENSOR_DEFAULT_LAYOUT)
266+ *
267+ * @return returns a ``xchunked_array<xarray<T>>`` from the given expression, with the expression's chunk shape and the given memory layout.
268+ */
230269 template <layout_type L = XTENSOR_DEFAULT_LAYOUT, class EXT = empty_extension, class E >
231270 xchunked_array<xarray<xarray<typename E::value_type>>, EXT>
232271 chunked_array (const xexpression<E>&e, layout_type chunk_memory_layout = XTENSOR_DEFAULT_LAYOUT);
@@ -398,7 +437,7 @@ namespace xt
398437 }
399438 return this ->derived_cast ();
400439 }
401-
440+
402441 template <class D >
403442 template <class E >
404443 inline auto xchunked_semantic<D>::operator =(const xexpression<E>& e) -> derived_type&
@@ -407,7 +446,7 @@ namespace xt
407446 get_assigner (d.chunks ()).build_and_assign_temporary (e, d);
408447 return d;
409448 }
410-
449+
411450 template <class D >
412451 template <class CS >
413452 inline auto xchunked_semantic<D>::get_assigner(const CS&) const -> xchunked_assigner<temporary_type, CS>
0 commit comments