narray 0.5.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/src/ChangeLog +614 -0
  2. data/src/MANIFEST +82 -0
  3. data/src/README.en +54 -0
  4. data/src/README.ja +63 -0
  5. data/src/SPEC.en +300 -0
  6. data/src/SPEC.ja +284 -0
  7. data/src/depend +14 -0
  8. data/src/extconf.rb +111 -0
  9. data/src/lib/narray_ext.rb +211 -0
  10. data/src/lib/nmatrix.rb +244 -0
  11. data/src/mkmath.rb +780 -0
  12. data/src/mknafunc.rb +190 -0
  13. data/src/mkop.rb +638 -0
  14. data/src/na_array.c +644 -0
  15. data/src/na_func.c +1624 -0
  16. data/src/na_index.c +988 -0
  17. data/src/na_linalg.c +616 -0
  18. data/src/na_random.c +409 -0
  19. data/src/narray.c +1308 -0
  20. data/src/narray.def +29 -0
  21. data/src/narray.h +170 -0
  22. data/src/narray_local.h +210 -0
  23. data/src/nimage/README.en +38 -0
  24. data/src/nimage/demo/fits.rb +97 -0
  25. data/src/nimage/demo/fits_convol.rb +28 -0
  26. data/src/nimage/demo/fits_fftdemo.rb +27 -0
  27. data/src/nimage/demo/fitsdemo1.rb +13 -0
  28. data/src/nimage/demo/fitsdemo2.rb +30 -0
  29. data/src/nimage/demo/fitsdemo3.rb +26 -0
  30. data/src/nimage/demo/fitsmorph.rb +39 -0
  31. data/src/nimage/demo/life_na.rb +57 -0
  32. data/src/nimage/demo/mandel.rb +41 -0
  33. data/src/nimage/extconf.rb +12 -0
  34. data/src/nimage/lib/nimage.rb +51 -0
  35. data/src/nimage/nimage.c +328 -0
  36. data/src/speed/add.py +12 -0
  37. data/src/speed/add.rb +8 -0
  38. data/src/speed/add_int.py +12 -0
  39. data/src/speed/add_int.rb +9 -0
  40. data/src/speed/lu.m +14 -0
  41. data/src/speed/lu.rb +22 -0
  42. data/src/speed/mat.m +23 -0
  43. data/src/speed/mat.rb +28 -0
  44. data/src/speed/mul.py +12 -0
  45. data/src/speed/mul.rb +9 -0
  46. data/src/speed/mul2.py +15 -0
  47. data/src/speed/mul2.rb +13 -0
  48. data/src/speed/mul_comp.py +12 -0
  49. data/src/speed/mul_comp.rb +9 -0
  50. data/src/speed/mul_int.py +12 -0
  51. data/src/speed/mul_int.rb +9 -0
  52. data/src/speed/mybench.py +15 -0
  53. data/src/speed/mybench.rb +31 -0
  54. data/src/speed/solve.m +18 -0
  55. data/src/speed/solve.py +16 -0
  56. data/src/speed/solve.rb +21 -0
  57. data/src/test/statistics.rb +22 -0
  58. data/src/test/testarray.rb +20 -0
  59. data/src/test/testbit.rb +27 -0
  60. data/src/test/testcast.rb +14 -0
  61. data/src/test/testcomplex.rb +35 -0
  62. data/src/test/testfftw.rb +16 -0
  63. data/src/test/testindex.rb +11 -0
  64. data/src/test/testindexary.rb +26 -0
  65. data/src/test/testindexset.rb +55 -0
  66. data/src/test/testmask.rb +40 -0
  67. data/src/test/testmath.rb +48 -0
  68. data/src/test/testmath2.rb +46 -0
  69. data/src/test/testmatrix.rb +13 -0
  70. data/src/test/testmatrix2.rb +33 -0
  71. data/src/test/testmatrix3.rb +19 -0
  72. data/src/test/testminmax.rb +46 -0
  73. data/src/test/testobject.rb +29 -0
  74. data/src/test/testpow.rb +19 -0
  75. data/src/test/testrandom.rb +23 -0
  76. data/src/test/testround.rb +11 -0
  77. data/src/test/testsort.rb +37 -0
  78. data/src/test/teststr.rb +13 -0
  79. data/src/test/testtrans.rb +18 -0
  80. data/src/test/testwhere.rb +27 -0
  81. metadata +127 -0
data/src/ChangeLog ADDED
@@ -0,0 +1,614 @@
1
+ 2008-01-28 Masahiro TANAKA <masa16.tanaka at gmail.com>
2
+
3
+ * na_array.c (na_range_to_sequence, na_do_mdai):
4
+ * na_index.c (na_index_range):
5
+ change in internal structure of Ruby 1.9 Range object.
6
+ Thanks to Hargobind Khalsa.
7
+
8
+ * ver 0.5.9p4
9
+
10
+ 2007-12-27 Masahiro TANAKA <masa16.tanaka at gmail.com>
11
+
12
+ * narray_local.h, narray.c, na_array.c:
13
+ use RSTRING_PTR, RSTRING_LEN for Ruby 1.9.0.
14
+
15
+ * ver 0.5.9p3
16
+
17
+ 2007-12-11 Masahiro TANAKA <masah16.tanaka at gmail.com>
18
+
19
+ * mkop.rb:
20
+ omit precision in format "%g" for InspS/D/X/C.
21
+ Thanks to Shigenori OTSUKA at kyoto-u.
22
+
23
+ * ver 0.5.9p2
24
+
25
+ 2007-10-09 David MacMahon <davidm at astro.berkeley...>
26
+
27
+ * narray.h, mkop.rb:
28
+ bug in NArray::NARRAY_VERSION and InspX.
29
+
30
+ 2006-08-09 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
31
+
32
+ * na_fftw.c, extconf.rb, narray.c (Init_narray):
33
+ Remove FFTW2 support; it is a separete module.
34
+
35
+ * ver 0.5.9
36
+
37
+ 2006-08-08 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
38
+
39
+ * na_index.c (na_index_test, na_aset_single_dim):
40
+ `nv[1] = nu' should work if nv and nu are NVector.
41
+ `NA_IsNArray(nu)' is used for checking NArray.
42
+ Thanks to sun@titech.
43
+
44
+ 2006-08-08 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
45
+
46
+ * narray_local.h, mknafunc.rb (mksortfuncs):
47
+ Argument type of comparison function passed to
48
+ qsort should be `const void *'.
49
+ Thank Daniel Berger for report.
50
+
51
+ 2006-07-30 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
52
+
53
+ * narray.h, narray.c:
54
+ Do not declare external variables of
55
+ cNArray, na_sizeof in narray.c.
56
+ Thank Daniel Berger for report.
57
+
58
+ 2006-03-22 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
59
+
60
+ * lib/narray_ext.rb (mean, stddev):
61
+ Fix to work with NVector/NMatrix classes.
62
+ Thank Stephen Hill for report.
63
+
64
+ 2005-09-13 Charlie Mills <Charlie.Mills@m...>
65
+
66
+ * mkop.rb, na_func.c, narray_local.h:
67
+ Make NArray#eq more robust.
68
+
69
+ 2005-08-05 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
70
+
71
+ * mkmath.rb (na_math_func):
72
+ Bug: In NMath functions, Float class arguments have been
73
+ converted to SFLOAT type. Thank Yuhei Kuratomi for his report.
74
+ Spec Change: Calculate and return as DFLOAT type
75
+ if an integer argument is given to NMath functions.
76
+
77
+ * na_func.c (na_math_atan2):
78
+ NMath.atan2() accepts other objects than NArray class.
79
+ Treat as DFLOAT for integer arguments.
80
+
81
+ * ver 0.5.8
82
+
83
+ 2005-01-25 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
84
+
85
+ * na_array.c (na_ary_to_nary_w_type):
86
+ Bug: "type" is not initialized when an array is empty.
87
+
88
+ 2005-01-07 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
89
+
90
+ * narray.h: #define NARRAY_VERSION NARRAY_VERSION_CODE
91
+
92
+ * narray.c: new constant: NArray::NARRAY_VERSION
93
+
94
+ 2004-11-10 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
95
+
96
+ * na_random.c:
97
+ Fix infinite loop due to gcc bug?;
98
+ "int32_t x; x>>=32;" unvaried although 0 expected.
99
+ Thanks to David G. Andersen.
100
+
101
+ * lib/narray_ext.rb (randomn):
102
+ Raise error if NArray type is other than float.
103
+
104
+ * ver 0.5.7p4
105
+
106
+ 2004-09-22 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
107
+
108
+ * nimage/nimage.c:
109
+ Argument type of rb_str2cstr is changed.
110
+ Use RSTRING()->ptr & RSTRING()->len.
111
+ Thanks to Ara Howard.
112
+
113
+ 2004-06-28 KOSHIRO Tsuyoshi <koshiro rish.kyoto-u.ac.jp>
114
+
115
+ * extconf.rb: generate libnarray.a for Cygwin + Ruby 1.8.1.
116
+
117
+ * ver 0.5.7p3
118
+
119
+ 2004-02-19 Masahiro TANAKA <masahiro.tanaka at nao.ac.jp>
120
+
121
+ * na_array.c (na_free_mdai):
122
+ memory free bug: xfree(mdai->type); added.
123
+
124
+ * ver 0.5.7p2
125
+
126
+ 2004-01-04 Masahiro TANAKA <masa@ir.isas.ac.jp>
127
+
128
+ * extconf.rb: narray.h, narray_conf.h was not installed on ruby-1.8.x
129
+
130
+ * narray.c: NArray-GC is disabled.
131
+
132
+ * nimage/nimage.c, test/testwhere.rb, speed/[mybench.rb,mul_rep.rb]:
133
+ fix ruby-1.8.x incompatibility
134
+
135
+ * ver 0.5.7p1
136
+
137
+ 2003-03-04 Masahiro TANAKA <masa@ir.isas.ac.jp>
138
+
139
+ * narray.c (na_alloc_struct):
140
+ NArray-specific GC is enabled for ruby-1.8.0.
141
+
142
+ * ver 0.5.7
143
+
144
+ 2003-03-03 Masahiro TANAKA <masa@ir.isas.ac.jp>
145
+
146
+ * na_random.c: created.
147
+
148
+ * lib/narray_ext.rb (rank_total):
149
+ Array#indices is obsolete. use Array#select.
150
+ Default `to_a' will be obsolete.
151
+
152
+ * lib/nmatrix.rb: Object#type is obsolete. use Object#class.
153
+
154
+ 2003-03-01 Masahiro TANAKA <masa@ir.isas.ac.jp>
155
+
156
+ * narray_ext.rb (swap_byte,hton,htov): removed.
157
+ * mkop.rb, mknafunc.rb, na_func.c, narray_local.h:
158
+ add C-version of swap_byte, hton, htov.
159
+
160
+ 2003-02-28 Masahiro TANAKA <masa@ir.isas.ac.jp>
161
+
162
+ * extconf.rb: do not add "--output-lib libnarray.a"
163
+ to link options if Cygwin with Ruby 1.8.0.
164
+ Thank MoonWolf for the note.
165
+
166
+ 2002-11-25 Masahiro TANAKA <masa@ir.isas.ac.jp>
167
+ * na_func.c (na_cumsum_bang,na_cumsum_): created.
168
+ Thank Jon Davidson for the proposal.
169
+
170
+ 2002-09-15 Masahiro TANAKA <masa@ir.isas.ac.jp>
171
+
172
+ * na_array.c (na_do_mdai):
173
+ Index is not `i' but `j' in recursive array check.
174
+ Thank Ara Howard for the bug report.
175
+
176
+ 2002-05-30 WATANABE Hirofumi <eban at os.rim.or.jp>
177
+
178
+ * extconf.rb: to build in another directory than source tree.
179
+ * depend: ditto.
180
+
181
+ 2002-05-18 Masahiro TANAKA <masa@ir.isas.ac.jp>
182
+
183
+ * lib/narray_ext.rb (NArray#==): return false unless other is NArray.
184
+
185
+ * narray.h, narray_local.h, narray.c:
186
+ move na_sizeof variable from narray_local.h to narray.h.
187
+ const keyword added. Thanks to Horinouchi-san.
188
+ * narray.c (na_get_typecode): change to public method.
189
+ * narray.c (na_sizeof,na_typestring): const keyword added.
190
+ * mkop.rb : ditto.
191
+ * na_func.c (na_unary_func): ditto.
192
+ * mkmath.rb : dismiss sincos()
193
+
194
+ 2002-04-11 Masahiro TANAKA <masa@ir.isas.ac.jp>
195
+
196
+ * mkmath.rb (asinh,acosh,atanh): better precision.
197
+
198
+ 2002-04-10 Masahiro TANAKA <masa@ir.isas.ac.jp>
199
+
200
+ * mkop.rb (SetFucs): should use INT2NUM to extract 32-bit int.
201
+ Thanks to Kozuka-san.
202
+
203
+ 2002-03-26 Masahiro TANAKA <masa@ir.isas.ac.jp>
204
+
205
+ * narray.def: remove unused entry. Thanks to Watanabe-san.
206
+
207
+ 2002-03-24 Masahiro TANAKA <masa@ir.isas.ac.jp>
208
+
209
+ * na_array.c:
210
+ New multi-dimentional array investigation is introduced.
211
+ Scan array only once and check recursive array.
212
+
213
+ * narray.h, narray_local.h:
214
+ Local definisions in narray.h are moved into narray_local.h.
215
+
216
+ * ver 0.5.6
217
+
218
+ 2002-03-17 Masahiro TANAKA <masa@ir.isas.ac.jp>
219
+
220
+ * nmatrix.rb (NMatrix#*): accept Array as an argument.
221
+
222
+ 2002-02-26 Masahiro TANAKA <masa@ir.isas.ac.jp>
223
+
224
+ * na_array.c (na_copy_ary_to_nary): accept Range as a sequence.
225
+
226
+ 2002-02-06 Masahiro TANAKA <masa@ir.isas.ac.jp>
227
+
228
+ * narray.c, na_func.c, na_index.c, na_linalg.c, na_fftw.c, mkmath.rb:
229
+ add volatile keyword instead of na_touch_object() function.
230
+
231
+ 2002-01-25 Masahiro TANAKA <masa@ir.isas.ac.jp>
232
+
233
+ * na_array.c (na_to_array0): Bug: GC fails if ary->len is set
234
+ in advance. Thanks to Bil Kleb.
235
+
236
+ 2001-12-30 Masahiro Tanaka <masa@ir.isas.ac.jp>
237
+
238
+ * extconf.rb: Modify install_rb to install narray.h, narray_config.h.
239
+ * na_index.c (na_aref,na_aset):
240
+ Mask support. Thanks to T.Horinoichi.
241
+ * mkop.rb: Mask functions added.
242
+ * narray.h: Macros added.
243
+ * narray.def: created.
244
+
245
+ * ver 0.5.5
246
+
247
+ 2001-11-20 Takeshi Horinouchi <horinout at kurasc.kyoto-u.ac.jp>
248
+
249
+ * narray.c (na_get_typecode): Bug: "!" needed at strncmp.
250
+ * Mask support in [], []=.
251
+ na_aref/aset_mask(), na_count_true/false() added.
252
+ Methods mask, count_true, count_false added.
253
+ * test/testmask.rb: created.
254
+
255
+ 2001-07-01 Masahiro Tanaka <masa@ir.isas.ac.jp>
256
+
257
+ * narray.h: introduce na_index_t.
258
+ * na_func.c (na_init_slice,na_loop_index_ref,na_loop_general):
259
+ change to na_index_t.
260
+ * na_index.c: modify EXCL(range) to use excule_end?.
261
+ * na_index.c (na_aref_single_dim): remain array if sl->step!=0.
262
+ i.e., a[0..0] results in 1-element array.
263
+ * na_func.c (Init_na_funcs): alias image, arg, conjugate.
264
+
265
+ * ver 0.5.4
266
+
267
+ 2001-06-30 Masahiro Tanaka <masa@ir.isas.ac.jp>
268
+
269
+ * extconf.rb: check sys/typedef.h, u_int8_t, int16_t, int32_t.
270
+ generating narray_config.h.
271
+ * narray.h: conditional typedef. define NARRAY_H.
272
+ * na_func.c (Init_na_funcs): change == to eq. add gt,ge,lt,le.
273
+ * lib/narray_ext.rb: new entry: ==, all?, any?, none?.
274
+
275
+ * mkop.rb: new entry: conditional XOR.
276
+ * na_func.c (na_cond_xor): ditto.
277
+ * narray.h: ditto.
278
+
279
+ 2001-06-05 Masahiro Tanaka <masa@ir.isas.ac.jp>
280
+
281
+ * na_index.c (na_aref_body): NVector#[] should return NVector
282
+ class even when single argument of range/array.
283
+ Thanks to Daishi Harada.
284
+ * narray.h (na_class_dim): delete redundant ";"
285
+ * extconf.rb: delete config_dir("narray"), add dir_config("fftw").
286
+
287
+ 2001-06-04 Masahiro Tanaka <masa@ir.isas.ac.jp>
288
+
289
+ * na_index.c (na_aref_multi_dim_single_elm):
290
+ do not change class even if a[0..0,0..0] for NMatrix.
291
+ Thanks to Daishi Harada.
292
+ * narray.c (na_inspect): rb_str_cat(str,": \n",4);
293
+ not 4, but 3. Thanks to Matju.
294
+
295
+ 2001-05-11 Masahiro Tanaka <masa@ir.isas.ac.jp>
296
+
297
+ * nimage/extconf.rb: add dir_config("x11"). rm have_header.
298
+
299
+ 2001-04-10 Masahiro Tanaka <masa@ir.isas.ac.jp>
300
+
301
+ * narray.h: exclude typedef int32_t,int16_t,u_int8_t for Mac OS X.
302
+ Thanks to T.Yamamoto.
303
+ * mkmath.rb (atan,atanh): avoid non-constant initializer for complex.
304
+
305
+ 2001-04-03 Masahiro Tanaka <masa@ir.isas.ac.jp>
306
+
307
+ * na_array.c (na_search_rank): ignore empty array.
308
+ * na_array.c (na_copy_ary_to_nary): ignore empty array and nil.
309
+ * ver 0.5.3
310
+
311
+ 2001-04-02 Masahiro Tanaka <masa@ir.isas.ac.jp>
312
+
313
+ * narray.c (na_to_s): bug: na_sizeof[] is necessary.
314
+ Thank matju for report.
315
+
316
+ 2001-01-29 Masahiro Tanaka <masa@ir.isas.ac.jp>
317
+
318
+ * mkop.rb (Angl): added.
319
+ * na_func.c (na_angle): added. Thank M.Tagusai for proposal.
320
+ * ver 0.5.2
321
+
322
+ 2001-01-21 Masahiro Tanaka <masa@ir.isas.ac.jp>
323
+
324
+ * mkop.rb, mkmath.rb: loop-end condition changed from n>0 to n.
325
+ 5% speed up for multiplication of double.
326
+
327
+ 2001-01-20 Masahiro Tanaka <masa@ir.isas.ac.jp>
328
+
329
+ * mkop.rb (DivU,DivB): raise error if divided by 0.
330
+
331
+ 2001-01-19 Masahiro Tanaka <masa@ir.isas.ac.jp>
332
+
333
+ * mkop.rb (round): bug: has omitted the case of 0.
334
+
335
+ 2001-01-18 Masahiro Tanaka <masa@ir.isas.ac.jp>
336
+
337
+ * narray.c (na_is_empty): added.
338
+ * na_func.c (na_exec_unary,na_exec_binary,na_make_object_extend):
339
+ enable operation of empty array.
340
+
341
+ 2001-01-17 Masahiro Tanaka <masa@ir.isas.ac.jp>
342
+
343
+ * na_index.c (na_aset_array_index): allow a[[]]=1.
344
+
345
+ 2001-01-14 Masahiro Tanaka <masa@ir.isas.ac.jp>
346
+
347
+ * na_index.c (na_ary_to_index): bug: should raise error if < -n.
348
+
349
+ 2001-01-13 Masahiro Tanaka <masa@ir.isas.ac.jp>
350
+
351
+ * na_func.c (na_unary_func): should call func of self-type.
352
+ Thanks to Matju.
353
+
354
+ 2001-01-06 Masahiro Tanaka <masa@ir.isas.ac.jp>
355
+
356
+ * narray.c (na_s_new_int): check argc==0. Thanks to Matju.
357
+
358
+ 2000-12-10 Masahiro Tanaka <masa@ir.isas.ac.jp>
359
+
360
+ * ver 0.5.1
361
+
362
+ 2000-12-11 Masahiro Tanaka <masa@ir.isas.ac.jp>
363
+
364
+ * narray.c (na_alloc_struct): cope with empty array.
365
+ * na_func.c (na_exec_unary,na_shape_max_2obj): empty check.
366
+
367
+ 2000-12-10 Masahiro Tanaka <masa@ir.isas.ac.jp>
368
+
369
+ * narray.c (na_random): disable initalizing seed.
370
+ * na_touch_object created.
371
+ * free -> xfree. Thanks to Naoki Matsumoto.
372
+
373
+ 2000-12-07 Masahiro Tanaka <masa@ir.isas.ac.jp>
374
+
375
+ * ver 0.5.0.p2
376
+
377
+ * fix problems for VC++. Thanks to Naoki Matsumoto.
378
+ * mkmath.rb: create asinh, acosh, atanh missing in VC++.
379
+ * mkop.rb (TpErrI): return int after rb_raise().
380
+ * narray.h: max() -> NA_MAX(), swap() -> NA_SWAP().
381
+ * narray.c (na_get_typecode): return int after rb_raise().
382
+ * na_func.c (na_sort,na_sort_index): fix function decl. for qsort.
383
+
384
+ 2000-12-01 Masahiro Tanaka <masa@ir.isas.ac.jp>
385
+
386
+ * ver 0.5.0.p1
387
+
388
+ * lib/nmatrix.rb (NVector#+,-): should change Class to NArray
389
+ before calling super. Thanks to Kenya OGATA.
390
+
391
+ * na_index.c (EXCL): follow the change of EXCL() in 1.6.2.
392
+ Thanks to Robert Feldt.
393
+
394
+ 2000-11-25 Masahiro Tanaka <masa@ir.isas.ac.jp>
395
+
396
+ * ver 0.5.0
397
+ * No Log between 0.5.0 and 0.3.5.p1. Sorry.
398
+
399
+ 2000-10-14 Masahiro Tanaka <masa>
400
+
401
+ * narray.c (na_wrap_struct_class): na_mark_ref, na_mark_obj.
402
+
403
+ 2000-10-05 Masahiro Tanaka <masa>
404
+
405
+ * nmatrix.rb: created.
406
+
407
+ * too many changes are applied to source codes. ^^;
408
+
409
+ 2000-10-03 Masahiro Tanaka <masa>
410
+
411
+ * na_index.c (na_shrink_rank): created for general purposes.
412
+
413
+ * narray.c (na_reshape): use new na_shrink rank.
414
+ recognize "true" argument.
415
+
416
+ * lib/narray_ext.rb: use new feature of reshape
417
+
418
+ 2000-10-02 Masahiro Tanaka <masa>
419
+
420
+ * na_index.c (na_make_slice_aset_fill): created.
421
+
422
+ * lib/narray_ext.rb (flatten): no more use dup.
423
+
424
+ * na_func.c (na_s_mul_sum): created.
425
+
426
+ * narray.c (na_wrap_struct): wrap with referring class.
427
+ (na_ref_alloc_struct): created.
428
+ (na_reshape_ref,na_newrank_ref): created.
429
+ (na_inspect): print class name.
430
+
431
+ * narray.h: add "VALUE obj" elmt to "struct NARRAY".
432
+
433
+ 2000-09-29 Masahiro Tanaka <masa>
434
+
435
+ * mkopfunc.rb (mulacmfunc): created.
436
+
437
+ * mkfuncs.rb: rewrite with %w().
438
+ (mktrifunc): renamed from mkcmpfunc. accept block.
439
+
440
+ * na_loop.c (na_slice_set_extend): change arguments.
441
+
442
+ * na_func.c (na_mul_acm,na_shape_max_3obj): created.
443
+ (na_exec_trifunc_extend): a1 can be shrinkable.
444
+
445
+ 2000-09-28 Masahiro Tanaka <masa>
446
+
447
+ * lib/narray_ext.rb (is_ineger?,is_complex?):
448
+ -> ineger?, complex?.
449
+
450
+ 2000-09-27 Masahiro Tanaka <masa>
451
+
452
+ * na_index.c (na_index_analysis): add false dimension.
453
+
454
+ * narray.c (na_clone): renamed from ns_dup.
455
+
456
+ 2000-09-04 Masahiro Tanaka <masa>
457
+
458
+ * ver 0.3.5.p1
459
+
460
+ * narray.c, na_array.c, na_func.c, narray.h, mknmath.rb
461
+ remove unused variables and functions. (-Wall check)
462
+ (Thanks to Robert Feldt)
463
+
464
+ * lib/narray_ext.rb (convol): put in module FFTW.
465
+ (Thanks to Robert Feldt)
466
+
467
+ 2000-09-01 Masahiro Tanaka <masa>
468
+
469
+ * ver 0.3.5
470
+
471
+ * narray.c (na_random): remove `seed' argument. add rand().
472
+
473
+ 2000-08-25 Masahiro Tanaka <masa>
474
+
475
+ * lib/narray_ext.rb: create randomn (Box-Muller).
476
+
477
+ 2000-08-23 Masahiro Tanaka <masa>
478
+
479
+ * na_index.c (aref, aset): categolize procedures with arguments.
480
+
481
+ 2000-08-02 Masahiro Tanaka <masa>
482
+
483
+ * lib/narray_ext.rb: create FFTW.convol.
484
+
485
+ 2000-08-01 Masahiro Tanaka <masa>
486
+
487
+ * na_index.c (na_aref_array_index): bug fix: free index memory.
488
+
489
+ 2000-07-28 Masahiro Tanaka <masa>
490
+
491
+ * ver 0.3.4
492
+
493
+ * mkcmpfunc.rb : remove <=> with complex. add ~.
494
+
495
+ * mkopfunc.rb, na_func.c: add &, |, ^.
496
+
497
+ 2000-07-27 Masahiro Tanaka <masa>
498
+
499
+ * mknmath.rb, lib/narray_ext.rb: add covariance.
500
+
501
+ * mkopfunc.rb (data_mod): add imag=.
502
+
503
+ * mksetfunc.rb: add im (ImagMul).
504
+
505
+ * mknmath.rb, lib/narray_ext.rb: add trigonometric functions.
506
+
507
+ 2000-07-26 Masahiro Tanaka <masa>
508
+
509
+ * na_func.c (na_exec_math_func): extract object if argument is
510
+ non-array.
511
+
512
+ * lib/narray_ext.rb: add mean, stddev.
513
+
514
+ 2000-07-21 Masahiro Tanaka <masa>
515
+
516
+ * na_index.c (na_aset): bug fix for empty index, etc.
517
+
518
+ * na_func.c (na_shape_check): raise error if empty array.
519
+ (na_sum_body,na_min,na_min,na_transpose): better arg-parse.
520
+ (na_arg_to_rank,na_accum_set_shape,na_accum_shrink_rank):
521
+ created.
522
+
523
+ 2000-07-20 Masahiro Tanaka <masa>
524
+
525
+ * narray.c (na_str_to_na): more size check.
526
+
527
+ * na_index.c (na_aset): allow if src-ary has smaller dims.
528
+
529
+ * narray.c (na_to_narray): moved from na_array.c
530
+
531
+ * lib/narray_ext.rb: created. swap_byte, hton etc.
532
+
533
+ * narray.c (Init_narray): change type=>typecode.
534
+ add NArray.dfloat, NArray::DFLOAT etc.
535
+ add element_size, to_binary, to_type_as_binary.
536
+
537
+ 2000-07-18 Masahiro Tanaka <masa>
538
+
539
+ * na_loop.c (na_loop_general): created. na_loop_index is obsolete.
540
+
541
+ 2000-07-17 Masahiro Tanaka <masa>
542
+
543
+ * na_func.c (na_sum_body,na_accum): created.
544
+
545
+ * na_index.c (na_slice): created.
546
+
547
+ * na_index.c (na_aref,na_aset): if the argument is an array,
548
+ methods [],[]= return same shape as the array. e.g,
549
+ a[[[0,1],[2,3]]] creates 2-D array.
550
+
551
+ * na_index.c
552
+ (na_serialize_struct,na_aref_aryindex,na_aref_single): Created.
553
+
554
+ 2000-07-16 Masahiro Tanaka <masa>
555
+
556
+ * na_func.c (na_transpose_bifunc,na_transpose),
557
+ test/testtrans.rb: Created.
558
+
559
+ 2000-07-15 Masahiro Tanaka <masa>
560
+
561
+ * ver 0.3.3
562
+
563
+ * na_func.c (na_sort,na_sort_index,na_sort_number): Created.
564
+
565
+ * mkfuncs.rb (mksortfunc): Created.
566
+
567
+ * test/testsort.rb: Created.
568
+
569
+ 2000-07-14 Masahiro Tanaka <masa>
570
+
571
+ * narray.c (Init_narray), narrah.h: introduce NArrayScalar class.
572
+
573
+ * narray.c (na_coerce), na_func.c (na_bifunc): better casting.
574
+
575
+ 2000-07-11 Masahiro Tanaka <masa>
576
+
577
+ * mk*.rb, depend: include code-generating scripts in distribution.
578
+
579
+ * na_func.c, mkopfunc.rb: rename sub! => sbt!.
580
+
581
+ * mkfuncs.rb: fix to work for Ruby ver 1.5.4.
582
+
583
+ 2000-07-10 Masahiro Tanaka <masa>
584
+
585
+ * na_array.c: rename na_to_narray1 to na_ary_to_narray
586
+
587
+ * na_array.c: reduce GC problem; delay registration of objects.
588
+ change return value of na_to_narray0
589
+ from VALUE to struct NARRAY *
590
+ reflect in na_ary_to_na, na_ary_to_na, na_ary_to_narray.
591
+
592
+ * narray.h: add GetOrMakeNArray(obj,ary), FreeMadeNArray(obj,ary)
593
+
594
+ * narray.c, na_index.c, na_func.c, na_fftw.c:
595
+ change na_to_narray0 to GetOrMakeNArray/FreeMadeNArray.
596
+
597
+ * narray.c (na_free): free memory of itself structure.
598
+
599
+ * narray.c (na_mark): pass pointer to rb_gc_mark.
600
+
601
+ * na_array.c (na_make_inspect): return if total<0.
602
+
603
+ * na_index.c (na_ary_to_index, na_aref, na_aset):
604
+ judge whether empty array.
605
+
606
+ * naimage/demo/mandel.rb: Now no need for checking size.
607
+
608
+ * test/testindex*.rb: print more description.
609
+
610
+ 2000-07-05 Masahiro Tanaka <masa>
611
+
612
+ * ver 0.3.2
613
+
614
+ * Create NImage library
data/src/MANIFEST ADDED
@@ -0,0 +1,82 @@
1
+ ChangeLog
2
+ MANIFEST
3
+ README.en
4
+ README.ja
5
+ SPEC.en
6
+ SPEC.ja
7
+ depend
8
+ extconf.rb
9
+ mkmath.rb
10
+ mknafunc.rb
11
+ mkop.rb
12
+ na_array.c
13
+ na_func.c
14
+ na_index.c
15
+ na_linalg.c
16
+ na_random.c
17
+ narray.c
18
+ narray.def
19
+ narray.h
20
+ narray_local.h
21
+ lib/narray_ext.rb
22
+ lib/nmatrix.rb
23
+ nimage/README.en
24
+ nimage/extconf.rb
25
+ nimage/nimage.c
26
+ nimage/demo
27
+ nimage/demo/fits.rb
28
+ nimage/demo/fits_convol.rb
29
+ nimage/demo/fits_fftdemo.rb
30
+ nimage/demo/fitsdemo1.rb
31
+ nimage/demo/fitsdemo2.rb
32
+ nimage/demo/fitsdemo3.rb
33
+ nimage/demo/fitsmorph.rb
34
+ nimage/demo/life_na.rb
35
+ nimage/demo/mandel.rb
36
+ nimage/lib
37
+ nimage/lib/nimage.rb
38
+ speed/add.py
39
+ speed/add.rb
40
+ speed/add_int.py
41
+ speed/add_int.rb
42
+ speed/lu.m
43
+ speed/lu.rb
44
+ speed/mat.m
45
+ speed/mat.rb
46
+ speed/mul.py
47
+ speed/mul.rb
48
+ speed/mul2.py
49
+ speed/mul2.rb
50
+ speed/mul_comp.py
51
+ speed/mul_comp.rb
52
+ speed/mul_int.py
53
+ speed/mul_int.rb
54
+ speed/mybench.py
55
+ speed/mybench.rb
56
+ speed/solve.m
57
+ speed/solve.py
58
+ speed/solve.rb
59
+ test/statistics.rb
60
+ test/testarray.rb
61
+ test/testbit.rb
62
+ test/testcast.rb
63
+ test/testcomplex.rb
64
+ test/testfftw.rb
65
+ test/testindex.rb
66
+ test/testindexary.rb
67
+ test/testindexset.rb
68
+ test/testmask.rb
69
+ test/testmath.rb
70
+ test/testmath2.rb
71
+ test/testmatrix.rb
72
+ test/testmatrix2.rb
73
+ test/testmatrix3.rb
74
+ test/testminmax.rb
75
+ test/testobject.rb
76
+ test/testpow.rb
77
+ test/testrandom.rb
78
+ test/testround.rb
79
+ test/testsort.rb
80
+ test/teststr.rb
81
+ test/testtrans.rb
82
+ test/testwhere.rb