Class: CoulombArray
- Inherits:
-
SfBasic
- Object
- ErbPP
- DefMethod
- DefModuleFunction
- DefGslModuleFunction
- SfTemplate
- SfBasic
- CoulombArray
- Defined in:
- ext/numo/gsl/sf/parse_sf.rb
Constant Summary collapse
- RE =
/^gsl_sf_coulomb_\w+_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) ⇒ CoulombArray
constructor
A new instance of CoulombArray.
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) ⇒ CoulombArray
Returns a new instance of CoulombArray.
232 233 234 235 236 237 238 239 240 241 |
# File 'ext/numo/gsl/sf/parse_sf.rb', line 232 def initialize(parent,tmpl,**h) super(parent,tmpl,**h) c = find_name("kmax").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
228 229 230 |
# File 'ext/numo/gsl/sf/parse_sf.rb', line 228 def self.lookup(h) "mod_func_noloop" if RE =~ h[:func_name] end |