Module Hub Beta

ML.MATRIX.SET

key n m entry11 .. entrynm

Sets key to store a matrix of n rows, m columns and double-precision float entries ranging from entry11 to entrynm.

Return Value

Simple string reply

Examples

redis> ML.MATRIX.SET rowvector 1 3 1 2 3
OK
redis> ML.MATRIX.SET square 3 3 1 2 3 4 5 6 7 8 9
OK

© 2017 Redis Labs, Inc. All rights reserved.