⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 galoisfieldelement.cpp

📁 心电图小波零树压缩演算法的研究
💻 CPP
字号:
#include "GaloisFieldElement.h"namespace galois{   GaloisFieldElement::GaloisFieldElement(GaloisField* _gf, GFSymbol v)   {      if (_gf != NULL)      {         gf         = _gf;         poly_value = v & gf->size();      }      else        poly_value = v;   }   GaloisFieldElement::GaloisFieldElement(const GaloisFieldElement& gfe)   {      gf          = gfe.gf;      poly_value  = gfe.poly_value;   }   std::ostream& operator << (std::ostream& os, const GaloisFieldElement& gfe)   {      os << gfe.poly_value;      return os;   }   GaloisFieldElement operator+(const GaloisFieldElement& a, const GaloisFieldElement& b)   {      GaloisFieldElement result  = a;      result += b;      return result;   }   GaloisFieldElement operator-(const GaloisFieldElement& a, const GaloisFieldElement& b)   {      GaloisFieldElement result  = a;      result -= b;      return result;   }   GaloisFieldElement operator*(const GaloisFieldElement& a, const GaloisFieldElement& b)   {      GaloisFieldElement result  = a;      result *= b;      return result;   }   GaloisFieldElement operator*(const GaloisFieldElement& a, const GFSymbol& b)   {      GaloisFieldElement result  = a;      result *= b;      return result;   }   GaloisFieldElement operator*(const GFSymbol& a, const GaloisFieldElement& b)   {      GaloisFieldElement result  = b;      result *= a;      return result;   }   GaloisFieldElement operator/(const GaloisFieldElement& a, const GaloisFieldElement& b)   {      GaloisFieldElement result  = a;      result /= b;      return result;   }   GaloisFieldElement operator^(const GaloisFieldElement& a, const int& b)   {      GaloisFieldElement result  = a;      result ^= b;      return result;   }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -