Class: GegenpolyArray
- Inherits:
-
SfBasic
- Object
- ErbPP
- DefMethod
- DefModuleFunction
- DefGslModuleFunction
- SfTemplate
- SfBasic
- GegenpolyArray
- Defined in:
- ext/numo/gsl/sf/parse_sf.rb
Constant Summary collapse
- RE =
/^gsl_sf_gegenpoly_array$/
Constants inherited from SfBasic
SfBasic::PARAM_DESC, SfBasic::PARAM_NAMES
Constants included from FuncParser
FuncParser::PARAM_DESC, FuncParser::PARAM_NAMES
Instance Attribute Summary
Attributes included from FuncParser
#args_in, #args_out, #args_param, #counter, #generate_array
Attributes inherited from ErbPP
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(parent, tmpl, **h) ⇒ GegenpolyArray
constructor
A new instance of GegenpolyArray.
Methods included from FuncParser
#argument_property, #c_args, #cdef_args, #def_ain, #def_aout, #desc_param, #desc_param_scalar, #find_name, #is_param, #method_args, #n_in, #n_input, #n_out, #n_param, #ndl_args, #param_desc, #param_names, #parse_args, #recv
Methods inherited from DefModuleFunction
Methods inherited from DefMethod
#c_func, #c_iter, #c_name, #define_method_args, #id_op, #init_def, #op_map, #singleton
Methods included from DeclMethod
#def_alias, #def_alloc_func, #def_const, #def_method, #def_module_function, #def_singleton_method, #undef_alloc_func, #undef_method, #undef_singleton_method
Methods inherited from ErbPP
#add_child, #description, #find, #find_tmpl, #get, #init_def, #load_erb, #method_missing, #method_missing_alias, #result, #run, #set, #write
Constructor Details
#initialize(parent, tmpl, **h) ⇒ GegenpolyArray
Returns a new instance of GegenpolyArray.
252 253 254 255 256 257 258 259 260 261 |
# File 'ext/numo/gsl/sf/parse_sf.rb', line 252 def initialize(parent,tmpl,**h) super(parent,tmpl,**h) c = find_name("nmax").c_var @preproc_code = <<EOL if (#{c}<0) { rb_raise(rb_eArgError,"should be kmax>=0"); } shape[0] = #{c}+1; EOL end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErbPP
Class Method Details
.lookup(h) ⇒ Object
248 249 250 |
# File 'ext/numo/gsl/sf/parse_sf.rb', line 248 def self.lookup(h) "mod_func_noloop" if RE =~ h[:func_name] end |