randomTensor format
randomTensor(R, format)
This method constructs a tensor with the specified format and fills it with random elements from the given ring. Internally, it uses a hash table where each key is a multi-index (a list of positions) and the value is a random element from the ring. Metadata such as the format, coefficient ring, and index set are stored in the tensor as well.
|
|
|
|
The object randomTensor is a method function.
The source of this document is in GameTheory.m2:1107:0.