Functions | |
double & | ml_matrix::operator() (int row, int col) |
Accesses or assigns an element, resizes matrix if out of bounds. | |
double | ml_matrix::get (int row, int col) const |
Accesses an element. Will not resize the matrix. | |
void | ml_matrix::resize (int rows, int cols) |
Resizes the matrix, initializes new values to zero. | |
ml_matrix & | ml_matrix::append_identity () |
Adds an appropriately sized identity matrix to the existing matrix. | |
ml_matrix | ml_matrix::sub_matrix (int from_row, int to_row, int from_col, int to_col) const |
Extracts a submatrix using a range of rows and columns. | |
ml_matrix | ml_matrix::sub_matrix (int n_rows, int *rows, int n_cols, int *cols) const |
Extracts a submatrix using two arrays to select the rows and columns. | |
ml_matrix | ml_matrix::sub_matrix (const ml_int_array &rows, const ml_int_array &cols) const |
Extracts a submatrix using two ml_int_arrays to select the rows and columns. | |
ml_matrix | ml_matrix::get_row (int row) const |
Gets a single row. | |
ml_matrix | ml_matrix::get_col (int col) const |
Gets a single column. | |
ml_matrix | ml_matrix::get_row_set (int n_rows, int *rows) const |
Gets a set of rows defined by an array. | |
ml_matrix | ml_matrix::get_row_set (const ml_int_array &rows) const |
Gets a set of rows defined by a ml_int_array. | |
ml_matrix | ml_matrix::get_col_set (int n_cols, int *cols) const |
Gets a set of columns defined by an array. | |
ml_matrix | ml_matrix::get_col_set (const ml_int_array &cols) const |
Gets a set of columns defined by a ml_int_array. | |
ml_matrix | ml_matrix::sub_mat_row (int row, int n_cols, int *cols) const |
Returns a submatrix based on a row and an array of columns. | |
ml_matrix | ml_matrix::sub_mat_row (int row, const ml_int_array &cols) const |
Returns a submatrix based on a row and a ml_int_array of columns. | |
ml_matrix | ml_matrix::sub_mat_col (int n_rows, int *rows, int col) const |
Returns a submatrix based on an array of rows and a single column. | |
ml_matrix | ml_matrix::sub_mat_col (const ml_int_array &rows, int col) const |
Returns a submatrix based on a ml_int_array of rows and a single column. | |
ml_matrix | ml_matrix::extract_elements (const ml_matrix &elements) |
Extracts a set of elements as a column matrix. | |
ml_matrix & | ml_matrix::delete_rows_cols (int n_rows, int *rows, int n_cols, int *cols) |
Deletes the rows and/or columns specified in the arrays. | |
ml_matrix & | ml_matrix::delete_rows_cols (const ml_int_array &rows, const ml_int_array &cols) |
Deletes the rows and/or columns specified in the ml_int_arrays. | |
ml_matrix & | ml_matrix::delete_rows_cols (int row, const ml_int_array &cols) |
Deletes the row and/or columns specified. | |
ml_matrix & | ml_matrix::delete_rows_cols (const ml_int_array &rows, int col) |
Deletes the rows and/or column specified. | |
ml_matrix & | ml_matrix::delete_rows_cols (int row, int col) |
Deletes the row and/or column specified. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, int n_rows, int *rows) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, const ml_int_array &rows) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, int n_rows, int *rows, int n_cols, int *cols) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, const ml_int_array &rows, const ml_int_array &cols) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, int row, int n_cols, int *cols) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, int row, const ml_int_array &cols) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, int n_rows, int *rows, int col) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_sub_matrix (const ml_matrix &m, const ml_int_array &rows, int col) |
Inserts the given matrix values into the specified locations. | |
ml_matrix & | ml_matrix::inc_rows (const ml_matrix &a, int from_row, int to_row) |
Includes the specified rows from the given matrix into the original matrix. | |
ml_matrix & | ml_matrix::inc_cols (const ml_matrix &m, int from_col, int to_col) |
Includes the specified columns from the given matrix into the original matrix. | |
ml_matrix & | ml_matrix::inc_elements (const ml_matrix &values, const ml_matrix &elements) |
Incorporates a column matrix at the specified elements. | |
ml_matrix & | ml_matrix::dup_rows (int num) |
Duplicates the rows of the matrix the specified number of times. | |
ml_matrix & | ml_matrix::dup_cols (int num) |
Duplicates the columns of the matrix the specified number of times. | |
ml_matrix & | ml_matrix::append (const ml_matrix &b) |
Returns a new matrix with the columns from the two matrices appended side by side. | |
ml_matrix & | ml_matrix::stack (const ml_matrix &b) |
Returns a new matrix with the rows from the second matrix stacked below the rows of the first matrix. | |
ml_matrix | append_identity (const ml_matrix &b) |
Adds an appropriately sized identity matrix to the existing matrix. | |
ml_matrix | dup_rows (const ml_matrix &m, int num) |
Returns a new matrix with the specified matrix duplicated row-wise a given number of times. | |
ml_matrix | dup_cols (const ml_matrix &m, int num) |
Returns a new matrix with the specified matrix duplicated column-wise a given number of times. | |
ml_matrix | append (const ml_matrix &a, const ml_matrix &b) |
Returns a new matrix with the columns from the two matrices appended side by side. | |
ml_matrix | stack (const ml_matrix &a, const ml_matrix &b) |
Returns a new matrix with the rows from the second matrix stacked below the rows of the first matrix. |
|
Accesses or assigns an element, resizes matrix if out of bounds.
|
|
Accesses an element.
|
|
Resizes the matrix, initializes new values to zero
|
|
Adds an appropriately sized identity matrix to the existing matrix. Used for ml_matrix::inv().
|
|
Extracts a submatrix using a range of rows and columns. This function can return an error matrix of type ml_bad_range if the provided row and column ranges are out of bounds for the matrix.
|
|
Extracts a submatrix using two arrays to select the rows and columns. This function can return an error matrix of type ml_bad_range if the provided row and column ranges are out of bounds for the matrix.
|
|
Extracts a submatrix using two ml_int_arrays to select the rows and columns. Function is included for MATLAB and backwards compatability. This function can return an error matrix of type ml_bad_range if the provided row and column ranges are out of bounds for the matrix.
|
|
Gets a single row. This function can return an error matrix of type ml_bad_index if the specified row is invalid for the matrix.
|
|
Gets a single column. This function can return an error matrix of type ml_bad_index if the specified column is invalid for the matrix.
|
|
Gets a set of rows defined by an array. This function can return an error matrix of type ml_bad_range if the number of rows is 0, or if any of the rows specified in the row array are invalid for this matrix.
|
|
Gets a set of rows defined by a ml_int_array. This function can return an error matrix of type ml_bad_range if the number of rows is 0, or if any of the rows specified in the row array are invalid for this matrix.
|
|
Gets a set of columns defined by an array. This function can return an error matrix of type ml_bad_range if the number of columns is 0, or if any of the columns specified in the row array are invalid for this matrix.
|
|
Gets a set of columns defined by a ml_int_array. This function can return an error matrix of type ml_bad_range if the number of columns is 0, or if any of the columns specified in the row array are invalid for this matrix.
|
|
Returns a submatrix based on a row and an array of columns. This function can return an error matrix of type ml_bad_range if the specified row is invalid, if the number of columns is less than 1, or if any of the columns specified in the column array are out of bounds.
|
|
Returns a submatrix based on a row and a ml_int_array of columns. This function can return an error matrix of type ml_bad_range if the specified row is invalid, if the number of columns is less than 1, or if any of the columns specified in the column array are out of bounds.
|
|
Returns a submatrix based on an array of rows and a single column. This function can return an error matrix of type ml_bad_range if the specified column is invalid, if the number of rows is less than 1, or if any of the rows specified in the column array are out of bounds.
|
|
Returns a submatrix based on a ml_int_array of rows and a single column. This function can return an error matrix of type ml_bad_range if the specified column is invalid, if the number of rows is less than 1, or if any of the rows specified in the column array are out of bounds.
|
|
Extract a set of elements from this matrix to produce a column matrix.
|
|
Deletes the rows and/or columns specified in the arrays. This function can return an error matrix of type ml_bad_range if any of the specified rows or columns are out of bounds.
|
|
Deletes the rows and/or columns specified in the ml_int_arrays. This function can return an error matrix of type ml_bad_range if any of the specified rows or columns are out of bounds.
|
|
Deletes the row and/or columns specified. This function can return an error matrix of type ml_bad_range if any of the specified rows or columns are out of bounds.
|
|
Deletes the rows and/or column specified. This function can return an error matrix of type ml_bad_range if any of the specified rows or columns are out of bounds.
|
|
Deletes the row and/or column specified. This function can return an error matrix of type ml_bad_range if either the specified row, or the specified column, are out of bounds.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if the number of columns in this matrix and m do not match, or if any specified row is out of bounds, or if the number of specified rows is greater than the number of rows in m.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if the number of columns in this matrix and m do not match, or if any specified row is out of bounds, or if the number of specified rows is greater than the number of rows in m.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if m contians fewer columns than n_cols, or fewer rows than n_rows, or if any specified row or column is less than 1.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if m contians fewer columns than the number given in the column array, or fewer rows than the number specified in the row array, or if any specified row or column is less than 1.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if m contians fewer columns than the number given in the column array, or if any specified row or column is less than 1.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if m contians fewer columns than the number given in the column array, or if any specified row or column is less than 1.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if m contians fewer rows than the number given in the rows array, or if any specified row or column is less than 1.
|
|
Inserts the given matrix values into the specified locations. This function can return an error matrix of tyep ml_bad_range if m contians fewer rows than the number given in the row array, or if any specified row or column is less than 1.
|
|
Includes the specified rows from the given matrix into the original matrix. This function can return an error matrix of type ml_bad_range if the specified rows are invalid, or describe a larger range than the number of rows in m, or if m contains more columns than this matrix.
|
|
Includes the specified columns from the given matrix into the original matrix. This function can return an error matrix of type ml_bad_range if the specified columns are invalid, or describe a larger range than the number of columns in m, or if m contains more rows than this matrix.
|
|
Incorporate the values in a column matrix into this matrix by storing the values in the elements indicated in the elements matrix.
|
|
Duplicates the rows of the matrix the specified number of times.
|
|
Duplicates the columns of the matrix the specified number of times.
|
|
Appends the 'b' matrix to the right side of the matrix. This function can return an error matrix of type ml_size_mismatch if the number of rows in the matrices do not match.
|
|
Stacks the 'b' matrix below the matrix. This function can return an error matrix of type ml_size_mismatch if the number of columns in the matrices do not match.
|
|
Non-member version of ml_matrix::append_identity().
|
|
Returns a new matrix with the specified matrix duplicated row-wise a given number of times.
|
|
Returns a new matrix with the specified matrix duplicated column-wise a given number of times.
|
|
Appends the 'b' matrix to the right side of the 'a' matrix. This function can return an error matrix of type ml_size_mismatch if the number of rows in the matrices do not match.
|
|
Stacks the 'b' matrix below the 'a' matrix. This function can return an error matrix of type ml_size_mismatch if the number of columns in the matrices do not match.
|