Database Reference
In-Depth Information
approxEqual(v1.toArray, v2.toArray) }.filter(b =>
true).count
This should display a result of 1055, as we would expect, confirming that each row of
projected
is equal to each row of
projectedSVD
.
Note
Note that the
:*
operator highlighted in the preceding code represents element-wise multi-
plication of the vectors.