<%inherit file="base.tpl.cpp"/>\ | |
<%namespace name="tests" file="opmvv_vred_test.tpl.cpp"/> | |
<% | |
import numpy as np | |
import vec_test_helpers | |
template_helper = vec_test_helpers.VecTemplateHelper(op, 32) | |
src2, src1, rs1 = template_helper.get_test_inputs(n=5) | |
dest_type = template_helper.get_np_dest_type() | |
ref_vv = np.zeros(src2.shape, dtype=dest_type) | |
ref_vv[0] = src2.sum() + src1[0] | |
%>\ | |
${tests.test_opmvv_vred(template_helper, src2, src1, ref_vv)} |