Module Hub Beta

ML.MATRIX.SCALE

key scalar

Updates the entries of the matrix stored in key by multiplying them with scalar.

Return Value

Simple string reply

Examples

redis> ML.MATRIX.SET a 2 3 1 2 5 3 4 6
OK
redis> ML.MATRIX.SCALE a 2
OK
redis> ML.MATRIX.GET a
1) (integer) 2
2) (integer) 3
3) “2”
4) “4”
5) “10”
6) “6”
7) “8”
8) “12”

© 2017 Redis Labs, Inc. All rights reserved.