| Class | Vector | 
| In: | 
                
                lib/matrix.rb
                
         | 
        
| Parent: | Object | 
The Vector class represents a mathematical vector, which is useful in its own right, and also constitutes a row or column of a Matrix.
To create a Vector:
To access elements:
To enumerate the elements:
Vector arithmetic:
Vector functions:
Conversion to other data types:
String representations:
Creates a vector from an Array. The optional second argument specifies whether the array itself or a copy is used internally.
Collects (as in Enumerable#collect) over the elements of this vector and v in conjunction.