function row_sample(A,s) |
Let à be an empty matrix |
for t = 1 to s do |
Randomly sample a row according to the distribution P |
Let Ait, ⋆ be the sampled row, with corresponding probability pi |
Set |
end for |
return à and row indices |
end function |
function row_sample(A,s) |
Let à be an empty matrix |
for t = 1 to s do |
Randomly sample a row according to the distribution P |
Let Ait, ⋆ be the sampled row, with corresponding probability pi |
Set |
end for |
return à and row indices |
end function |