Vector.row constructor
Creates a row vector from the list of values given.
Note that a reference to the list is used, not a deep
copy. If you change the values
List after passing
into this vector the vector changes as well.
Vector v = Vector.row([1.0,2.0,3.0]);
print(v);
prints
[1.0,2.0,3.0]
Implementation
factory Vector.row(List<double> values) {
return Vector._(Matrix([values]), VectorType.row);
}