Beatmup
std Namespace Reference

Functions

template<typename numeric >
CustomPoint< numeric > min (const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
 
template<typename numeric >
CustomPoint< numeric > max (const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
 
std::string to_string (Beatmup::NNets::ActivationFunction function)
 
std::string to_string (Beatmup::NNets::Pooling2D::Operator op)
 
std::string to_string (const Beatmup::NNets::Size::Padding &padding)
 

Function Documentation

◆ min()

template<typename numeric >
CustomPoint<numeric> std::min ( const CustomPoint< numeric > &  a,
const CustomPoint< numeric > &  b 
)
inline

Definition at line 724 of file geometry.h.

724  {
725  return CustomPoint<numeric>(std::min(a.x, b.x), std::min(a.y, b.y));
726  }
2D point class
Definition: geometry.h:38
CustomPoint< numeric > min(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
Definition: geometry.h:724
jobject jlong jint jint jint jint jint b
jobject jlong jint jint jint jint jint jint a

◆ max()

template<typename numeric >
CustomPoint<numeric> std::max ( const CustomPoint< numeric > &  a,
const CustomPoint< numeric > &  b 
)
inline

Definition at line 728 of file geometry.h.

728  {
729  return CustomPoint<numeric>(std::max(a.x, b.x), std::max(a.y, b.y));
730  }
CustomPoint< numeric > max(const CustomPoint< numeric > &a, const CustomPoint< numeric > &b)
Definition: geometry.h:728

◆ to_string() [1/3]

std::string std::to_string ( Beatmup::NNets::ActivationFunction  function)

◆ to_string() [2/3]

std::string std::to_string ( Beatmup::NNets::Pooling2D::Operator  op)

Definition at line 241 of file pooling2d.cpp.

241  {
242  switch (op) {
243  case Pooling2D::Operator::AVERAGE: return "average";
244  case Pooling2D::Operator::MAX: return "max";
245  }
246  Insanity::insanity("Invalid pooling operator");
247  return "";
248 }
jlong jint op

◆ to_string() [3/3]

std::string std::to_string ( const Beatmup::NNets::Size::Padding padding)

Definition at line 714 of file storage.cpp.

714  {
715  switch (padding) {
716  case Size::Padding::SAME: return "same";
717  case Size::Padding::VALID: return "valid";
718  }
719  Insanity::insanity("Invalid padding");
720  return "";
721 }