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 /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/GameTheory.m2:1107:0.