blob: b7661a39b6178e2cbb956917348fcf5170baabb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<%
if streaming != 'SSS':
raise Exception('"update_sss_control_structure" function only makes sense for the SSS pattern')
%>
void update_sss_control_structure(${float_type}** f) {
% for i, c_i in enumerate(descriptor.c):
${float_type}* f_old_${i} = f[${i}];
% endfor
% for i, c_i in enumerate(descriptor.c):
f[${i}] = f_old_${descriptor.c.index(-c_i)} + ${layout.neighbor_offset(-c_i)};
% endfor
}
|