25#ifndef __LINEAR_MIXER_HPP__
26#define __LINEAR_MIXER_HPP__
42template <
typename... FUNCS>
46 explicit Linear(
double beta)
52 void mix_impl()
override
54 const auto idx = this->idx_hist(this->step_ + 1);
56 this->copy(this->input_, this->output_history_[idx]);
57 this->scale(beta_, this->output_history_[idx]);
58 this->axpy(1.0 - beta_, this->output_history_[this->idx_hist(this->step_)], this->output_history_[idx]);
Abstract mixer for variadic number of Function objects, which are described by FunctionProperties.
Contains definition and implementation of sirius::Mixer base class.
Namespace of the SIRIUS library.