diff --git a/docs.html b/docs.html
index c6d1d3be..7de14e0f 100644
--- a/docs.html
+++ b/docs.html
@@ -1496,6 +1496,11 @@ Classes for cubes (quasi 3rd order tensors), also known as "3D matrices"
+Data is stored as a set of slices (matrices) stored contiguously within memory;
+within each slice, elements are stored with column-major ordering (ie. column by column)
+
+
+
The cube class is Cube<type>, where type is one of:
-
@@ -1608,15 +1613,6 @@ In this documentation the cube type is used for convenience;
it is possible to use other types instead, eg. fcube
--
-Cube data is stored as a set of slices (matrices) stored contiguously within memory.
-Within each slice, elements are stored with column-major ordering (ie. column by column)
-
-
--
-Each slice can be interpreted as a matrix, hence functions which take Mat as input can generally also take cube slices as input
-
-
-
Constructors:
@@ -1636,10 +1632,27 @@ Constructors:
-
+The elements can be explicitly initialised during construction by specifying fill_form,
+which is one of:
+
+
+
+fill::zeros | ↦ | set all elements to 0 |
+fill::ones | ↦ | set all elements to 1 |
+fill::randu | ↦ | set all elements to random values from a uniform distribution in the [0,1] interval |
+fill::randn | ↦ | set all elements to random values from a normal/Gaussian distribution with zero mean and unit variance |
+fill::value(scalar) | ↦ | set all elements to specified scalar (Armadillo 10.6 and later) |
+fill::none | ↦ | do not initialise the elements |
+
+
+
+
+
+-
Caveat:
-
-in Armadillo 10.4 and earlier versions, the elements are not initialised during construction unless fill_form is specified, as per the Mat class (except for fill::eye)
+in Armadillo 10.4 and earlier versions, the elements are not initialised during construction unless fill_form is specified
(ie. without specifying fill_form, the elements may contain garbage values, including NaN)
- in Armadillo 10.5 and later versions, by default the elements are initialised to zero during construction
@@ -1726,11 +1739,15 @@ f.ones();
-
-Caveats:
+Notes:
-
+Each cube slice can be interpreted as a matrix, hence functions which take Mat as input can generally also take cube slices as input
+
+
+-
The size of individual slices can't be changed.
For example, the following will not work:
@@ -3929,15 +3946,15 @@ See also:
+Q.slice( slice_number )
+Q.slices( first_slice, last_slice )
+
Q.row( row_number )
Q.rows( first_row, last_row )
Q.col( col_number )
Q.cols( first_col, last_col )
-Q.slice( slice_number )
-Q.slices( first_slice, last_slice )
-
Q.subcube( first_row, first_col, first_slice, last_row, last_col, last_slice )
Q( span(first_row, last_row), span(first_col, last_col), span(first_slice, last_slice) )