Module Hub Beta

ML.MATRIX.MULTIPLY

matrix1 matrix2 product

The result of multiplying the two matrices stored in matrix1 and matrix2 is set in product.

Return Value

Simple string reply

Examples

redis> ML.MATRIX.SET a 2 3 1 2 5 3 4 6
OK
redis> ML.MATRIX.SET b 3 2 1 2 3 4 7 1
OK
redis> ML.MATRIX.MULTIPLY a b ab
OK
redis> ML.MATRIX.GET ab
1) (integer) 2
2) (integer) 2
3) “42”
4) “15”
5) “57”
6) “28”

© 2017 Redis Labs, Inc. All rights reserved.