* Returns the {@link SingularValueDecomposition} implementation corresponding to
* the {@link Algorithm} name.
*/
public static SingularValueDecomposition getFactorization(Algorithm alg) {
switch (alg) {
case MATLAB: return new SingularValueDecompositionMatlab();
case OCTAVE: return new SingularValueDecompositionOctave();
case SVDLIBC: return new SingularValueDecompositionLibC();
case ANY: return getFastestAvailableFactorization();
default: throw new UnsupportedOperationException("Cannot find a valid SVD implementation");
}