Author: tn
Date: Wed Aug 15 18:24:25 2012
New Revision: 1373551

URL: http://svn.apache.org/viewvc?rev=1373551&view=rev
Log:
Use fixed locale for matrix formatter to prevent decimal point problems.

Modified:
    
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java

Modified: 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java?rev=1373551&r1=1373550&r2=1373551&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java
 (original)
+++ 
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractRealMatrix.java
 Wed Aug 15 18:24:25 2012
@@ -18,6 +18,7 @@
 package org.apache.commons.math3.linear;
 
 import java.util.ArrayList;
+import java.util.Locale;
 
 import org.apache.commons.math3.exception.NoDataException;
 import org.apache.commons.math3.exception.NotStrictlyPositiveException;
@@ -30,7 +31,7 @@ import org.apache.commons.math3.util.Fas
 /**
  * Basic implementation of RealMatrix methods regardless of the underlying 
storage.
  * <p>All the methods implemented here use {@link #getEntry(int, int)} to 
access
- * matrix elements. Derived class can provide faster implementations. </p>
+ * matrix elements. Derived class can provide faster implementations.</p>
  *
  * @version $Id$
  * @since 2.0
@@ -40,7 +41,7 @@ public abstract class AbstractRealMatrix
     implements RealMatrix {
 
     /** Default format. */
-    private static final RealMatrixFormat DEFAULT_FORMAT = 
RealMatrixFormat.getInstance();
+    private static final RealMatrixFormat DEFAULT_FORMAT = 
RealMatrixFormat.getInstance(Locale.US);
     static {
         // set the minimum fraction digits to 1 to keep compatibility
         DEFAULT_FORMAT.getFormat().setMinimumFractionDigits(1);


Reply via email to