Module Hub Beta

ML.MATRIX.GET

key

Returns the matrix’s dimensions and entries.

Return Value

Array reply, specifically:

1. The first element is the number of rows
2. The second element is the number of columns
3. The following elements are the entries

Examples

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

© 2017 Redis Labs, Inc. All rights reserved.