Class: Einsum::Label
- Inherits:
-
Struct
- Object
- Struct
- Einsum::Label
- Defined in:
- lib/einsum.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#dimension ⇒ Object
Returns the value of attribute dimension.
Instance Method Summary collapse
- #increment ⇒ Object
-
#initialize(dimension, count = 0) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(dimension, count = 0) ⇒ Label
Returns a new instance of Label.
15 16 17 |
# File 'lib/einsum.rb', line 15 def initialize(dimension, count = 0) super(dimension, count) end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count
14 15 16 |
# File 'lib/einsum.rb', line 14 def count @count end |
#dimension ⇒ Object
Returns the value of attribute dimension
14 15 16 |
# File 'lib/einsum.rb', line 14 def dimension @dimension end |
Instance Method Details
#increment ⇒ Object
19 20 21 |
# File 'lib/einsum.rb', line 19 def increment self.count += 1 end |