From 55a655ca2bf64e8f916c96d4a891608f97df310a Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Sun, 10 Mar 2013 16:41:08 +0000 Subject: [PATCH] Fixed CLIRR error, by putting back protected methods. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1454876 13f79535-47bb-0310-9956-ffa450edef68 --- .../math3/linear/AbstractFieldMatrix.java | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java b/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java index 6b60243b7..581b69da6 100644 --- a/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java +++ b/src/main/java/org/apache/commons/math3/linear/AbstractFieldMatrix.java @@ -124,6 +124,41 @@ public abstract class AbstractFieldMatrix> return d[0].getField(); } + /** Build an array of elements. + *

+ * Complete arrays are filled with field.getZero() + *

+ * @param 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 new Field[rows][] works) + * @return a new array + * @deprecated as of 3.2, replaced by {@link MathArrays#buildArray(Field, int, int)} + */ + @Deprecated + protected static > T[][] buildArray(final Field field, + final int rows, + final int columns) { + return MathArrays.buildArray(field, rows, columns); + } + + /** Build an array of elements. + *

+ * Arrays are filled with field.getZero() + *

+ * @param 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[] buildArray(final Field field, + final int length) { + return MathArrays.buildArray(field, length); + } + /** {@inheritDoc} */ public Field getField() { return field;