class MatrixAlgebraFactory {

  public static MatrixAlgebra getMatrixAlgebra(final String algebraName) {
    if (s_staticInstances.containsKey(algebraName)) {
      return s_staticInstances.get(algebraName);
    }
    throw new IllegalArgumentException("Matrix algebra " + algebraName + " not found");
  }

  private  MatrixAlgebraFactory();

}