[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dennou-ruby:004049] rb-gslでNArray



�ǾRuby�Τߤʤ���
���Ǥ���
Debian9.4 �ǥѥå��������󥹥ȡ��뤷�� ruby-gsl ��NArray ���Ȥ��ʤ��褦�Ǥ���

% ruby -v
ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]

% irb
rirb(main):001:0> require "gsl"
=> true
irb(main):002:0> require "narray"
=> false
irb(main):003:0> val=NArray.float(5).indgen
=> NArray.float(5):
[ 0.0, 1.0, 2.0, 3.0, 4.0 ]
irb(main):004:0> val.to_gslv
NoMethodError: undefined method `to_gslv' for "NArray.float(5): \n[
0.0, 1.0, 2.0, 3.0, 4.0 ]":NArray
Did you mean?  to_s
        from (irb):4
        from /usr/bin/irb:11:in `<main>'


�ޤ���gem��array�ξ���ꤷ��b-gsl�򥤥󥹥ȡ��뤷�褦�Ȥ��Ƥ⤳���ޤ���
% export NARRAY=1
% gem install rb-gsl -- --with-narray-include={narray.h�ξ�}

Makefile:241: �������å�'dht.o' �Υ쥷�ԤǼ�����ޤ���
make: *** [dht.o] ���顼 1

make failed, exit code 2


-- 
Eriko Nishimoto (�������,
Project Scientist, Project Team for Advanced Climate Modeling, JAMSTEC
http://gfd-dennou.org/member/eriko/