|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
|
inlinenodiscard |
The spec of a LaggedPair kernel.
For window w and lag l the kernel sums map(x[i], x[i + l]) over the window, with i + l inside it, in the template's emulated IEEE double arithmetic on word pairs. A centred kernel subtracts each window's mean from both operands first; the mean is the window sum divided by the window length, exactly rounded like a host quotient. A lag of the window length or more sums nothing. Bindings: values 0, result 1.
| map | Pairwise map summed over the window. |
| centred | True to remove each window's mean before the map. |
| workgroup | Invocations per sum. A power of two from 2 to 1024. |
Definition at line 34 of file LaggedPair.hpp.
References MayaFlux::Portal::Graphics::ShaderSpec::Assemble::build(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::centred(), MayaFlux::Portal::Graphics::LaggedPair, MayaFlux::Portal::Graphics::ShaderSpec::Assemble::pair_map(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::pc(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::ssbo(), MayaFlux::Portal::Graphics::ShaderSpec::Assemble::tmpl(), MayaFlux::Kakshya::UINT32, MayaFlux::Kakshya::VEC2_U32, and MayaFlux::Portal::Graphics::ShaderSpec::Assemble::workgroup().
Referenced by MayaFlux::Yantra::WaveformAnalyzer< std::vector< Kakshya::DataVariant >, Eigen::MatrixXd >::make_lagged().