Vector.fillRow constructor

Vector.fillRow(
  1. int count,
  2. [double fill = 0.0]
)

Creates a row vector with count elements filled with fill

Vector v = Vector.row(3, 1.0);
print(v);

prints

[1.0,1.0,1.0]

Implementation

factory Vector.fillRow(int count, [double fill = 0.0]) {
  return Vector.row(List<double>.filled(count, fill));
}