summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2018-02-01 12:21:44 +0000
committerHåvard Pettersen <havardpe@oath.com>2018-02-01 12:21:44 +0000
commit9c7129db7c99e4a31697a9b404c0659adcde0e6f (patch)
tree947373b27515d2d059163fd959e36de6bf1e7083 /eval
parent9795276d274f123b56e4d998b620b67714ddb3b3 (diff)
minor cleanup
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/tensor/dense/dense_xw_product_function.cpp14
1 files changed, 3 insertions, 11 deletions
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 <unnamed>
-
eval::InterpretedFunction::Instruction
DenseXWProductFunction::compile_self(Stash &stash) const
{
Self &self = stash.create<Self>(result_type(), _vectorSize, _resultSize, stash);
- if (_commonDimensionInnermost) {
- return eval::InterpretedFunction::Instruction(my_op<true>, (uint64_t)(&self));
- } else {
- return eval::InterpretedFunction::Instruction(my_op<false>, (uint64_t)(&self));
- }
-}
-
+ auto op = _commonDimensionInnermost ? my_op<true> : my_op<false>;
+ return eval::InterpretedFunction::Instruction(op, (uint64_t)(&self));
}
+} // namespace vespalib::tensor