From 9c7129db7c99e4a31697a9b404c0659adcde0e6f Mon Sep 17 00:00:00 2001 From: HÃ¥vard Pettersen Date: Thu, 1 Feb 2018 12:21:44 +0000 Subject: minor cleanup --- .../vespa/eval/tensor/dense/dense_xw_product_function.cpp | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'eval/src') diff --git a/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp b/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp index 8b5d8f673ef..5787d6a470a 100644 --- a/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp +++ b/eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp @@ -90,20 +90,12 @@ DenseXWProductFunction::DenseXWProductFunction(const eval::ValueType &resultType _commonDimensionInnermost(matrixHasCommonDimensionInnermost) {} -namespace { - -} // namespace - eval::InterpretedFunction::Instruction DenseXWProductFunction::compile_self(Stash &stash) const { Self &self = stash.create(result_type(), _vectorSize, _resultSize, stash); - if (_commonDimensionInnermost) { - return eval::InterpretedFunction::Instruction(my_op, (uint64_t)(&self)); - } else { - return eval::InterpretedFunction::Instruction(my_op, (uint64_t)(&self)); - } -} - + auto op = _commonDimensionInnermost ? my_op : my_op; + return eval::InterpretedFunction::Instruction(op, (uint64_t)(&self)); } +} // namespace vespalib::tensor -- cgit v1.2.3