MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ weight()

Kinesis::Stochastic::Weights::Cell MayaFlux::Nodes::Network::CombineOperator::weight ( size_t  slot,
size_t  output 
)

One weight cell, readable and assignable from any thread.

Parameters
slotRow, the slot index
outputColumn, the output index
Exceptions
std::out_of_rangewhen slot or output lies outside the table. The row count is fixed at construction, so a slot added to the network afterwards has no row until weights()->assign().
Note
The returned cell must not be kept across weights()->assign().

Definition at line 180 of file RelationOperators.cpp.

181{
182 if (slot >= m_weights->rows() || output >= m_weights->cols()) {
183 error<std::out_of_range>(
185 std::source_location::current(),
186 "CombineOperator::weight: ({}, {}) outside the weights table ({} x {})",
187 slot, output, m_weights->rows(), m_weights->cols());
188 }
189 return (*m_weights)(slot, output);
190}
std::shared_ptr< Kinesis::Stochastic::Weights > m_weights
@ NodeProcessing
Node graph processing (Nodes::NodeGraphManager)
@ Nodes
DSP Generator and Filter Nodes, graph pipeline, node management.

References m_weights, MayaFlux::Journal::NodeProcessing, MayaFlux::Journal::Nodes, and output().

+ Here is the call graph for this function: