| Home | Trees | Indices | Help |
|---|
|
|
|
|||
| WeightedIntegerVectors_nweight | |||
|
|||
|
|||
|
|||
Returns the combinatorial class of integer vectors of n
weighted by weight.
EXAMPLES:
sage: WeightedIntegerVectors(8, [1,1,2])
Integer vectors of 8 weighted by [1, 1, 2]
sage: WeightedIntegerVectors(8, [1,1,2]).first()
[0, 0, 4]
sage: WeightedIntegerVectors(8, [1,1,2]).last()
[8, 0, 0]
sage: WeightedIntegerVectors(8, [1,1,2]).count()
25
sage: WeightedIntegerVectors(8, [1,1,2]).random_element()
[1, 1, 3]
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:25 2008 | http://epydoc.sourceforge.net |