<< accsum_priestx Support accsum_sumcond >>

Accsum >> Accsum > Support > accsum_shuffle

accsum_shuffle

Randomly shuffles the input.

Calling Sequence

y = accsum_shuffle ( x )

Parameters

x :

a m-by-n, matrix of doubles

y :

a m-by-n, matrix of doubles, the randomly permuted values.

Description

Randomly shuffles the input. This function makes use of the grand function and modifies its state.

Examples

// Use with larger r
x = accsum_wilkinson(10);
for i = 1 : 10
x = accsum_shuffle ( x );
[s1,e1] = accsum_compsum ( x );
[s2,e2] = accsum_dblcompsum ( x );
mprintf("#%5d CS=%e + %e DCS=%e + %e\n",i,s1,e1,s2,e2);
end

Authors

Bibliography

"Stability and numerical accuracy of algorithms", Nicolas Higham

"Handbook of Floating Point Computations", Muller et al


<< accsum_priestx Support accsum_sumcond >>