-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating docs and other files for release v0.6.0
- Loading branch information
1 parent
539c1b7
commit 7b69822
Showing
259 changed files
with
13,584 additions
and
4,801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. _isclose_func: | ||
|
||
isclose | ||
======= | ||
|
||
Determine the closeness of values across two operators using absolute and relative tolerances. The output | ||
from isclose is an ``int`` value since it's commonly used for reductions and ``bool`` reductions using | ||
atomics are not available in hardware. | ||
|
||
|
||
.. doxygenfunction:: isclose | ||
|
||
Examples | ||
~~~~~~~~ | ||
|
||
.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu | ||
:language: cpp | ||
:start-after: example-begin isclose-test-1 | ||
:end-before: example-end isclose-test-1 | ||
:dedent: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. _allclose_func: | ||
|
||
allclose | ||
======== | ||
|
||
Reduce the closeness of two operators to a single scalar (0D) output. The output | ||
from allclose is an ``int`` value since boolean reductions are not available in hardware | ||
|
||
|
||
.. doxygenfunction:: allclose(OutType dest, const InType1 &in1, const InType2 &in2, double rtol, double atol, SingleThreadHostExecutor exec) | ||
.. doxygenfunction:: allclose(OutType dest, const InType1 &in1, const InType2 &in2, double rtol, double atol, cudaExecutor exec = 0) | ||
|
||
Examples | ||
~~~~~~~~ | ||
|
||
.. literalinclude:: ../../../../test/00_operators/ReductionTests.cu | ||
:language: cpp | ||
:start-after: example-begin allclose-test-1 | ||
:end-before: example-end allclose-test-1 | ||
:dedent: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. _overlap_func: | ||
|
||
overlap | ||
####### | ||
|
||
Create an overlapping view an of input operator giving a higher-rank view of the input | ||
|
||
For example, the following 1D tensor [1 2 3 4 5] could be cloned into a 2d tensor with a | ||
window size of 2 and overlap of 1, resulting in:: | ||
|
||
[1 2 | ||
2 3 | ||
3 4 | ||
4 5] | ||
|
||
Currently this only works on 1D tensors going to 2D, but may be expanded | ||
for higher dimensions in the future. Note that if the window size does not | ||
divide evenly into the existing column dimension, the view may chop off the | ||
end of the data to make the tensor rectangular. | ||
|
||
.. note:: | ||
Only 1D input operators are accepted at this time | ||
|
||
.. doxygenfunction:: overlap( const OpType &op, const index_t (&windows)[N], const index_t (&strides)[N]) | ||
.. doxygenfunction:: overlap( const OpType &op, const std::array<index_t, N> &windows, const std::array<index_t, N> &strides) | ||
|
||
Examples | ||
~~~~~~~~ | ||
|
||
.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu | ||
:language: cpp | ||
:start-after: example-begin overlap-test-1 | ||
:end-before: example-end overlap-test-1 | ||
:dedent: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.. _at_func: | ||
|
||
at | ||
== | ||
|
||
Selects a single value from an operator. Since `at` is a lazily-evaluated operator, it should be used | ||
in situations where `operator()` cannot be used. For instance: | ||
|
||
.. code-block:: cpp | ||
(a = b(5)).run(); | ||
The code above creates a race condition where `b(5)` is evaluated on the host before launch, but the value may | ||
not be computed from a previous operation. Instead, the `at()` operator can be used to defer the load until | ||
the operation is launched: | ||
|
||
.. code-block:: cpp | ||
(a = at(b, 5)).run(); | ||
.. doxygenfunction:: at(const Op op, Is... indices) | ||
|
||
Examples | ||
~~~~~~~~ | ||
|
||
.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu | ||
:language: cpp | ||
:start-after: example-begin at-test-1 | ||
:end-before: example-end at-test-1 | ||
:dedent: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
docs/_sources/api/signalimage/filtering/channelize_poly.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.. _channelize_poly_func: | ||
|
||
channelize_poly | ||
=============== | ||
|
||
Polyphase channelizer with a configurable number of channels | ||
|
||
.. doxygenfunction:: matx::channelize_poly(const InType &in, const FilterType &f, index_t num_channels, index_t decimation_factor) | ||
|
||
Examples | ||
~~~~~~~~ | ||
|
||
.. literalinclude:: ../../../../test/00_transform/ChannelizePoly.cu | ||
:language: cpp | ||
:start-after: example-begin channelize_poly-test-1 | ||
:end-before: example-end channelize_poly-test-1 | ||
:dedent: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.. _pwelch_func: | ||
|
||
pwelch | ||
====== | ||
|
||
Estimate the power spectral density of a signal using Welch's method [1]_ | ||
|
||
.. doxygenfunction:: pwelch(const xType& x, const wType& w, index_t nperseg, index_t noverlap, index_t nfft) | ||
.. doxygenfunction:: pwelch(const xType& x, index_t nperseg, index_t noverlap, index_t nfft) | ||
|
||
Examples | ||
~~~~~~~~ | ||
|
||
.. literalinclude:: ../../../../test/00_operators/PWelch.cu | ||
:language: cpp | ||
:start-after: example-begin pwelch-test-1 | ||
:end-before: example-end pwelch-test-1 | ||
:dedent: | ||
|
||
References | ||
~~~~~~~~~~ | ||
|
||
.. [1] \ P. Welch, "The use of fast Fourier transform for the estimation of power spectra: A method based on time averaging over short, modified periodograms," in IEEE Transactions on Audio and Electroacoustics, vol. 15, no. 2, pp. 70-73, June 1967, doi: 10.1109/TAU.1967.1161901. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,8 @@ Statistics | |
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
avgvar/index.rst | ||
corr/index.rst | ||
hist/index.rst | ||
misc/index.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. _misc_stats: | ||
|
||
Misc | ||
#### | ||
|
||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:glob: | ||
|
||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. _percentile_func: | ||
|
||
percentile | ||
########## | ||
|
||
Find the q-th percentile of an input sequence. ``q`` is a value between 0 and 100 representing the percentile. A value | ||
of 0 is equivalent to mean, 100 is max, and 50 is the median when using the ``LINEAR`` method. | ||
|
||
.. note:: | ||
Multiple q values are not supported yet | ||
|
||
Supported methods for interpolation are: LINEAR, HAZEN, WEIBULL, LOWER, HIGHER, MIDPOINT, NEAREST, MEDIAN_UNBIASED, and NORMAL_UNBIASED | ||
|
||
.. doxygenfunction:: percentile(const InType &in, unsigned char q, PercentileMethod method = PercentileMethod::LINEAR) | ||
.. doxygenfunction:: percentile(const InType &in, unsigned char q, const int (&dims)[D], PercentileMethod method = PercentileMethod::LINEAR) | ||
|
||
Examples | ||
~~~~~~~~ | ||
|
||
.. literalinclude:: ../../../../test/00_operators/ReductionTests.cu | ||
:language: cpp | ||
:start-after: example-begin percentile-test-1 | ||
:end-before: example-end percentile-test-1 | ||
:dedent: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.