powered by
Creates a matrix with nonnegative entries, given row and column sums and 0 on the diagonal. Superseeded by the more flexible findFeasibleMatrix.
getfeasibleMatr(L, A)
Vector of row sums
Vector of column sums
A matrix with nonnegative entries and given row/column sums and 0 on the diagonal.
# NOT RUN { getfeasibleMatr(c(0.5,1,0),c(0.5,0,1)) getfeasibleMatr(rep(1,4),rep(1,4)) getfeasibleMatr(2^(1:3),2^(3:1)) getfeasibleMatr(1:5,1:5) getfeasibleMatr(1:5,5:1) # }
Run the code above in your browser using DataLab