Author: echatellier Date: 2009-11-04 11:10:26 +0100 (Wed, 04 Nov 2009) New Revision: 198 Modified: trunk/src/main/java/org/nuiton/math/matrix/MatrixFactory.java Log: Remove old lutinxml comments Modified: trunk/src/main/java/org/nuiton/math/matrix/MatrixFactory.java =================================================================== --- trunk/src/main/java/org/nuiton/math/matrix/MatrixFactory.java 2009-11-02 11:11:40 UTC (rev 197) +++ trunk/src/main/java/org/nuiton/math/matrix/MatrixFactory.java 2009-11-04 10:10:26 UTC (rev 198) @@ -35,65 +35,6 @@ */ public class MatrixFactory { // MatrixFactory - /* following code in only an exception generator since - * lutinxml in not used anymore :) - static { - - // on essai d'enregistrer le converter XML - try { - // Il faut le faire par pur introspection sinon l'exception - // NoClassDefFoundError est levé avant d'entrer dans le constructeur - // static :( - Class converterClass = Class - .forName("org.codelutin.math.matrix.MatrixNDXMLConverter"); - Object converter = converterClass.newInstance(); - - Class converterFactoryClass = Class - .forName("org.codelutin.xml.XMLConverterFactory"); - Method m = converterFactoryClass.getMethod("addConverter", - Class.class, Class - .forName("org.codelutin.xml.XMLConverter")); - m.invoke(null, MatrixND.class, converter); - - // org.codelutin.xml.XMLConverterFactory.addConverter(MatrixND.class, - // new MatrixNDXMLConverter()); - log.info("Converter XML pour MatrixND ajoute"); - - // on essai d'enregistrer le converter JDBC - // le JDBC depend du XML - try { - converterClass = Class - .forName("org.codelutin.math.matrix.MatrixNDJDBCConverter"); - converter = converterClass.newInstance(); - - converterFactoryClass = Class - .forName("org.codelutin.topia.persistence.jdbctransformer.JDBCTransformerFactory"); - m = converterFactoryClass - .getMethod( - "addConverter", - Class.class, - Class.forName("org.codelutin.topia.persistence.jdbctransformer.JDBCTransformer")); - m.invoke(null, MatrixND.class, converter); - - // Class converterClass = - // org.codelutin.math.matrix.MatrixNDJDBCConverter(); - // JDBCTransformerFactory - // .addConverter(MatrixND.class, new MatrixNDJDBCConverter()); - log.info("Converter JDBC pour MatrixND ajoute"); - } catch (Throwable eee) { - log - .info("librairie topia non presente. Import/Export JDBC impossible"); - log.debug("L'exception etait", eee); - } - - } catch (Throwable eee) { - log - .info("librairie lutinxml non presente. Import/Export XML impossible"); - log.debug("L'exception etait", eee); - } - - }*/ - /** Valeur par defaut si aucun type de Vector n'est donné */ protected static Class<?> defaultVectorClass = DoubleBigVector.class; @@ -138,10 +79,8 @@ /** * Convert a double array into matrix. * - * @param values - * The values to fill the matrix - * @param dim - * An array representing the dimensions of the matrix + * @param values The values to fill the matrix + * @param dim An array representing the dimensions of the matrix * @return a 2D matrix filled with the values, null if the dimension is more * than 2 */ @@ -198,8 +137,7 @@ * Crée une nouvelle matrice identité. Une matrice identité est une matrice * à 2 dimensions dont tous les éléments de la diagonal vaut 1 * - * @param size - * la taille de la matrice + * @param size la taille de la matrice * @return une nouvelle matrice identité */ public MatrixND matrixId(int size) { @@ -221,4 +159,3 @@ } } // MatrixFactory -