com.twitter.scalding.mathematics
Represents the pointwise, or Hadamard, product of two matrices.
Represents the pointwise, or Hadamard, product of two matrices.
equivalent to multiplying this matrix by itself, power times
equivalent to multiplying this matrix by itself, power times
Consider this Matrix as the r2 row of a matrix.
Consider this Matrix as the r2 row of a matrix. The current matrix must be a row, which is to say, its row type must be Unit.
Users should never need this.
Users should never need this. This is the current Matrix2, but in most optimized form. Usually, you will just do matrix operations until you eventually call write or toTypedPipe
the result is the same as considering everything on the this to be like a 1 value so we just sum, using only a monoid on VecV, where this Matrix has the value true.
the result is the same as considering everything on the this to be like a 1 value so we just sum, using only a monoid on VecV, where this Matrix has the value true. This is useful for graph propagation of monoids, such as sketchs like HyperLogLog, BloomFilters or CountMinSketch. TODO This is a special kind of product that could be optimized like Product is
Row L2 normalization (can only be called for Double) After this operation, the sum(|x|^2) along each row will be 1.
Row L2 normalization (can only be called for Double) After this operation, the sum(|x|^2) along each row will be 1.
Convert the current Matrix to a TypedPipe
Infinite column vector - only for intermediate computations