1# ifndef _SKIT_CSR_AMUX_H
2# define _SKIT_CSR_AMUX_H
24# include "rheolef/compiler.h"
73 class InputRandomAcessIterator,
79 InputIterator last_ia,
80 InputRandomAcessIterator x,
84 typedef typename std::iterator_traits<InputIterator>::value_type InputIterator2;
85 typedef typename std::iterator_traits<OutputIterator>::value_type
T;
86 InputIterator2
a = (*ia++);
87 while (ia != last_ia) {
89 InputIterator2 last_a = (*ia++);
91 sum += (*a).second * x[(*a).first];
This file is part of Rheolef.
void csr_amux(InputIterator ia, InputIterator last_ia, InputRandomAcessIterator x, SetOperator set_op, OutputIterator y)