Révision 293

approxBasisSollya/approxbaso.c (revision 293)
10 10

  
11 11
/* Includes according to the "general to particular" rule. */
12 12
/* includes of system headers */
13
#include <stdio.h>
13 14

  
14 15
/* includes of project headers */
16
#include <pobyso.h>
15 17

  
16 18
/* includes of local headers */
19
#include <approxbaso.h>
20
#include <read-lines-from-file.h>
17 21

  
18 22
/* Types, constants and macros definitions */
19 23

  
......
21 25

  
22 26
/* Functions */
23 27

  
24
int main(int argc, char** argv)
28
/** @see approxbaso.h#read_basis_from_handle */
29
struct ApproxBasisSollya*
30
abs_read_basis_from_handle(FILE* fileHandle)
25 31
{
26
  return 0;
32
  rlff_readLines_t* linesRead = NULL;
33
  return NULL;
27 34
}
approxBasisSollya/test/Makefile (revision 293)
1
CC           = gcc
2
CFLAGS       = -Wall -g  
3
LDLIB        = #-Wl,--verbose
4

  
5
OBJS         = 
6
INCS         = 
7
SOURCES      = $(INCS)
8

  
9
TEST_DRIVER  = # CUnit test driver binary program
10

  
11
ALL_TARGETS = 
12

  
13
SCRATCH_PRG := $(patsubst %.c,%,$(wildcard *.c))
14
SCRATCH_ALL := $(SCRATCH_PRG)
15

  
16
LAST_ARCH_FILE = lastArch.txt
17

  
18
ARCH := $(shell uname -m)
19

  
20
DUMMY := $(shell touch $(LAST_ARCH_FILE))
21

  
22
LAST_ARCH := $(shell cat $(LAST_ARCH_FILE))
23

  
24
ifneq ($(LAST_ARCH), $(ARCH))
25
  DUMMY := $(shell echo $(ARCH) > $(LAST_ARCH_FILE))
26
  DUMMY := $(shell $(MAKE) clean) 
27
endif
28

  
29
ifeq (x86_64, $(ARCH))
30
  CFLAGS := -m64 $(CFLAGS)
31
  # LDLIB :=
32
endif
33

  
34
ifeq (ppc64, $(ARCH))
35
  CFLAGS := -m64 $(CFLAGS)
36
  # LDLIB :=
37
endif
38

  
39
ifeq (i686, $(ARCH))
40
  # CFLAGS := $(CFLAGS)
41
  # LDLIB :=
42
endif
43

  
44
# -------------------------------------------------------------------------
45

  
46
default: all
47
# Remove all implicit (suffix) rules. No need to remove pattern rules.
48
# Just redefine them.
49
.SUFFIXES:
50
# Keep the OBJS we want to link with user code.
51
.PRECIOUS: $(OBJS)
52

  
53
all: $(ALL_TARGETS)
54
test: $(TEST_DRIVER)
55

  
56
% : %.o $(OBJS)
57
	$(CC) $(CFLAGS) -o $@ $< $(OBJS) $(LDLIB)
58

  
59
%.o : %.c $(INCS)
60
	$(CC) $(CFLAGS) -c -o $@ $<
61

  
62
$(TEST_DRIVER) : 
63
	make -C test
64
	cp test/$(TEST_DRIVER) .
65
# -------------------------------------------------------------------------
66

  
67
.PHONY: clean scratch
68

  
69
clean:
70
	@rm -f $(ALL_TARGETS) $(TEST_DRIVER)
71
	@rm -f *.o a.out $(OBJS)
72
	@rm -f *~ *% #*#
73

  
74

  
0 75

  
approxBasisSollya/test/lastArch.txt (revision 293)
1
x86_64
approxBasisSollya/approxbaso.h (revision 293)
12 12

  
13 13
#ifndef APPROX_BASIS_SOLLYA_h
14 14
#define APPROX_BASIS_SOLLYA_h
15
  
15

  
16
struct ApproxBasisSollya
17
{
18
  unsigned int elementsNumber;
19
  pobyso_func_exp_t * basisElements;
20
};
21

  
22
/**
23
 * Read a basis from a file handle.
24
 * @param  fileHandle;
25
 * @return a pointer on a basis or NULL if something goes wrong.
26
 */
27
struct ApproxBasisSollya*
28
abs_read_basis_from_handle(FILE* fileHandle);
29

  
16 30
#endif
17 31
  
approxBasisSollya/notes.html (revision 293)
3 3
  <head>
4 4
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
5 5
    <style type="text/css">
6
/* Mise ? jour 2015-04-25 */
6
/* Mise  jour 2015-04-25 */
7 7
/* La police proportionnelle de base est une Helvetica de 10 */
8 8
/* La police fixe de base est une Courrier de 10 */
9 9
/** Corps */
......
63 63
                font-family : helvetica , arial , sans-serif;
64 64
                margin-top : 30pt;
65 65
                text-indent : 0pt}
66
/* ?l?ments "en ligne" */
66
/* lments "en ligne" */
67 67
abbr           {font-family : helvetica, arial, sans-serif;
68 68
                font-style : normal;
69 69
                font-weight : bold}
70
/* Identique ? <abbr> */
70
/* Identique  <abbr> */
71 71
acronym        {font-family : helvetica, arial, sans-serif;
72 72
                font-style : normal;
73 73
                font-weight : bold}
......
82 82
cite           {font-family : helvetica, arial, sans-serif;
83 83
                font-style : italic;
84 84
                font-weight : normal}
85
/* ? utiliser dans une division de code pour les marges et dans un ?l?ment 
86
   pre pour pr?server l'indentation) : div.code->pre->code. */
85
/*  utiliser dans une division de code pour les marges et dans un lment 
86
   pre pour prserver l'indentation) : div.code->pre->code. */
87 87
code           {font-family : courier, monospace;
88 88
                font-style : normal;
89 89
                font-weight : normal}
......
100 100
                font-style : italic;
101 101
                font-weight : normal}
102 102
pre            {}
103
/* ? travailler pour ?viter les guillemets anglo-saxons. */
103
/*  travailler pour viter les guillemets anglo-saxons. */
104 104
q              {}
105
/* On introduit un ?l?ment div.samp pour ajouter le retrait */
105
/* On introduit un lment div.samp pour ajouter le retrait */
106 106
samp           {font-family : courier, monospace;
107 107
                font-style : normal;
108 108
                font-weight : normal}
......
112 112
var            {font-family : courier, monospace;
113 113
                font-style : italic;
114 114
                font-weight: normal}
115
/* Span sp?cialis?s. */
116
/* Mot ou expression ?trang?re */
115
/* Span spcialiss. */
116
/* Mot ou expression trangre */
117 117
span.foreign {font-style : italic}
118
/* ?l?ments de langage :
118
/* lments de langage :
119 119
   - nom de commande ou de programme ;
120 120
   - nom de variable, de fonction, de classe, de module ;
121
   - propri?t?, param?tre, valeur, champ, objet, nom de balise ;
122
   - nom de cl? de registre ;
123
   - mot-cl? d'un langage ;
121
   - proprit, paramtre, valeur, champ, objet, nom de balise ;
122
   - nom de cl de registre ;
123
   - mot-cl d'un langage ;
124 124
   . */
125 125
span.langElem {font-family : helvetica, arial, sans-serif;
126 126
               font-style : normal;
127 127
               font-weight : bold}
128
/* R?pertoires, fichiers, extensions de fichier (e. g. .jpeg) */
128
/* Rpertoires, fichiers, extensions de fichier (e. g. .jpeg) */
129 129
span.pathfile  {font-family: courier, monospace;
130 130
                font-style : italic;
131 131
                font-weight: normal}
132 132
span.urlAddress{font-family : courier monospace;
133 133
                font-style : italic;
134 134
                font-weight : bold }
135
/* ?l?ments "bloc" */
135
/* lments "bloc" */
136 136
h1             {text-align : center ; 
137 137
                font-size : 20pt ; 
138 138
                font-weight : bold ; 
......
194 194
                text-ident : 0pt }
195 195
table          {margin-left: 20pt;
196 196
                margin-right: 20pt}
197
/* Deux options pour les cellules titres : soit un ?l?ment en-t?te (avec
198
   ligne et cellules), soit des ?l?ments cellule en-t?te. */
197
/* Deux options pour les cellules titres : soit un lment en-tte (avec
198
   ligne et cellules), soit des lments cellule en-tte. */
199 199
thead tr td    {text-align: center;
200 200
                text-indent : 0pt;
201 201
                font-size: 10pt;
......
221 221
td.middle      {font-size : 10pt ; 
222 222
                font-family : helvetica, arial, sans-serif;
223 223
                vertical-align: middle}
224
/* Pour ?viter les marges dans les cellules de tableau */
224
/* Pour viter les marges dans les cellules de tableau */
225 225
td p           {font-size : 10pt; 
226 226
                font-family : helvetica, arial, sans-serif;
227 227
                margin-left : 0pt;
228 228
                margin-right : 0pt;
229 229
                text-indent : 0}
230
/* Introduction ? une (x*sous) section */
230
/* Introduction  une (x*sous) section */
231 231
p.heading      {font-size : 10pt; 
232 232
                font-family : helvetica, arial, sans-serif;
233 233
                font-weight : bold;
......
246 246
/* Illustration */
247 247
div.illustration {text-align : center;
248 248
                  margin : 15pt}
249
/* Rien de bien d?fini encore pour ces mod?les (id?e :
250
   images avec texte ? gauche ou ? droite) */
249
/* Rien de bien dfini encore pour ces modles (ide :
250
   images avec texte  gauche ou  droite) */
251 251
img.right {}
252 252
img.left  {}
253 253
p.illustrationCaption {font-family : Helvetica, arial, sans-serif ;
......
265 265
hr.twentypc    {margin-left: 40%;
266 266
                margin-right: 40%;}
267 267
/* Notes */
268
/* L'appel de note est r?alis? par un ?l?ment <a> de classe callNote */
268
/* L'appel de note est ralis par un lment <a> de classe callNote */
269 269
a.callNote     {}
270
/* Le retour de note est r?alis? par un ?l?ment <a> de classe retFromNote */
270
/* Le retour de note est ralis par un lment <a> de classe retFromNote */
271 271
a.retFromNote  {}
272 272
/* Liste des notes proprement dite */
273 273
ol.notes       {margin-left: 0%;
274 274
                margin-right: 0%}
275
/* ?lements de navigation */
275
/* lements de navigation */
276 276
table.navTable {border : none ;
277 277
                width : 100%}
278 278
table.navTable td {width : 20% ;
279 279
                border : none ;
280 280
                text-align : center ;
281 281
                vertical-align : middle}
282
/* ?l?ments divers (? trier)*/
283
/* ?l?ments pour la table des mati?res */
282
/* lments divers ( trier)*/
283
/* lments pour la table des matires */
284 284
div.abstract   {font-size : 12pt ;
285 285
                font-style : italic ;
286 286
                font-family : Helvetica, Arial , sans-serif ;
......
308 308
      <li>an array of Sollya function objects that are the actual elements of
309 309
        the list.</li>
310 310
    </ul>
311
    <h2>Evaluation of the basis at&nbsp; some point</h2>
311
    <h2>Evaluation of the basis at&nbsp;some point</h2>
312 312
    <p>For a given point, the evaluation returns a vector of MPFR numbers that
313 313
      are the result of the evaluation of each element of the basis at this
314 314
      point.</p>

Formats disponibles : Unified diff