Class: AutoC::STD::Complex
- Defined in:
- lib/autoc/std.rb
Constant Summary
Constants included from Entity
Instance Attribute Summary
Attributes inherited from Primitive
Attributes inherited from Type
Instance Method Summary collapse
-
#hash_code ⇒ Object
TODO use tgmath.
Methods inherited from Primitive
adopt, #const_lvalue, #const_rvalue, #initialize, #lvalue, #rvalue, #to_value
Methods included from Entity
#<=>, #complexity, #dependencies, #forward_declarations, #implementation, #interface, #position, #references, #total_dependencies, #total_references
Methods inherited from Primitive
#compare, #copy, #custom_create, #default_create, #equal
Methods inherited from Type
abstract, #comparable?, #constructible?, #copy, #copyable?, #custom_constructible?, #custom_create, #default_constructible?, #default_create, #destroy, #destructible?, #hashable?, #initialize, #inspect, #orderable?, #to_s, #to_type
Constructor Details
This class inherits a constructor from AutoC::STD::Primitive
Instance Method Details
#hash_code ⇒ Object
TODO use tgmath
124 |
# File 'lib/autoc/std.rb', line 124 def hash_code = @hash_code ||= -> (target) { "((size_t)(crealf(#{target}))^(size_t)(cimagf(#{target})))" } # TODO use tgmath |