dotL method

Vector dotL(
  1. Vector v
)

Implementation

Vector dotL(Vector v) {
  assert(v.size == this.nrows, 'Vector must be of size nrows');

  final Vector result = Vector.zeros(this.ncols);
  for (int j = 0; j < this.ncols; j++) {
    for (int i = 0; i < this.nrows; i++) {
      result[j] += this[i][j] * v[i];
    }
  }
  return result;
}