You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2013/03/10 17:41:08 UTC
svn commit: r1454876 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java
Author: luc
Date: Sun Mar 10 16:41:08 2013
New Revision: 1454876
URL: http://svn.apache.org/r1454876
Log:
Fixed CLIRR error, by putting back protected methods.
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java?rev=1454876&r1=1454875&r2=1454876&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java Sun Mar 10 16:41:08 2013
@@ -124,6 +124,41 @@ public abstract class AbstractFieldMatri
return d[0].getField();
}
+ /** Build an array of elements.
+ * <p>
+ * Complete arrays are filled with field.getZero()
+ * </p>
+ * @param <T> Type of the field elements
+ * @param field field to which array elements belong
+ * @param rows number of rows
+ * @param columns number of columns (may be negative to build partial
+ * arrays in the same way <code>new Field[rows][]</code> works)
+ * @return a new array
+ * @deprecated as of 3.2, replaced by {@link MathArrays#buildArray(Field, int, int)}
+ */
+ @Deprecated
+ protected static <T extends FieldElement<T>> T[][] buildArray(final Field<T> field,
+ final int rows,
+ final int columns) {
+ return MathArrays.buildArray(field, rows, columns);
+ }
+
+ /** Build an array of elements.
+ * <p>
+ * Arrays are filled with field.getZero()
+ * </p>
+ * @param <T> the type of the field elements
+ * @param field field to which array elements belong
+ * @param length of the array
+ * @return a new array
+ * @deprecated as of 3.2, replaced by {@link MathArrays#buildArray(Field, int)}
+ */
+ @Deprecated
+ protected static <T extends FieldElement<T>> T[] buildArray(final Field<T> field,
+ final int length) {
+ return MathArrays.buildArray(field, length);
+ }
+
/** {@inheritDoc} */
public Field<T> getField() {
return field;