You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

arith.h 442 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <cmath>
  3. #include <vector>
  4. #include <numeric>
  5. namespace arith {
  6. float sqrt(float x);
  7. float mean(const std::vector<int>& x);
  8. template<typename T>
  9. void mm(const std::vector<T>& a, const std::vector<T>& b, std::vector<T>& c, size_t m, size_t k, size_t n) {
  10. // 补全这里,谢谢
  11. }
  12. template<typename T>
  13. void vector_scalar_max(const std::vector<T>& a, std::vector<T> &b, T scalar) {
  14. // 补全这里,谢谢
  15. }
  16. }