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

📄 gcd.h

📁 FIR2LIFT is a program to factor a wavelet FIR filter pair into lifting steps.
💻 H
字号:
/*
FILE : GCD.H

Implementation of the Euclidean algorithm for Laurent polynomials.

(C) C. Valens

Created     : 16/09/1999
Last update : 23/09/1999
*/


#ifndef __GCD_H__
#define __GCD_H__


#include "zpoly.h"


/*
 * List stuff
 */
typedef struct __gcd_list {
  zpoly_pair divmod;
  struct __gcd_list *next;
} gcd_list;

/*
 * Create a gcd list.
 */
gcd_list *gcd_create_list(void);

/*
 * Destroy a gcd list.
 */
void gcd_destroy_list(gcd_list *root);

/*
 * Write a gcd list to the output stream.
 */
void gcd_write_list(gcd_list *list);

/*
 * Do the Euclidean algorithm.
 * Returns a list with all possible gcds of poly1 and poly2.
 */
gcd_list *gcd_euclides(zpoly *poly1, zpoly *poly2);


#endif /* __GCD_H__ */

⌨️ 快捷键说明

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