search for: symarrays

Displaying 1 result from an estimated 1 matches for "symarrays".

Did you mean: symarray
2006 May 26
2
combinatorial programming problem
...ere is one programming problem I haven't solved, making an inverse of the index function indx() --- se code below. It could for instance return the original k indexes in strictly increasing order, to make indx() formally invertible. Any ideas? Kjetil Code: # Implementing an S3 class for symarrays with array rank r for dimension # [k, k, ..., k] with k>=r repeated r times. We do not store the diagonal. # Storage requirement is given by {r, k}= choose(k, r) # where r=array rank, k=maximum index symarray <- function(data=NA, dims=c(1,1)){ r <- dims[1] k <- dims[2]...