dotMV method
Returns product matr
dot vec
.
Implementation
List<double> dotMV(List<List<double>> matr, List<double> vec) {
List<double> row, result = List(vec.length);
for (int i = 0; i < matr.length; i++) {
row = matr[i];
result[i] = dotVV(row, vec);
}
return result;
}