[BACK]Return to oxserv.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_ntl

File: [local] / OpenXM / src / ox_ntl / oxserv.h (download)

Revision 1.1, Mon Nov 3 03:11:21 2003 UTC (20 years, 6 months ago) by iwane
Branch: MAIN

added ox_ntl

install `NTL'
   % make install-ntl

install ox_ntl
   % make install

EX.
  [1028] load("ntl.rr")$
  [1040] F=ntl.ex_data(4);
  x^16-136*x^14+6476*x^12-141912*x^10+1513334*x^8-7453176*x^6+13950764*x^4-5596840*x^2+46225
  [1041] F=F*subst(F,x,x+1)$
  [1042] ntl.factor(PID,F);
  [[1,1],[x^16+16*x^15-16*x^14-1344*x^13-4080*x^12+32576*x^11+157376*x^10-255232*x^9-2062624*x^8-249088*x^7+10702080*x^6+9126912*x^5-18643712*x^4-24167424*x^3+2712576*x^2+10653696*x+2324736,1],[x^16-136*x^14+6476*x^12-141912*x^10+1513334*x^8-7453176*x^6+13950764*x^4-5596840*x^2+46225,1]]

/* $OpenXM: OpenXM/src/ox_ntl/oxserv.h,v 1.1 2003/11/03 03:11:21 iwane Exp $ */

#ifndef __OX_SERVE_H__
#define __OX_SERVE_H__

#include "ox_toolkit.h"

#define OXSERV_FAILURE	(-1)
#define OXSERV_SUCCESS  ( 0)

#ifdef __cplusplus
extern "C" {
#endif

/* c.f. mathcap_init in ox_toolkit */
int	 oxserv_init(OXFILE *, int, char *, char *, int *, int *);
void	 oxserv_dest(void);

int	 oxserv_receive(OXFILE *);

int	 oxserv_set(int mode, void *, void *);

#define OXSERV_SET_EXECUTE_STRING_PARSER	(0x01)
#define OXSERV_SET_EXECUTE_FUNCTION		(0x02)
#define OXSERV_SET_CONVERT_CMO                  (0x03)


#ifdef __cplusplus
}
#endif

#endif /* !__OX_SERVE_H__ */