carray 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 742b378b885917436f6963876f83408b7a6afdffb533e009b1a3dda69fa79d26
4
- data.tar.gz: 75ae60f0d4eb606d6ef3bf3c583521ef5da0650d81abfb692f31bac01d6eccec
3
+ metadata.gz: 3c1c801916a3d06c0a972ab4c78e62ef3818c932dcfae16599d3fba6330cb6eb
4
+ data.tar.gz: 2730d9759c5508427c39e74d508ca54601d0fe33663d5de546ebf9eb44d6cfbc
5
5
  SHA512:
6
- metadata.gz: 75f1cdcf240c82af5ede3adcba5c23580e30bc8207caa1b3a7516335baf76f58acf187b72505841569f778461ae9d8b5d054da44daea80197fae3a396909e053
7
- data.tar.gz: 54d9349a9d5bbc3503c0f82b0909ee0443f3c28a9e9e5e43d856985d18b0c18a731f7c54077a75d788bc2cd830499310b7447ea7af542fd99534c2fa94eb480b
6
+ metadata.gz: 301e78a51c1903f52e26fa7266d6be3ac1889fa7b960b7c6b0757b70f0ae6b4902de713f96690765c685f3ef70ea7736b830df00d471d0d3602483679200d8dd
7
+ data.tar.gz: afae27d7f603dd1c1f3ab8d36fc555ba2a33fad3d7a3a26d0697884296a135843f78f71f3ee3ca51c3ce0e905c05e3db5546938ae7bb49e09aa33efe2db602c7
@@ -498,63 +498,127 @@ deriv_penta (double *x, double *y, double xx)
498
498
  static double
499
499
  interpolate_linear (double *x, double *y, ca_size_t n, double xx)
500
500
  {
501
+ double xt[2];
501
502
  double ri;
502
503
  ca_size_t i0;
503
504
  if ( n == 1) {
504
505
  return y[0];
505
506
  }
506
- if ( xx == x[0] ) {
507
- return y[0];
508
- }
509
- if ( xx == x[1] ) {
510
- return y[1];
511
- }
512
- if ( n == 2 ) {
513
- return interp_lin(x, y, xx);
514
- }
515
- linear_index(n, x, xx, &ri);
516
- i0 = floor(ri);
517
- if ( i0 <= 0 ) {
518
- i0 = 0;
507
+ if ( x != NULL ) {
508
+ if ( xx == x[0] ) {
509
+ return y[0];
510
+ }
511
+ if ( xx == x[1] ) {
512
+ return y[1];
513
+ }
514
+ if ( n == 2 ) {
515
+ return interp_lin(x, y, xx);
516
+ }
517
+ linear_index(n, x, xx, &ri);
518
+ i0 = floor(ri);
519
+ if ( i0 <= 0 ) {
520
+ i0 = 0;
521
+ }
522
+ else if ( i0 + 1 >= n - 1 ) {
523
+ i0 = n - 2;
524
+ }
525
+ return interp_lin(&x[i0], &y[i0], xx);
519
526
  }
520
- else if ( i0 + 1 >= n - 1 ) {
521
- i0 = n - 2;
527
+ else {
528
+ if ( xx == 0 ) {
529
+ return y[0];
530
+ }
531
+ if ( xx == 1 ) {
532
+ return y[1];
533
+ }
534
+ if ( n == 2 ) {
535
+ xt[0] = 0.0;
536
+ xt[1] = 1.0;
537
+ return interp_lin(xt, y, xx);
538
+ }
539
+ i0 = floor(xx);
540
+ if ( i0 <= 0 ) {
541
+ i0 = 0;
542
+ }
543
+ else if ( i0 + 1 >= n - 1 ) {
544
+ i0 = n - 2;
545
+ }
546
+ xt[0] = i0;
547
+ xt[1] = i0+1;
548
+ return interp_lin(xt, &y[i0], xx);
522
549
  }
523
- return interp_lin(&x[i0], &y[i0], xx);
524
550
  }
525
551
 
526
552
  static double
527
553
  interpolate_cubic (double *x, double *y, ca_size_t n, double xx)
528
554
  {
555
+ static double xt[4];
529
556
  double ri;
530
557
  ca_size_t i0;
531
558
  if ( n == 1) {
532
559
  return y[0];
533
560
  }
534
- if ( xx == x[0] ) {
535
- return y[0];
536
- }
537
- if ( xx == x[1] ) {
538
- return y[1];
539
- }
540
- if ( xx == x[2] ) {
541
- return y[2];
542
- }
543
- if ( n == 2 ) {
544
- return interp_lin(x, y, xx);
545
- }
546
- if ( n == 3 ) {
547
- return interp_qual(x, y, xx);
548
- }
549
- linear_index(n, x, xx, &ri);
550
- i0 = floor(ri) - 1;
551
- if ( i0 <= 0 ) {
552
- i0 = 0;
561
+ if ( x != NULL ) {
562
+ if ( xx == x[0] ) {
563
+ return y[0];
564
+ }
565
+ if ( xx == x[1] ) {
566
+ return y[1];
567
+ }
568
+ if ( xx == x[2] ) {
569
+ return y[2];
570
+ }
571
+ if ( n == 2 ) {
572
+ return interp_lin(x, y, xx);
573
+ }
574
+ if ( n == 3 ) {
575
+ return interp_qual(x, y, xx);
576
+ }
577
+ linear_index(n, x, xx, &ri);
578
+ i0 = floor(ri) - 1;
579
+ if ( i0 <= 0 ) {
580
+ i0 = 0;
581
+ }
582
+ else if ( i0 + 3 >= n - 1 ) {
583
+ i0 = n - 4;
584
+ }
585
+ return interp_cubic(&x[i0], &y[i0], xx);
553
586
  }
554
- else if ( i0 + 3 >= n - 1 ) {
555
- i0 = n - 4;
587
+ else {
588
+ if ( xx == 0 ) {
589
+ return y[0];
590
+ }
591
+ if ( xx == 1 ) {
592
+ return y[1];
593
+ }
594
+ if ( xx == 2 ) {
595
+ return y[2];
596
+ }
597
+ if ( n == 2 ) {
598
+ xt[0] = 0.0;
599
+ xt[1] = 1.0;
600
+ return interp_lin(xt, y, xx);
601
+ }
602
+ if ( n == 3 ) {
603
+ xt[0] = 0.0;
604
+ xt[1] = 1.0;
605
+ xt[2] = 2.0;
606
+ return interp_qual(xt, y, xx);
607
+ }
608
+ ri = xx;
609
+ i0 = floor(ri) - 1;
610
+ if ( i0 <= 0 ) {
611
+ i0 = 0;
612
+ }
613
+ else if ( i0 + 3 >= n - 1 ) {
614
+ i0 = n - 4;
615
+ }
616
+ xt[0] = i0;
617
+ xt[1] = i0+1;
618
+ xt[2] = i0+2;
619
+ xt[3] = i0+3;
620
+ return interp_cubic(xt, &y[i0], xx);
556
621
  }
557
- return interp_cubic(&x[i0], &y[i0], xx);
558
622
  }
559
623
 
560
624
  static double
@@ -624,77 +688,153 @@ rb_ca_interpolate (int argc, VALUE *argv, VALUE self)
624
688
  "invalid interpolation type <%s>", StringValuePtr(inspect));
625
689
  }
626
690
 
627
- cv = ca_wrap_readonly(rval, CA_DOUBLE);
628
- sc = ca_wrap_readonly(vsc, CA_DOUBLE);
629
-
630
- if ( ca_is_any_masked(cv) || ca_is_any_masked(sc) ) {
631
- rb_raise(rb_eRuntimeError,
632
- "can't calculate interpolation when masked elements exist");
633
- }
634
-
635
- if ( cv->elements != sc->elements ) {
636
- rb_raise(rb_eRuntimeError, "data num mismatch with scale");
637
- }
638
-
639
- cx = ca_wrap_readonly(vx, CA_DOUBLE);
691
+ if ( ! NIL_P(vsc) ) {
640
692
 
641
- co0 = carray_new(ca->data_type, cx->rank, cx->dim, 0, NULL);
642
- out = out0 = ca_wrap_struct(co0);
643
- co = ca_wrap_writable(out, CA_DOUBLE);
693
+ cv = ca_wrap_readonly(rval, CA_DOUBLE);
694
+ sc = ca_wrap_readonly(vsc, CA_DOUBLE);
644
695
 
645
- ca_attach_n(4, cv, sc, cx, co);
696
+ if ( ca_is_any_masked(cv) || ca_is_any_masked(sc) ) {
697
+ rb_raise(rb_eRuntimeError,
698
+ "can't calculate interpolation when masked elements exist");
699
+ }
646
700
 
647
- px = (double*) cx->ptr;
648
- po = (double*) co->ptr;
701
+ if ( cv->elements != sc->elements ) {
702
+ rb_raise(rb_eRuntimeError, "data num mismatch with scale");
703
+ }
649
704
 
650
- ca_update_mask(cx);
651
- if ( cx->mask ) {
652
- boolean8_t *mx, *mo;
653
- ca_create_mask(co);
654
- mx = (boolean8_t *) cx->mask->ptr;
655
- mo = (boolean8_t *) co->mask->ptr;
656
- if ( type == 3 ) {
657
- for (i=0; i<cx->elements; i++) {
658
- if ( ! *mx ) {
659
- *po = interpolate_cubic((double*)sc->ptr, (double*)cv->ptr,
660
- cv->elements, *px);
705
+ cx = ca_wrap_readonly(vx, CA_DOUBLE);
706
+
707
+ co0 = carray_new(ca->data_type, cx->rank, cx->dim, 0, NULL);
708
+ out = out0 = ca_wrap_struct(co0);
709
+ co = ca_wrap_writable(out, CA_DOUBLE);
710
+
711
+ ca_attach_n(4, cv, sc, cx, co);
712
+
713
+ px = (double*) cx->ptr;
714
+ po = (double*) co->ptr;
715
+
716
+ ca_update_mask(cx);
717
+ if ( cx->mask ) {
718
+ boolean8_t *mx, *mo;
719
+ ca_create_mask(co);
720
+ mx = (boolean8_t *) cx->mask->ptr;
721
+ mo = (boolean8_t *) co->mask->ptr;
722
+ if ( type == 3 ) {
723
+ for (i=0; i<cx->elements; i++) {
724
+ if ( ! *mx ) {
725
+ *po = interpolate_cubic((double*)sc->ptr, (double*)cv->ptr,
726
+ cv->elements, *px);
727
+ }
728
+ else {
729
+ *mo = 1;
730
+ }
731
+ mx++; mo++; po++; px++;
661
732
  }
662
- else {
663
- *mo = 1;
733
+ }
734
+ else {
735
+ for (i=0; i<cx->elements; i++) {
736
+ if ( ! *mx ) {
737
+ *po = interpolate_linear((double*)sc->ptr, (double*)cv->ptr,
738
+ cv->elements, *px);
739
+ }
740
+ else {
741
+ *mo = 1;
742
+ }
743
+ mx++; mo++; po++; px++;
664
744
  }
665
- mx++; mo++; po++; px++;
666
745
  }
667
746
  }
668
747
  else {
669
- for (i=0; i<cx->elements; i++) {
670
- if ( ! *mx ) {
671
- *po = interpolate_linear((double*)sc->ptr, (double*)cv->ptr,
672
- cv->elements, *px);
748
+ if ( type == 3 ) {
749
+ for (i=0; i<cx->elements; i++) {
750
+ *po++ = interpolate_cubic((double*)sc->ptr, (double*)cv->ptr,
751
+ cv->elements, *px++);
673
752
  }
674
- else {
675
- *mo = 1;
753
+ }
754
+ else {
755
+ for (i=0; i<cx->elements; i++) {
756
+ *po++ = interpolate_linear((double*)sc->ptr, (double*)cv->ptr,
757
+ cv->elements, *px++);
676
758
  }
677
- mx++; mo++; po++; px++;
678
759
  }
679
760
  }
761
+
762
+ ca_sync(co);
763
+ ca_detach_n(4, cv, sc, cx, co);
764
+
680
765
  }
681
766
  else {
682
- if ( type == 3 ) {
683
- for (i=0; i<cx->elements; i++) {
684
- *po++ = interpolate_cubic((double*)sc->ptr, (double*)cv->ptr,
685
- cv->elements, *px++);
767
+
768
+
769
+ cv = ca_wrap_readonly(rval, CA_DOUBLE);
770
+
771
+
772
+ if ( ca_is_any_masked(cv) ) {
773
+ rb_raise(rb_eRuntimeError,
774
+ "can't calculate interpolation when masked elements exist");
775
+ }
776
+
777
+ cx = ca_wrap_readonly(vx, CA_DOUBLE);
778
+
779
+ co0 = carray_new(ca->data_type, cx->rank, cx->dim, 0, NULL);
780
+ out = out0 = ca_wrap_struct(co0);
781
+ co = ca_wrap_writable(out, CA_DOUBLE);
782
+
783
+ ca_attach_n(3, cv, cx, co);
784
+
785
+ px = (double*) cx->ptr;
786
+ po = (double*) co->ptr;
787
+
788
+ ca_update_mask(cx);
789
+ if ( cx->mask ) {
790
+ boolean8_t *mx, *mo;
791
+ ca_create_mask(co);
792
+ mx = (boolean8_t *) cx->mask->ptr;
793
+ mo = (boolean8_t *) co->mask->ptr;
794
+ if ( type == 3 ) {
795
+ for (i=0; i<cx->elements; i++) {
796
+ if ( ! *mx ) {
797
+ *po = interpolate_cubic(NULL, (double*)cv->ptr,
798
+ cv->elements, *px);
799
+ }
800
+ else {
801
+ *mo = 1;
802
+ }
803
+ mx++; mo++; po++; px++;
804
+ }
805
+ }
806
+ else {
807
+ for (i=0; i<cx->elements; i++) {
808
+ if ( ! *mx ) {
809
+ *po = interpolate_linear(NULL, (double*)cv->ptr,
810
+ cv->elements, *px);
811
+ }
812
+ else {
813
+ *mo = 1;
814
+ }
815
+ mx++; mo++; po++; px++;
816
+ }
686
817
  }
687
818
  }
688
819
  else {
689
- for (i=0; i<cx->elements; i++) {
690
- *po++ = interpolate_linear((double*)sc->ptr, (double*)cv->ptr,
691
- cv->elements, *px++);
820
+ if ( type == 3 ) {
821
+ for (i=0; i<cx->elements; i++) {
822
+ *po++ = interpolate_cubic(NULL, (double*)cv->ptr,
823
+ cv->elements, *px++);
824
+ }
825
+ }
826
+ else {
827
+ for (i=0; i<cx->elements; i++) {
828
+ *po++ = interpolate_linear(NULL, (double*)cv->ptr,
829
+ cv->elements, *px++);
830
+ }
692
831
  }
693
832
  }
694
- }
695
833
 
696
- ca_sync(co);
697
- ca_detach_n(4, cv, sc, cx, co);
834
+ ca_sync(co);
835
+ ca_detach_n(3, cv, cx, co);
836
+
837
+ }
698
838
 
699
839
  if ( rb_ca_is_scalar(vx) ) {
700
840
  return rb_funcall(out0, rb_intern("[]"), 1, INT2NUM(0));
@@ -716,18 +856,18 @@ rb_ca_differentiate (volatile VALUE self,
716
856
 
717
857
  Data_Get_Struct(self, CArray, ca);
718
858
 
719
- cv = ca_wrap_readonly(rval, CA_DOUBLE);
720
859
  sc = ca_wrap_readonly(vsc, CA_DOUBLE);
721
860
 
722
- if ( ca_is_any_masked(cv) || ca_is_any_masked(sc) ) {
861
+ if ( ca_is_any_masked(ca) || ca_is_any_masked(sc) ) {
723
862
  rb_raise(rb_eRuntimeError,
724
863
  "can't calculate differentiation when masked elements exist");
725
864
  }
726
865
 
727
- if ( cv->elements != sc->elements ) {
866
+ if ( ca->elements != sc->elements ) {
728
867
  rb_raise(rb_eRuntimeError, "data num mismatch with scale");
729
868
  }
730
869
 
870
+ cv = ca_wrap_readonly(rval, CA_DOUBLE);
731
871
  cx = ca_wrap_readonly(vx, CA_DOUBLE);
732
872
 
733
873
  co0 = carray_new(ca->data_type, cx->rank, cx->dim, 0, NULL);
@@ -747,8 +887,8 @@ rb_ca_differentiate (volatile VALUE self,
747
887
  mo = (boolean8_t *) co->mask->ptr;
748
888
  for (i=0; i<cx->elements; i++) {
749
889
  if ( ! *mx ) {
750
- *po = differentiate((double*)sc->ptr, (double*)ca->ptr,
751
- ca->elements, *px);
890
+ *po = differentiate((double*)sc->ptr, (double*)cv->ptr,
891
+ cv->elements, *px);
752
892
  }
753
893
  else {
754
894
  *mo = 1;
@@ -758,8 +898,8 @@ rb_ca_differentiate (volatile VALUE self,
758
898
  }
759
899
  else {
760
900
  for (i=0; i<cx->elements; i++) {
761
- *po = differentiate((double*)sc->ptr, (double*)ca->ptr,
762
- ca->elements, *px);
901
+ *po = differentiate((double*)sc->ptr, (double*)cv->ptr,
902
+ cv->elements, *px);
763
903
  px++, po++;
764
904
  }
765
905
  }
@@ -119,7 +119,7 @@ find_index (ca_size_t n, double *y, double yy, ca_size_t *major, double *frac)
119
119
 
120
120
  static int
121
121
  linear_interp_loop (CArray *ca, ca_size_t *major, double *frac,
122
- int level, int32_t *idx, double wt, double *valp)
122
+ int level, ca_size_t *idx, double wt, double *valp)
123
123
  {
124
124
  double tmp;
125
125
 
@@ -177,6 +177,7 @@ ca_interpolate_loop (CArray *ca, double **scale,
177
177
  double val, frc;
178
178
  ca_size_t maj;
179
179
  ca_size_t i;
180
+
180
181
  if ( level == ca->rank-1 ) {
181
182
  if ( ! value[level] ) {
182
183
  for (i=0; i<ca->dim[level]; i++) {
@@ -303,6 +304,7 @@ rb_ca_interpolate_bilinear (int argc, VALUE *argv, volatile VALUE self)
303
304
  }
304
305
  }
305
306
 
307
+
306
308
  ca_attach(ca);
307
309
  ca_interpolate(ca, scales, values, (double*) co->ptr);
308
310
  ca_detach(ca);
@@ -25,7 +25,7 @@ class CArray
25
25
  return self
26
26
  end
27
27
 
28
- def solve (sc, val, eps = 100 * Float::EPSILON)
28
+ def solve (sc, val, type: "cubic", eps: 100 * Float::EPSILON)
29
29
  func = self - val
30
30
  list, output = [], []
31
31
  (0...dim0-1).each do |i|
@@ -43,13 +43,13 @@ class CArray
43
43
  sx[0], sx[3] = sc[i], sc[i+1]
44
44
  sy[0], sy[3] = func[i], func[i+1]
45
45
  sx[1], sx[2] = (2.0*sx[0]+sx[3])/3.0, (sx[0]+2.0*sx[3])/3.0
46
- sy[1], sy[2] = func.interpolate(sc, sx[1], :type=>"linear"), func.interpolate(sc, sx[2], :type=>"linear")
47
- output.push(sx.interpolate(sy, 0))
46
+ sy[1], sy[2] = func.interpolate(sc, sx[1], type: type), func.interpolate(sc, sx[2], type: type)
47
+ output.push(sx.interpolate(sy, 0, type: type))
48
48
  end
49
49
  return output.uniq
50
50
  end
51
51
 
52
- def solve2 (sc, eps = 100 * Float::EPSILON)
52
+ def solve2 (sc, eps: 100 * Float::EPSILON)
53
53
  retvals = []
54
54
  self.dim1.times do |j|
55
55
  func = self[nil,j].to_ca
@@ -374,15 +374,23 @@ class CArray
374
374
  # Reutrns the reference which rank is reduced
375
375
  # by eliminating the dimensions which size == 1
376
376
  def compacted
377
- newdim = dim.reject{|x| x == 1 }
378
- return ( rank != newdim.size ) ? reshape(*newdim) : self[]
377
+ if rank == 1
378
+ return self[]
379
+ else
380
+ newdim = dim.reject{|x| x == 1 }
381
+ return ( rank != newdim.size ) ? reshape(*newdim) : self[]
382
+ end
379
383
  end
380
384
 
381
385
  # Returns the array which rank is reduced
382
386
  # by eliminating the dimensions which size == 1
383
387
  def compact
384
- newdim = dim.reject{|x| x == 1 }
385
- return ( rank != newdim.size ) ? reshape(*newdim).to_ca : self.to_ca
388
+ if rank == 1
389
+ return self.to_ca
390
+ else
391
+ newdim = dim.reject{|x| x == 1 }
392
+ return ( rank != newdim.size ) ? reshape(*newdim).to_ca : self.to_ca
393
+ end
386
394
  end
387
395
 
388
396
  # Returns the reference which elements are sorted by the comparison method
data/version.h CHANGED
@@ -10,9 +10,9 @@
10
10
 
11
11
  ---------------------------------------------------------------------------- */
12
12
 
13
- #define CA_VERSION "1.3.4"
14
- #define CA_VERSION_CODE 134
13
+ #define CA_VERSION "1.3.5"
14
+ #define CA_VERSION_CODE 135
15
15
  #define CA_VERSION_MAJOR 1
16
16
  #define CA_VERSION_MINOR 3
17
- #define CA_VERSION_TEENY 4
18
- #define CA_VERSION_DATE "2019/08/16"
17
+ #define CA_VERSION_TEENY 5
18
+ #define CA_VERSION_DATE "2019/08/27"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carray
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroki Motoyoshi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-16 00:00:00.000000000 Z
11
+ date: 2019-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: narray
@@ -61,11 +61,11 @@ email: ''
61
61
  executables: []
62
62
  extensions:
63
63
  - extconf.rb
64
- - ext/calculus/extconf.rb
65
- - ext/fortio/extconf.rb
66
64
  - ext/imagemap/extconf.rb
67
- - ext/mathfunc/extconf.rb
68
65
  - ext/narray/extconf.rb
66
+ - ext/mathfunc/extconf.rb
67
+ - ext/fortio/extconf.rb
68
+ - ext/calculus/extconf.rb
69
69
  extra_rdoc_files: []
70
70
  files:
71
71
  - COPYING
@@ -227,7 +227,6 @@ files:
227
227
  - lib/carray/object/ca_obj_link.rb
228
228
  - lib/carray/object/ca_obj_pack.rb
229
229
  - mkmath.rb
230
- - mkmf.log
231
230
  - mt19937ar.c
232
231
  - mt19937ar.h
233
232
  - rdoc_main.rb
@@ -309,44 +308,44 @@ rdoc_options:
309
308
  - rdoc_ext.rb
310
309
  - rdoc_math.rb
311
310
  - rdoc_stat.rb
312
- - lib/carray/autoload/autoload_base.rb
313
- - lib/carray/autoload/autoload_graphics_gnuplot.rb
314
- - lib/carray/autoload/autoload_graphics_zimg.rb
315
- - lib/carray/autoload/autoload_io_csv.rb
316
- - lib/carray/autoload/autoload_io_imagemagick.rb
317
- - lib/carray/autoload/autoload_io_pg.rb
318
- - lib/carray/autoload/autoload_io_sqlite3.rb
311
+ - lib/carray/info.rb
312
+ - lib/carray/io/table.rb
313
+ - lib/carray/io/sqlite3.rb
314
+ - lib/carray/io/csv.rb
315
+ - lib/carray/io/imagemagick.rb
316
+ - lib/carray/io/pg.rb
317
+ - lib/carray/math/interp.rb
318
+ - lib/carray/math/interp/adapter_gsl_spline.rb
319
+ - lib/carray/math/histogram.rb
320
+ - lib/carray/math/recurrence.rb
321
+ - lib/carray/object/ca_obj_iterator.rb
322
+ - lib/carray/object/ca_obj_pack.rb
323
+ - lib/carray/object/ca_obj_link.rb
319
324
  - lib/carray/autoload/autoload_io_table.rb
320
325
  - lib/carray/autoload/autoload_math_histogram.rb
326
+ - lib/carray/autoload/autoload_io_csv.rb
327
+ - lib/carray/autoload/autoload_io_pg.rb
321
328
  - lib/carray/autoload/autoload_math_interp.rb
329
+ - lib/carray/autoload/autoload_io_imagemagick.rb
322
330
  - lib/carray/autoload/autoload_math_recurrence.rb
323
- - lib/carray/autoload/autoload_object_iterator.rb
331
+ - lib/carray/autoload/autoload_io_sqlite3.rb
332
+ - lib/carray/autoload/autoload_graphics_zimg.rb
333
+ - lib/carray/autoload/autoload_graphics_gnuplot.rb
334
+ - lib/carray/autoload/autoload_base.rb
324
335
  - lib/carray/autoload/autoload_object_link.rb
325
336
  - lib/carray/autoload/autoload_object_pack.rb
326
- - lib/carray/base/autoload.rb
327
- - lib/carray/base/basic.rb
337
+ - lib/carray/autoload/autoload_object_iterator.rb
338
+ - lib/carray/mkmf.rb
339
+ - lib/carray/graphics/gnuplot.rb
340
+ - lib/carray/graphics/zimg.rb
341
+ - lib/carray/base/struct.rb
342
+ - lib/carray/base/math.rb
328
343
  - lib/carray/base/inspect.rb
329
344
  - lib/carray/base/iterator.rb
330
- - lib/carray/base/math.rb
345
+ - lib/carray/base/basic.rb
346
+ - lib/carray/base/autoload.rb
331
347
  - lib/carray/base/obsolete.rb
332
348
  - lib/carray/base/serialize.rb
333
- - lib/carray/base/struct.rb
334
- - lib/carray/graphics/gnuplot.rb
335
- - lib/carray/graphics/zimg.rb
336
- - lib/carray/info.rb
337
- - lib/carray/io/csv.rb
338
- - lib/carray/io/imagemagick.rb
339
- - lib/carray/io/pg.rb
340
- - lib/carray/io/sqlite3.rb
341
- - lib/carray/io/table.rb
342
- - lib/carray/math/histogram.rb
343
- - lib/carray/math/interp/adapter_gsl_spline.rb
344
- - lib/carray/math/interp.rb
345
- - lib/carray/math/recurrence.rb
346
- - lib/carray/mkmf.rb
347
- - lib/carray/object/ca_obj_iterator.rb
348
- - lib/carray/object/ca_obj_link.rb
349
- - lib/carray/object/ca_obj_pack.rb
350
349
  require_paths:
351
350
  - lib
352
351
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -360,8 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
360
359
  - !ruby/object:Gem::Version
361
360
  version: '0'
362
361
  requirements: []
363
- rubyforge_project:
364
- rubygems_version: 2.7.7
362
+ rubygems_version: 3.0.3
365
363
  signing_key:
366
364
  specification_version: 4
367
365
  summary: Multi-dimesional array class
data/mkmf.log DELETED
@@ -1,18 +0,0 @@
1
- "clang -o conftest -I/Users/himotoyoshi/.rbenv/versions/2.5.1/include/ruby-2.5.0/x86_64-darwin16 -I/Users/himotoyoshi/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/backward -I/Users/himotoyoshi/.rbenv/versions/2.5.1/include/ruby-2.5.0 -I. -I/Users/himotoyoshi/.rbenv/versions/2.5.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wdeprecated-declarations -Wextra-tokens -pipe -Wall -O2 conftest.c -L. -L/Users/himotoyoshi/.rbenv/versions/2.5.1/lib -L. -L/Users/himotoyoshi/.rbenv/versions/2.5.1/lib -fstack-protector -L/usr/local/lib -lruby.2.5.1-static -framework Foundation -lpthread -lgmp -ldl -lobjc "
2
- In file included from conftest.c:1:
3
- In file included from /Users/himotoyoshi/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby.h:33:
4
- In file included from /Users/himotoyoshi/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/ruby.h:29:
5
- /Users/himotoyoshi/.rbenv/versions/2.5.1/include/ruby-2.5.0/ruby/defines.h:112:10: fatal error: 'stdio.h' file not found
6
- #include <stdio.h>
7
- ^~~~~~~~~
8
- 1 error generated.
9
- checked program was:
10
- /* begin */
11
- 1: #include "ruby.h"
12
- 2:
13
- 3: int main(int argc, char **argv)
14
- 4: {
15
- 5: return 0;
16
- 6: }
17
- /* end */
18
-