diff --git a/docs.html b/docs.html
index aefc2c87..9ad48b4a 100644
--- a/docs.html
+++ b/docs.html
@@ -418,42 +418,43 @@ Conrad Sanderson and Ryan Curtin.
| logmat | | matrix logarithm |
| logmat_sympd | | matrix logarithm of symmetric matrix |
| min / max | | return extremum values |
-| nonzeros | | return non-zero values |
| norm | | various norms of vectors and matrices |
| norm2est | | fast estimate of the matrix 2-norm |
-| normalise | | normalise vectors to unit p-norm |
+| normalise | | normalise vectors to unit p-norm |
+| nonzeros | | extract all non-zero values |
+| omit_nan / nonfinite | | extract all values that are non-NaN / only finite |
| pow | | element-wise power |
-| powmat | | matrix power |
+| powmat | | matrix power |
| prod | | product of elements |
| rank | | rank of matrix |
-| rcond | | reciprocal condition number |
+| rcond | | reciprocal condition number |
| repelem | | replicate elements |
| replace | | replace specific elements with a new value |
-| repmat | | replicate matrix in block-like fashion |
+| repmat | | replicate matrix in block-like fashion |
| reshape | | change size while keeping elements |
| resize | | change size while keeping elements and preserving layout |
-| reverse | | reverse order of elements |
+| reverse | | reverse order of elements |
| roots | | roots of polynomial |
| shift | | circular shift of elements |
-| shuffle | | randomly shuffle elements |
+| shuffle | | randomly shuffle elements |
| size | | obtain dimensions of given object |
| sort | | sort elements |
-| sort_index | | vector describing sorted order of elements |
+| sort_index | | vector describing sorted order of elements |
| sqrtmat | | square root of matrix |
| sqrtmat_sympd | | square root of symmetric matrix |
-| sum | | sum of elements |
+| sum | | sum of elements |
| sub2ind | | convert subscripts to linear index |
| symmatu / symmatl | | generate symmetric matrix from given matrix |
-| trace | | sum of diagonal elements |
+| trace | | sum of diagonal elements |
| trans | | transpose of matrix |
| trapz | | trapezoidal numerical integration |
-| trimatu / trimatl | | copy upper/lower triangular part |
+| trimatu / trimatl | | copy upper/lower triangular part |
| trimatu_ind / trimatl_ind | | obtain indices of upper/lower triangular part |
| unique | | return unique elements |
-| vecnorm | | obtain vector norm of each row or column of a matrix |
+| vecnorm | | obtain vector norm of each row or column of a matrix |
| vectorise | | flatten matrix into vector |
| misc functions | | miscellaneous element-wise functions: exp, log, sqrt, round, sign, ... |
-| trig functions | | trigonometric element-wise functions: cos, sin, tan, ... |
+| trig functions | | trigonometric element-wise functions: cos, sin, tan, ... |
@@ -10124,12 +10125,12 @@ See also:
join_slices( cube C, mat M )
-
-for two cubes C and D: join the slices of C with the slices of D;
+For two cubes C and D: join the slices of C with the slices of D;
cubes C and D must have the same number of rows and columns (ie. all slices must have the same size)
-
-for two matrices M and N: treat M and N as cube slices and join them to form a cube with 2 slices;
+For two matrices M and N: treat M and N as cube slices and join them to form a cube with 2 slices;
matrices M and N must have the same number of rows and columns
@@ -10514,60 +10515,6 @@ See also:
-
-
-nonzeros( X )
-
--
-Return a column vector containing the non-zero values of X
-
-
--
-X can be a sparse or dense matrix
-
-
--
-Caveats:
-
--
-for dense matrices/vectors,
-to obtain the number of non-zero elements,
-the expression
accu(X != 0) is more efficient
-
--
-for sparse matrices,
-to obtain the number of non-zero elements,
-the
.n_nonzero attribute is more efficient, eg. X.n_nonzero
-
-
-
-
--
-Examples:
-
-sp_mat A = sprandu<sp_mat>(100, 100, 0.1);
- vec a = nonzeros(A);
-
-mat B(100, 100, fill::eye);
-vec b = nonzeros(B);
-
-
-
-
-
-See also:
-
-
-
-
-
norm( X )
@@ -10738,6 +10685,106 @@ See also:
+
+
+nonzeros( X )
+
+-
+Return a column vector containing the non-zero values of X
+
+
+-
+X can be a sparse or dense matrix
+
+
+-
+Caveats:
+
+-
+for dense matrices/vectors,
+to obtain the number of non-zero elements,
+the expression
accu(X != 0) is more efficient
+
+-
+for sparse matrices,
+to obtain the number of non-zero elements,
+the
.n_nonzero attribute is more efficient, eg. X.n_nonzero
+
+
+
+
+-
+Examples:
+
+sp_mat A = sprandu<sp_mat>(100, 100, 0.1);
+ vec a = nonzeros(A);
+
+mat B(100, 100, fill::eye);
+vec b = nonzeros(B);
+
+
+
+
+
+See also:
+
+
+
+
+
+
+
+omit_nan( X )
+
omit_nonfinite( X )
+
+
+
+
+See also:
+
+
+
+
+
@@ -20241,8 +20288,9 @@ List of additions and changes for each version:
(under development)
added balance() for producing balanced matrices where column and row norms are roughly the same
added find_nonnan() for finding indices of non-NaN elements
+added omit_nan() to extract all non-NaN values
+added omit_nonfinite() to extract all finite values
added standalone replace() function
-...