create_verhoeff_matrices

create_verhoeff_matrices()

Value

An object with three fields; d5, d5_p, and inv_v

Examples

verhoeff::create_verhoeff_matrices()$d5
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] #> [1,] 0 1 2 3 4 5 6 7 8 9 #> [2,] 1 2 3 4 0 6 7 8 9 5 #> [3,] 2 3 4 0 1 7 8 9 5 6 #> [4,] 3 4 0 1 2 8 9 5 6 7 #> [5,] 4 0 1 2 3 9 5 6 7 8 #> [6,] 5 9 8 7 6 0 4 3 2 1 #> [7,] 6 5 9 8 7 1 0 4 3 2 #> [8,] 7 6 5 9 8 2 1 0 4 3 #> [9,] 8 7 6 5 9 3 2 1 0 4 #> [10,] 9 8 7 6 5 4 3 2 1 0
verhoeff::create_verhoeff_matrices()$d5_p
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] #> [1,] 0 1 2 3 4 5 6 7 8 9 #> [2,] 1 5 7 6 2 8 3 0 9 4 #> [3,] 5 8 0 3 7 9 6 1 4 2 #> [4,] 8 9 1 6 0 4 3 5 2 7 #> [5,] 9 4 5 3 1 2 6 8 7 0 #> [6,] 4 2 8 6 5 7 3 9 0 1 #> [7,] 2 7 9 3 8 0 6 4 1 5 #> [8,] 7 0 4 6 9 1 3 2 5 8
verhoeff::create_verhoeff_matrices()$inv_v
#> [1] 0 4 3 2 1 5 6 7 8 9