Java Code Examples for org.apache.commons.math3.exception.util.LocalizedFormats#ROW_INDEX

The following examples show how to use org.apache.commons.math3.exception.util.LocalizedFormats#ROW_INDEX . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) throws OutOfRangeException {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 2
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row)
    throws OutOfRangeException {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}
 
Example 3
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) throws OutOfRangeException {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 4
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row)
    throws OutOfRangeException {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}
 
Example 5
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 6
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row) {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}
 
Example 7
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) throws OutOfRangeException {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 8
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row)
    throws OutOfRangeException {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}
 
Example 9
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 10
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row) {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}
 
Example 11
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) throws OutOfRangeException {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 12
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row)
    throws OutOfRangeException {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}
 
Example 13
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) throws OutOfRangeException {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 14
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row)
    throws OutOfRangeException {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}
 
Example 15
Source File: AbstractFieldMatrix.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code index} is not valid.
 */
protected void checkRowIndex(final int row) throws OutOfRangeException {
    if (row < 0 || row >= getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, getRowDimension() - 1);
    }
}
 
Example 16
Source File: MatrixUtils.java    From astor with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Check if a row index is valid.
 *
 * @param m Matrix.
 * @param row Row index to check.
 * @throws OutOfRangeException if {@code row} is not a valid index.
 */
public static void checkRowIndex(final AnyMatrix m, final int row)
    throws OutOfRangeException {
    if (row < 0 ||
        row >= m.getRowDimension()) {
        throw new OutOfRangeException(LocalizedFormats.ROW_INDEX,
                                      row, 0, m.getRowDimension() - 1);
    }
}