Method: Vector.elements
- Defined in:
- lib/matrix.rb
.elements(array, copy = true) ⇒ Object
Creates a vector from an Array. The optional second argument specifies whether the array itself or a copy is used internally.
1564 1565 1566 |
# File 'lib/matrix.rb', line 1564 def Vector.elements(array, copy = true) new convert_to_array(array, copy) end |