dot method
Implementation
Value dot(ValueVector other) {
assert(values.length == other.values.length);
Value result = Value(0.0);
for (int i = 0; i < values.length; i++) {
result += values[i] * other.values[i];
}
return result;
}
Value dot(ValueVector other) {
assert(values.length == other.values.length);
Value result = Value(0.0);
for (int i = 0; i < values.length; i++) {
result += values[i] * other.values[i];
}
return result;
}