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:
parent
7cac883ba0
commit
d0e8a3587a
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue