kyopro-lib

This documentation is automatically generated by online-judge-tools/verification-helper

View on GitHub

:warning: Sum matrix monoid
(Mylib/AlgebraicStructure/Monoid/sum_matrix.cpp)

Operations

Requirements

Notes

Problems

References

Code

#pragma once

namespace haar_lib {
  template <typename T>
  struct sum_matrix_monoid {
    using value_type = T;
    value_type operator()() const { return T(); }
    value_type operator()(const value_type &a, const value_type &b) const { return a + b; }
  };
}  // namespace haar_lib
#line 2 "Mylib/AlgebraicStructure/Monoid/sum_matrix.cpp"

namespace haar_lib {
  template <typename T>
  struct sum_matrix_monoid {
    using value_type = T;
    value_type operator()() const { return T(); }
    value_type operator()(const value_type &a, const value_type &b) const { return a + b; }
  };
}  // namespace haar_lib
Back to top page