diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-01-22 12:00:01 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-01-22 12:00:01 +0000 |
commit | d29f85adec4a26af5f6b7e96f6f6e21d00807115 (patch) | |
tree | 219a772d0fdf32e4a3c404c25df4813cf8145148 /eval/src | |
parent | 471f8f32520dd8d2b327a9ac5cf06c558e9216ad (diff) |
remove some whitespace at end of lines
Diffstat (limited to 'eval/src')
-rw-r--r-- | eval/src/tests/ann/nns-l2.h | 4 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/basic_nodes.h | 2 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/tensor_function.h | 8 | ||||
-rw-r--r-- | eval/src/vespa/eval/eval/test/gen_spec.h | 2 | ||||
-rw-r--r-- | eval/src/vespa/eval/instruction/generic_rename.h | 2 | ||||
-rw-r--r-- | eval/src/vespa/eval/instruction/join_with_number_function.h | 2 | ||||
-rw-r--r-- | eval/src/vespa/eval/instruction/mapped_lookup.h | 2 | ||||
-rw-r--r-- | eval/src/vespa/eval/instruction/sum_max_dot_product_function.h | 2 |
8 files changed, 12 insertions, 12 deletions
diff --git a/eval/src/tests/ann/nns-l2.h b/eval/src/tests/ann/nns-l2.h index 022542124aa..3b9fb6a81ab 100644 --- a/eval/src/tests/ann/nns-l2.h +++ b/eval/src/tests/ann/nns-l2.h @@ -7,7 +7,7 @@ template <typename T, size_t VLEN> static double hw_l2_sq_dist(const T * af, const T * bf, size_t sz) -{ +{ constexpr const size_t OpsPerV = VLEN/sizeof(T); typedef T V __attribute__ ((vector_size (VLEN), aligned(VLEN))); @@ -17,7 +17,7 @@ static double hw_l2_sq_dist(const T * af, const T * bf, size_t sz) V tmp_diff; V tmp_squa; V tmp_sum; - memset(&tmp_sum, 0, sizeof(tmp_sum)); + memset(&tmp_sum, 0, sizeof(tmp_sum)); const size_t numOps = sz/OpsPerV; for (size_t i = 0; i < numOps; ++i) { diff --git a/eval/src/vespa/eval/eval/basic_nodes.h b/eval/src/vespa/eval/eval/basic_nodes.h index b5cf36b853b..1aaf72beaa8 100644 --- a/eval/src/vespa/eval/eval/basic_nodes.h +++ b/eval/src/vespa/eval/eval/basic_nodes.h @@ -71,7 +71,7 @@ using Node_UP = std::unique_ptr<Node>; * auto number = as<Number>(node); * if (number) { * do_stuff(number->value()); - * } + * } * </pre> **/ template<typename T> diff --git a/eval/src/vespa/eval/eval/tensor_function.h b/eval/src/vespa/eval/eval/tensor_function.h index c5cc99d9137..8f96110b6d8 100644 --- a/eval/src/vespa/eval/eval/tensor_function.h +++ b/eval/src/vespa/eval/eval/tensor_function.h @@ -151,12 +151,12 @@ public: class Op1 : public Node { private: - Child _child; + Child _child; public: Op1(const ValueType &result_type_in, const TensorFunction &child_in) : Node(result_type_in), _child(child_in) {} - const TensorFunction &child() const { return _child.get(); } + const TensorFunction &child() const { return _child.get(); } void push_children(std::vector<Child::CREF> &children) const final override; void visit_children(vespalib::ObjectVisitor &visitor) const final override; }; @@ -291,7 +291,7 @@ class Concat : public Op2 { using Super = Op2; private: - vespalib::string _dimension; + vespalib::string _dimension; public: Concat(const ValueType &result_type_in, const TensorFunction &lhs_in, @@ -448,7 +448,7 @@ public: const TensorFunction &cond() const { return _cond.get(); } const TensorFunction &true_child() const { return _true_child.get(); } const TensorFunction &false_child() const { return _false_child.get(); } - void push_children(std::vector<Child::CREF> &children) const final override; + void push_children(std::vector<Child::CREF> &children) const final override; bool result_is_mutable() const override { return (true_child().result_is_mutable() && false_child().result_is_mutable()); diff --git a/eval/src/vespa/eval/eval/test/gen_spec.h b/eval/src/vespa/eval/eval/test/gen_spec.h index 5f507eeb272..30893eb90a9 100644 --- a/eval/src/vespa/eval/eval/test/gen_spec.h +++ b/eval/src/vespa/eval/eval/test/gen_spec.h @@ -16,7 +16,7 @@ using Sequence = std::function<double(size_t)>; // Sequence counting up from 1 (default) // bias (starting point) can be adjusted -// bias = 1.5 -> 1.5, 2.5, 3.5 ... +// bias = 1.5 -> 1.5, 2.5, 3.5 ... Sequence N(double bias = 1.0); // Sequence of numbers ax + b (where x is the index) diff --git a/eval/src/vespa/eval/instruction/generic_rename.h b/eval/src/vespa/eval/instruction/generic_rename.h index 62a0685edce..67ea311153e 100644 --- a/eval/src/vespa/eval/instruction/generic_rename.h +++ b/eval/src/vespa/eval/instruction/generic_rename.h @@ -12,7 +12,7 @@ namespace vespalib::eval { struct ValueBuilderFactory; } namespace vespalib::eval::instruction { - + struct DenseRenamePlan { SmallVector<size_t> loop_cnt; SmallVector<size_t> stride; diff --git a/eval/src/vespa/eval/instruction/join_with_number_function.h b/eval/src/vespa/eval/instruction/join_with_number_function.h index a459d76153f..1ced038c5eb 100644 --- a/eval/src/vespa/eval/instruction/join_with_number_function.h +++ b/eval/src/vespa/eval/instruction/join_with_number_function.h @@ -19,7 +19,7 @@ private: Primary _primary; tensor_function::join_fun_t _function; public: - + JoinWithNumberFunction(const tensor_function::Join &original_join, bool number_on_left); ~JoinWithNumberFunction(); Primary primary() const { return _primary; } diff --git a/eval/src/vespa/eval/instruction/mapped_lookup.h b/eval/src/vespa/eval/instruction/mapped_lookup.h index 2b66c6cf4aa..5b29c61e37d 100644 --- a/eval/src/vespa/eval/instruction/mapped_lookup.h +++ b/eval/src/vespa/eval/instruction/mapped_lookup.h @@ -15,7 +15,7 @@ namespace vespalib::eval { * * Both tensors must have the same cell type, which can be either * float or double. - * + * * The optimized expression looks like this: reduce(key*map,sum,x) * * If 'map' is also sparse, the lookup operation is a sparse dot diff --git a/eval/src/vespa/eval/instruction/sum_max_dot_product_function.h b/eval/src/vespa/eval/instruction/sum_max_dot_product_function.h index 195823f38b9..403d023129c 100644 --- a/eval/src/vespa/eval/instruction/sum_max_dot_product_function.h +++ b/eval/src/vespa/eval/instruction/sum_max_dot_product_function.h @@ -9,7 +9,7 @@ namespace vespalib::eval { /** * Tensor function combining multiple dot products with multiple * layers of aggregation, resulting in a single scalar result. - * + * * inputs: * query: tensor<float>(qt{},x[32]) * document: tensor<float>(dt{},x[32]) |