Hi,
How do you know where you want to put them originaly? Do you have a mask? if so does it always have the same number of ones in each row and each column? Or indices where you want to put these values?