|
|
|
@@ -778,7 +778,7 @@ which is one of:
|
|
|
|
|
<ul>
|
|
|
|
|
<table>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr><td><code>fill::zeros</code></td><td> ↦ </td><td>set all elements to 0 (default in Armadillo >= 10.5)</td></tr>
|
|
|
|
|
<tr><td><code>fill::zeros</code></td><td> ↦ </td><td>set all elements to 0</td></tr>
|
|
|
|
|
<tr><td><code>fill::ones</code></td><td> ↦ </td><td>set all elements to 1</td></tr>
|
|
|
|
|
<tr><td><code>fill::eye</code></td><td> ↦ </td><td>set the elements on the main diagonal to 1 and off-diagonal elements to 0</td></tr>
|
|
|
|
|
<tr><td><code>fill::randu</code></td><td> ↦ </td><td>set all elements to random values from a uniform distribution in the [0,1] interval</td></tr>
|
|
|
|
@@ -790,13 +790,7 @@ which is one of:
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
<b>Caveat:</b>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>in Armadillo >= 10.5, the default initialisation is <code>fill::zeros</code></li>
|
|
|
|
|
<li>in Armadillo <= 10.4, the default initialisation is <code>fill::none</code></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<li>Default element initialisation is <code>fill::zeros</code> (since Armadillo 10.5)</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
For the <i>mat(string)</i> constructor, the format is elements separated by spaces, and rows denoted by semicolons;
|
|
|
|
@@ -1722,7 +1716,7 @@ which is one of:
|
|
|
|
|
<ul>
|
|
|
|
|
<table>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr><td><code>fill::zeros</code></td><td> ↦ </td><td>set all elements to 0 (default in Armadillo >= 10.5)</td></tr>
|
|
|
|
|
<tr><td><code>fill::zeros</code></td><td> ↦ </td><td>set all elements to 0</td></tr>
|
|
|
|
|
<tr><td><code>fill::ones</code></td><td> ↦ </td><td>set all elements to 1</td></tr>
|
|
|
|
|
<tr><td><code>fill::randu</code></td><td> ↦ </td><td>set all elements to random values from a uniform distribution in the [0,1] interval</td></tr>
|
|
|
|
|
<tr><td><code>fill::randn</code></td><td> ↦ </td><td>set all elements to random values from a normal/Gaussian distribution with zero mean and unit variance</td></tr>
|
|
|
|
@@ -1733,13 +1727,7 @@ which is one of:
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
<b>Caveat:</b>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>in Armadillo >= 10.5, the default initialisation is <code>fill::zeros</code></li>
|
|
|
|
|
<li>in Armadillo <= 10.4, the default initialisation is <code>fill::none</code></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<li>Default element initialisation is <code>fill::zeros</code> (since Armadillo 10.5)</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
Each instance of <i>cube</i> automatically allocates and releases internal memory.
|
|
|
|
@@ -4299,7 +4287,7 @@ Similar to "broadcasting" in Matlab / Octave
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
Supported operations for forms 1 and 2:
|
|
|
|
|
Supported operations for forms 1 and 2:
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<ul>
|
|
|
|
@@ -4314,7 +4302,7 @@ Supported operations for forms 1 and 2:
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
For form 2:
|
|
|
|
|
For form 2:
|
|
|
|
|
<ul>
|
|
|
|
|
<li>the argument <i>vector_of_indices</i> contains a list of indices of the columns/rows to be used; it must evaluate to a vector of type <i><a href="#Col">uvec</a></i></li>
|
|
|
|
|
<li>arithmetic operations as per form 1 are supported</li>
|
|
|
|
@@ -4322,7 +4310,7 @@ For form 2:
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
For form 3:
|
|
|
|
|
For form 3:
|
|
|
|
|
<ul>
|
|
|
|
|
<li>apply the given <i>lambda_function</i> to each column vector or row vector</li>
|
|
|
|
|
<li>the function must accept a reference to a <a href="#Col">Col</a> or <a href="#Row">Row</a> object with the same element type as the underlying matrix</li>
|
|
|
|
@@ -4395,7 +4383,7 @@ Similar to "broadcasting" in Matlab / Octave
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
Supported operations for form 1:
|
|
|
|
|
Supported operations for form 1:
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<ul>
|
|
|
|
@@ -4411,7 +4399,7 @@ Supported operations for form 1:
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
For form 2:
|
|
|
|
|
For form 2:
|
|
|
|
|
<ul>
|
|
|
|
|
<li>the argument <i>vector_of_indices</i> contains a list of indices of the slices to be used; it must evaluate to a vector of type <i><a href="#Col">uvec</a></i></li>
|
|
|
|
|
<li>arithmetic operations as per form 1 are supported, except for <code><b>*</b></code> and <code><b>*=</b></code> (ie. matrix multiplication)</li>
|
|
|
|
@@ -4419,7 +4407,7 @@ For form 2:
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
For form 3:
|
|
|
|
|
For form 3:
|
|
|
|
|
<ul>
|
|
|
|
|
<li>apply the given <i>lambda_function</i> to each slice</li>
|
|
|
|
|
<li>the function must accept a reference to a <a href="#Mat">Mat</a> object with the same element type as the underlying cube</li>
|
|
|
|
@@ -4427,7 +4415,7 @@ For form 3:
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
For form 4:
|
|
|
|
|
For form 4:
|
|
|
|
|
<ul>
|
|
|
|
|
<li>apply the given <i>lambda_function</i> to each slice, as per form 3</li>
|
|
|
|
|
<li>the argument <i>use_mp</i> is a bool to enable the use of OpenMP for multi-threaded execution of <i>lambda_function</i> on multiple slices at the same time</li>
|
|
|
|
@@ -6822,6 +6810,7 @@ See also:
|
|
|
|
|
<li><a href="#has_nan">.has_nan()</a></li>
|
|
|
|
|
<li><a href="#find_finite_nonfinite">find_finite() / find_nonfinite()</a></li>
|
|
|
|
|
<li><a href="#find_nan_nonnan">find_nan() / find_nonnan()</a></li>
|
|
|
|
|
<li><a href="#omit_nan_nonfinite">omit_nan() / omit_nonfinite()</a></li>
|
|
|
|
|
<li><a href="#constants">constants (pi, nan, inf, ...)</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
@@ -6864,6 +6853,7 @@ See also:
|
|
|
|
|
<li><a href="#replace">.replace()</a></li>
|
|
|
|
|
<li><a href="#is_finite">.is_finite()</a>
|
|
|
|
|
<li><a href="#find_finite_nonfinite">find_finite() / find_nonfinite()</a></li>
|
|
|
|
|
<li><a href="#omit_nan_nonfinite">omit_nonfinite()</a></li>
|
|
|
|
|
<li><a href="#constants">constants (pi, nan, inf, ...)</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
@@ -6911,6 +6901,7 @@ See also:
|
|
|
|
|
<li><a href="#replace">.replace()</a></li>
|
|
|
|
|
<li><a href="#is_finite">.is_finite()</a>
|
|
|
|
|
<li><a href="#find_nan_nonnan">find_nan() / find_nonnan()</a></li>
|
|
|
|
|
<li><a href="#omit_nan_nonfinite">omit_nan()</a></li>
|
|
|
|
|
<li><a href="#constants">constants (pi, nan, inf, ...)</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
@@ -7129,58 +7120,58 @@ A.brief_print("A:");
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<ul>
|
|
|
|
|
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>auto_detect</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>auto_detect</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Used only by <i>.load()</i> only: attempt to automatically detect the file type as one of the formats described below;
|
|
|
|
|
<br>[ default operation for <i>.load()</i> ]<br><br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>arma_binary</b><br></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>arma_binary</b><br></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Numerical data stored in machine dependent binary format, with a simple header to speed up loading.
|
|
|
|
|
The header indicates the type and size of matrix/cube.
|
|
|
|
|
<br>[ default operation for <i>.save()</i> ]
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>arma_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>arma_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Numerical data stored in human readable text format, with a simple header to speed up loading.
|
|
|
|
|
The header indicates the type and size of matrix/cube.
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>raw_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>raw_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Numerical data stored in machine dependent raw binary format, without a header.
|
|
|
|
|
Matrices are loaded to have one column,
|
|
|
|
|
while cubes are loaded to have one slice with one column.
|
|
|
|
|
The <a href="#reshape_member">.reshape()</a> function can be used to alter the size of the loaded matrix/cube without losing data.
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>raw_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>raw_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Numerical data stored in raw ASCII format, without a header.
|
|
|
|
|
The numbers are separated by whitespace.
|
|
|
|
|
The number of columns must be the same in each row.
|
|
|
|
@@ -7189,26 +7180,26 @@ Data which was saved in Matlab/Octave using the <i>-ascii</i> option can be read
|
|
|
|
|
Complex numbers are stored in standard C++ notation, which is a tuple surrounded by brackets: eg. (1.23,4.56) indicates 1.24 + 4.56i.
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>csv_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>csv_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Numerical data stored in comma separated value (CSV) text format, <b>without</b> a header.
|
|
|
|
|
To save/load <b>with</b> a header, use the <b>csv_name(</b>filename,header<b>)</b> specification instead (more details below).
|
|
|
|
|
Handles complex numbers stored in the compound form of 1.24+4.56i.
|
|
|
|
|
Applicable to <i>Mat</i> and <i>SpMat</i>.
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>coord_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>coord_ascii</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Numerical data stored as a text file in coordinate list format, without a header.
|
|
|
|
|
Only non-zero values are stored.
|
|
|
|
|
<br>
|
|
|
|
@@ -7219,39 +7210,39 @@ For real matrices, each line contains information in the following format:
|
|
|
|
|
<br><b>Caveat:</b> not supported by <i>auto_detect</i>.
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>pgm_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>pgm_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Image data stored in Portable Gray Map (PGM) format.
|
|
|
|
|
Applicable to <i>Mat</i> only.
|
|
|
|
|
Saving <i>int</i>, <i>float</i> or <i>double</i> matrices is a lossy operation, as each element is copied and converted to an 8 bit representation.
|
|
|
|
|
As such the matrix should have values in the [0,255] interval, otherwise the resulting image may not display correctly.
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>ppm_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>ppm_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Image data stored in Portable Pixel Map (PPM) format.
|
|
|
|
|
Applicable to <i>Cube</i> only.
|
|
|
|
|
Saving <i>int</i>, <i>float</i> or <i>double</i> matrices is a lossy operation, as each element is copied and converted to an 8 bit representation.
|
|
|
|
|
As such the cube/field should have values in the [0,255] interval, otherwise the resulting image may not display correctly.
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>hdf5_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>hdf5_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
Numerical data stored in portable <a href="https://en.wikipedia.org/wiki/Hierarchical_Data_Format">HDF5</a> binary format.
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
@@ -7267,10 +7258,10 @@ for loading, the order of operations is:
|
|
|
|
|
to explicitly control the dataset name, specify it via the <b>hdf5_name()</b> argument (more details below)
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
@@ -7387,6 +7378,7 @@ if(ok == false)
|
|
|
|
|
<li><a href="https://en.wikipedia.org/wiki/Hierarchical_Data_Format">HDF</a> in Wikipedia</li>
|
|
|
|
|
<li><a href="https://en.wikipedia.org/wiki/Comma-separated_values">CSV</a> in Wikipedia
|
|
|
|
|
<li><a href="#save_load_field">saving / loading fields</a></li>
|
|
|
|
|
<li><a href="#element_initialisation">element initialisation</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
@@ -7439,26 +7431,26 @@ Other than storing string fields as text files, the following file formats are s
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<ul>
|
|
|
|
|
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>auto_detect</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>auto_detect</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
<i>.load()</i>: attempt to automatically detect the field format type as one of the formats described below;
|
|
|
|
|
this is the default operation
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>arma_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>arma_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
objects are stored in machine dependent binary format
|
|
|
|
@@ -7469,13 +7461,13 @@ default type for fields of type <i>Mat</i>, <i>Col</i>, <i>Row</i> or <i>Cube</i
|
|
|
|
|
only applicable to fields of type <i>Mat</i>, <i>Col</i>, <i>Row</i> or <i>Cube</i>
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>ppm_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="vertical-align: top;"><b>ppm_binary</b></td>
|
|
|
|
|
<td style="vertical-align: top;"><br>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="vertical-align: top;">
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|
image data stored in Portable Pixmap Map (PPM) format
|
|
|
|
@@ -7494,11 +7486,10 @@ it is assumed that the red, green and blue components are stored in the first, s
|
|
|
|
|
saving <i>int</i>, <i>float</i> or <i>double</i> matrices is a lossy operation,
|
|
|
|
|
as each matrix element is copied and converted to an 8 bit representation
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
@@ -11092,6 +11083,9 @@ See also:
|
|
|
|
|
<li><a href="#nonzeros">nonzeros()</a>
|
|
|
|
|
<li><a href="#vectorise">vectorise()</a>
|
|
|
|
|
<li><a href="#for_each">.for_each()</a>
|
|
|
|
|
<li><a href="#is_finite">.is_finite()</a>
|
|
|
|
|
<li><a href="#has_inf">.has_inf()</a>
|
|
|
|
|
<li><a href="#has_nan">.has_nan()</a>
|
|
|
|
|
</ul>
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
@@ -18490,7 +18484,7 @@ See also:
|
|
|
|
|
<b>RNG seed setting</b>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
There are two functions to change the seed used by the random number generator (RNG):
|
|
|
|
|
Functions to change the seed used by the random number generator (RNG):
|
|
|
|
|
<br>
|
|
|
|
|
<br>
|
|
|
|
|
<table style="text-align: left;" border="0" cellpadding="2" cellspacing="2">
|
|
|
|
@@ -18781,7 +18775,7 @@ rudimentary <i>fp16</i> hardware support is present on x86-64 CPUs with the F16C
|
|
|
|
|
<br>
|
|
|
|
|
</ul>
|
|
|
|
|
<li>
|
|
|
|
|
If no compiler or hardware support is detected, support for <i>fp16</i> element types is <b>not</b> automatically enableds
|
|
|
|
|
If no compiler or hardware support is detected, support for <i>fp16</i> element types is <b>not</b> automatically enabled
|
|
|
|
|
</li>
|
|
|
|
|
<br>
|
|
|
|
|
<li>
|
|
|
|
|