berlmass2.cc.txt
来自「压缩文件中是Error Correction Coding - Mathemat」· 文本 代码 · 共 26 行
TXT
26 行
// Program: berlmass2.cc --- implement the Berlekamp-Massey algorithm// using arrays, not polynomials// Todd K. Moon#include "polynomialT.h"#define MAX2(a,b) (a> b? a:b)template <class T> voidberlmass2(const T* s, int n, T* c, int& L)// s = input coefficients s[0],s[1],... s[n-1]// c = connection polynomial coefficients. Must be allocated prior to calling// L = degree of connection polynomial{ // fill in the blanks ..}#undef MAX2/*Local Variables:compile-command: "g++ -g berlmass.cc"End:*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?