|
ZonoOpt v2.1.0
|
Class for interval matrices (i.e., every element of the matrix is an interval) More...
#include <Intervals.hpp>
Public Member Functions | |
| IntervalMatrix () | |
| IntervalMatrix default constructor. | |
| IntervalMatrix (size_t rows, size_t cols, const std::vector< Eigen::Triplet< Interval > > &triplets) | |
| IntervalMatrix constructor using triplets. | |
| IntervalMatrix (const Eigen::SparseMatrix< zono_float > &mat_lb, const Eigen::SparseMatrix< zono_float > &mat_ub) | |
| IntervalMatrix constructor using sparse lower and upper bound matrices. | |
| IntervalMatrix (const Eigen::Matrix< zono_float, -1, -1 > &mat_lb, const Eigen::Matrix< zono_float, -1, -1 > &mat_ub) | |
| IntervalMatrix constructor using dense lower and upper bound matrices. | |
| IntervalMatrix (const Eigen::Matrix< Interval, -1, -1 > &mat) | |
| IntervalMatrix constructor from Eigen matrix of intervals. | |
| Eigen::SparseMatrix< zono_float > | center () const |
| Get center matrix. | |
| Eigen::SparseMatrix< zono_float > | diam () const |
| Get diameter matrix. | |
| IntervalMatrix | radius () const |
| Get radius matrix. | |
| zono_float | width () const |
| Get width of interval matrix. | |
| Box | operator* (const Eigen::Vector< zono_float, -1 > &v) const |
| IntervalMatrix multiplication with vector. | |
| Box | operator* (const Box &box) const |
| IntervalMatrix multiplication with Box. | |
| IntervalMatrix | operator* (const Eigen::SparseMatrix< zono_float, Eigen::RowMajor > &A) const |
| IntervalMatrix multiplication with matrix. | |
| IntervalMatrix | operator* (const IntervalMatrix &other) const |
| IntervalMatrix multiplication with another IntervalMatrix. | |
| IntervalMatrix | operator+ (const IntervalMatrix &other) const |
| IntervalMatrix addition. | |
| IntervalMatrix | operator- (const IntervalMatrix &other) const |
| IntervalMatrix subtraction. | |
| size_t | rows () const |
| Get number of rows. | |
| size_t | cols () const |
| Get number of columns. | |
| std::string | print () const |
| Print method. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const IntervalMatrix &interval_matrix) |
| print to ostream | |
Class for interval matrices (i.e., every element of the matrix is an interval)
|
inline |
IntervalMatrix default constructor.
| ZonoOpt::IntervalMatrix::IntervalMatrix | ( | size_t | rows, |
| size_t | cols, | ||
| const std::vector< Eigen::Triplet< Interval > > & | triplets | ||
| ) |
IntervalMatrix constructor using triplets.
| rows | number of rows |
| cols | number of columns |
| triplets | triplets for interval matrix (row, col, interval) |
| ZonoOpt::IntervalMatrix::IntervalMatrix | ( | const Eigen::SparseMatrix< zono_float > & | mat_lb, |
| const Eigen::SparseMatrix< zono_float > & | mat_ub | ||
| ) |
IntervalMatrix constructor using sparse lower and upper bound matrices.
| mat_lb | lower bound matrix |
| mat_ub | upper bound matrix |
| ZonoOpt::IntervalMatrix::IntervalMatrix | ( | const Eigen::Matrix< zono_float, -1, -1 > & | mat_lb, |
| const Eigen::Matrix< zono_float, -1, -1 > & | mat_ub | ||
| ) |
IntervalMatrix constructor using dense lower and upper bound matrices.
| mat_lb | lower bound matrix |
| mat_ub | upper bound matrix |
| ZonoOpt::IntervalMatrix::IntervalMatrix | ( | const Eigen::Matrix< Interval, -1, -1 > & | mat | ) |
IntervalMatrix constructor from Eigen matrix of intervals.
| mat | matrix of intervals |
| Eigen::SparseMatrix< zono_float > ZonoOpt::IntervalMatrix::center | ( | ) | const |
Get center matrix.
Each element of center matrix is the center of the corresponding interval in the interval matrix
|
inline |
Get number of columns.
| Eigen::SparseMatrix< zono_float > ZonoOpt::IntervalMatrix::diam | ( | ) | const |
Get diameter matrix.
Each element of the diameter matrix is the width of the corresponding interval in the interval matrix
| IntervalMatrix ZonoOpt::IntervalMatrix::operator* | ( | const Eigen::SparseMatrix< zono_float, Eigen::RowMajor > & | A | ) | const |
| Box ZonoOpt::IntervalMatrix::operator* | ( | const Eigen::Vector< zono_float, -1 > & | v | ) | const |
| IntervalMatrix ZonoOpt::IntervalMatrix::operator* | ( | const IntervalMatrix & | other | ) | const |
IntervalMatrix multiplication with another IntervalMatrix.
| other | rhs interval matrix |
| IntervalMatrix ZonoOpt::IntervalMatrix::operator+ | ( | const IntervalMatrix & | other | ) | const |
| IntervalMatrix ZonoOpt::IntervalMatrix::operator- | ( | const IntervalMatrix & | other | ) | const |
| std::string ZonoOpt::IntervalMatrix::print | ( | ) | const |
Print method.
| IntervalMatrix ZonoOpt::IntervalMatrix::radius | ( | ) | const |
Get radius matrix.
Returns the IntervalMatrix with each interval shifted to be centered at zero
|
inline |
Get number of rows.
| zono_float ZonoOpt::IntervalMatrix::width | ( | ) | const |
Get width of interval matrix.
Specifically, this returns the max width for any interval in the interval matrix
|
friend |
print to ostream
| os | ostream |
| interval_matrix | reference to interval matrix |