|
[Date Index]
[Thread Index]
[Author Index]
random matrix from row and column sums
- To: mathgroup at smc.vnet.net
- Subject: [mg53554] random matrix from row and column sums
- From: adiggle at agric.wa.gov.au
- Date: Tue, 18 Jan 2005 05:07:54 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Is there an efficient method in Mathematica to generate random tables
of nonnegative integers from a list of row sums and a list of column
sums?
For example for row sums of {7,3,2} and column sums of {2,9,1} the
following two tables satisfy the constraints:
{{2, 5, 0}, {0, 2, 1}, {0, 2, 0}}
and
{{1, 6, 0}, {1, 2, 0}, {0, 1, 1}}
Thanks
Prev by Date:
Equation exporting
Next by Date:
Calling windows programs
Previous by thread:
Equation exporting
Next by thread:
Re: random matrix from row and column sums
|