Remove deprecated methods in linear package.
This commit is contained in:
parent
e92a76bc1a
commit
6ac547ddcb
|
@ -123,41 +123,6 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
|
|||
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;
|
||||
|
|
|
@ -262,21 +262,6 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
data = deep ? v.data.clone() : v.data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a vector by appending one vector to another vector.
|
||||
*
|
||||
* @param v1 First vector (will be put in front of the new vector).
|
||||
* @param v2 Second vector (will be put at back of the new vector).
|
||||
* @throws NullArgumentException if {@code v1} or {@code v2} is
|
||||
* {@code null}.
|
||||
* @deprecated as of 3.2, replaced by {@link #ArrayFieldVector(FieldVector, FieldVector)}
|
||||
*/
|
||||
@Deprecated
|
||||
public ArrayFieldVector(ArrayFieldVector<T> v1, ArrayFieldVector<T> v2)
|
||||
throws NullArgumentException {
|
||||
this((FieldVector<T>) v1, (FieldVector<T>) v2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a vector by appending one vector to another vector.
|
||||
*
|
||||
|
@ -300,21 +285,6 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
System.arraycopy(v2Data, 0, data, v1Data.length, v2Data.length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a vector by appending one vector to another vector.
|
||||
*
|
||||
* @param v1 First vector (will be put in front of the new vector).
|
||||
* @param v2 Second vector (will be put at back of the new vector).
|
||||
* @throws NullArgumentException if {@code v1} or {@code v2} is
|
||||
* {@code null}.
|
||||
* @deprecated as of 3.2, replaced by {@link #ArrayFieldVector(FieldVector, FieldElement[])}
|
||||
*/
|
||||
@Deprecated
|
||||
public ArrayFieldVector(ArrayFieldVector<T> v1, T[] v2)
|
||||
throws NullArgumentException {
|
||||
this((FieldVector<T>) v1, v2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a vector by appending one vector to another vector.
|
||||
*
|
||||
|
@ -336,21 +306,6 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
System.arraycopy(v2, 0, data, v1Data.length, v2.length);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a vector by appending one vector to another vector.
|
||||
*
|
||||
* @param v1 First vector (will be put in front of the new vector).
|
||||
* @param v2 Second vector (will be put at back of the new vector).
|
||||
* @throws NullArgumentException if {@code v1} or {@code v2} is
|
||||
* {@code null}.
|
||||
* @deprecated as of 3.2, replaced by {@link #ArrayFieldVector(FieldElement[], FieldVector)}
|
||||
*/
|
||||
@Deprecated
|
||||
public ArrayFieldVector(T[] v1, ArrayFieldVector<T> v2)
|
||||
throws NullArgumentException {
|
||||
this(v1, (FieldVector<T>) v2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a vector by appending one vector to another vector.
|
||||
*
|
||||
|
@ -670,11 +625,6 @@ public class ArrayFieldVector<T extends FieldElement<T>> implements FieldVector<
|
|||
return new ArrayFieldVector<T>(field, out, false);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public T[] getData() {
|
||||
return data.clone();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a reference to the underlying data array.
|
||||
* <p>Does not make a fresh copy of the underlying data.</p>
|
||||
|
|
|
@ -190,14 +190,6 @@ public interface FieldVector<T extends FieldElement<T>> {
|
|||
FieldVector<T> ebeDivide(FieldVector<T> v)
|
||||
throws DimensionMismatchException, MathArithmeticException;
|
||||
|
||||
/**
|
||||
* Returns vector entries as a T array.
|
||||
* @return T array of entries
|
||||
* @deprecated as of 3.1, to be removed in 4.0. Please use the {@link #toArray()} method instead.
|
||||
*/
|
||||
@Deprecated
|
||||
T[] getData();
|
||||
|
||||
/**
|
||||
* Compute the dot product.
|
||||
* @param v vector with which dot product should be computed
|
||||
|
|
|
@ -314,29 +314,6 @@ public class OpenMapRealVector extends SparseRealVector
|
|||
return new OpenMapRealVector(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Computes the dot product.
|
||||
* Note that the computation is now performed in the parent class: no
|
||||
* performance improvement is to be expected from this overloaded
|
||||
* method.
|
||||
* The previous implementation was buggy and cannot be easily fixed
|
||||
* (see MATH-795).
|
||||
*
|
||||
* @param v Vector.
|
||||
* @return the dot product of this vector with {@code v}.
|
||||
* @throws DimensionMismatchException if {@code v} is not the same size as
|
||||
* {@code this} vector.
|
||||
*
|
||||
* @deprecated as of 3.1 (to be removed in 4.0). The computation is
|
||||
* performed by the parent class. The method must be kept to maintain
|
||||
* backwards compatibility.
|
||||
*/
|
||||
@Deprecated
|
||||
public double dotProduct(OpenMapRealVector v)
|
||||
throws DimensionMismatchException {
|
||||
return dotProduct((RealVector) v);
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
@Override
|
||||
public OpenMapRealVector ebeDivide(RealVector v)
|
||||
|
|
|
@ -255,16 +255,6 @@ public class SparseFieldVector<T extends FieldElement<T>> implements FieldVector
|
|||
return res;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @deprecated as of 3.1, to be removed in 4.0. Please use the {@link #toArray()} method instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public T[] getData() {
|
||||
return toArray();
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public int getDimension() {
|
||||
return virtualSize;
|
||||
|
|
Loading…
Reference in New Issue