MATH-854: FieldMatrix.setSubMatrix does *not* throw NumberIsTooSmallException.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1395453 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastien Brisard 2012-10-08 05:19:50 +00:00
parent 7cac883ba0
commit d0e8a3587a
3 changed files with 3 additions and 5 deletions

View File

@ -465,7 +465,7 @@ public abstract class AbstractFieldMatrix<T extends FieldElement<T>>
public void setSubMatrix(final T[][] subMatrix, final int row,
final int column)
throws DimensionMismatchException, OutOfRangeException,
NoDataException, NullArgumentException, NumberIsTooSmallException {
NoDataException, NullArgumentException {
if (subMatrix == null) {
throw new NullArgumentException();
}

View File

@ -783,7 +783,7 @@ public class BlockFieldMatrix<T extends FieldElement<T>> extends AbstractFieldMa
public void setSubMatrix(final T[][] subMatrix, final int row,
final int column)
throws DimensionMismatchException, OutOfRangeException,
NoDataException, NullArgumentException, NumberIsTooSmallException {
NoDataException, NullArgumentException {
// safety checks
MathUtils.checkNotNull(subMatrix);
final int refLength = subMatrix[0].length;

View File

@ -250,14 +250,12 @@ public interface FieldMatrix<T extends FieldElement<T>> extends AnyMatrix {
* @throws NoDataException if a row or column of {@code subMatrix} is empty.
* @throws DimensionMismatchException if {@code subMatrix} is not
* rectangular (not all rows have the same length).
* @throws NumberIsTooSmallException if {@code endRow < startRow} or
* {@code endColumn < startColumn}.
* @throws NullArgumentException if {@code subMatrix} is {@code null}.
* @since 2.0
*/
void setSubMatrix(T[][] subMatrix, int row, int column)
throws DimensionMismatchException, OutOfRangeException,
NoDataException, NullArgumentException, NumberIsTooSmallException;
NoDataException, NullArgumentException;
/**
* Get the entries in row number {@code row}