Chi-Tech
|
#include <dynamic_matrix.h>
Public Member Functions | |
DynamicMatrix () | |
DynamicMatrix (size_t Nrows, size_t Ncols) | |
DynamicMatrix (size_t Nrows, size_t Ncols, NumberFormat value) | |
DynamicMatrix (const DynamicMatrix &other) | |
DynamicMatrix & | operator= (const DynamicMatrix &other) |
DynamicMatrix (DynamicMatrix &&other) noexcept | |
DynamicMatrix & | operator= (DynamicMatrix &&other) noexcept |
DynamicMatrix (const std::vector< std::vector< double > > &in) | |
DynamicMatrix & | operator= (const std::vector< std::vector< double > > &in) |
DynamicMatrix (std::initializer_list< std::initializer_list< NumberFormat > > in) | |
DynamicMatrix & | operator= (std::initializer_list< std::initializer_list< NumberFormat > > in) |
std::vector< NumberFormat > & | operator[] (size_t i) |
std::vector< NumberFormat > & | at (size_t i) |
std::vector< NumberFormat > & | back () |
std::vector< NumberFormat > & | front () |
std::vector< NumberFormat > * | data () |
void | clear () |
void | resize (size_t Nrows, size_t Ncols) |
void | resize (size_t Nrows, size_t Ncols, const NumberFormat &val) |
void | reserve (size_t Nrows) |
void | push_back (const std::vector< NumberFormat > &val) |
void | pop_back () |
bool | empty () const noexcept |
std::vector< std::vector< NumberFormat > >::iterator | begin () |
std::vector< std::vector< NumberFormat > >::iterator | end () |
size_t | size () const |
MatDim | Dimensions () const |
DynamicMatrix | operator+ (const DynamicMatrix &rhs) const |
DynamicMatrix & | operator+= (const DynamicMatrix &rhs) |
DynamicMatrix | operator- (const DynamicMatrix &rhs) const |
DynamicMatrix & | operator-= (const DynamicMatrix &rhs) |
DynamicMatrix | operator* (const NumberFormat value) const |
DynamicMatrix & | operator*= (const NumberFormat value) |
DynamicMatrix | operator* (const DynamicMatrix &rhs) |
DynamicVector< NumberFormat > | operator* (const DynamicVector< NumberFormat > &V) |
DynamicMatrix | operator/ (const NumberFormat value) const |
DynamicMatrix & | operator/= (const NumberFormat value) |
DynamicMatrix | Inverse () const |
void | SetDiagonal (DynamicVector< NumberFormat > &V) |
void | SetDiagonal (NumberFormat val) |
std::string | PrintStr () const |
Data Fields | |
std::vector< std::vector< NumberFormat > > | elements_ |
Private Types | |
typedef std::pair< size_t, size_t > | MatDim |
Static Private Member Functions | |
static void | bounds_check_rows_cols (const MatDim a, const MatDim b) |
static void | bounds_check_colsA_rowsB (const MatDim a, const MatDim b) |
General dynamic matrix utility.
Definition at line 21 of file dynamic_matrix.h.
|
private |
Definition at line 23 of file dynamic_matrix.h.
|
inline |
Default constructor. Does nothing.
Definition at line 28 of file dynamic_matrix.h.
|
inline |
Constructor with number of entries. Value defaults.
Definition at line 36 of file dynamic_matrix.h.
|
inline |
Constructor with number of entries and default value.
Definition at line 45 of file dynamic_matrix.h.
|
inline |
Copy constructor.
Definition at line 54 of file dynamic_matrix.h.
|
inlinenoexcept |
Move constructor.
Definition at line 64 of file dynamic_matrix.h.
|
inlineexplicit |
Constructor with vector.
Definition at line 76 of file dynamic_matrix.h.
|
inline |
Constructor with vector.
Definition at line 86 of file dynamic_matrix.h.
|
inline |
Definition at line 105 of file dynamic_matrix.h.
|
inline |
Definition at line 107 of file dynamic_matrix.h.
|
inline |
Definition at line 146 of file dynamic_matrix.h.
|
inlinestaticprivate |
Definition at line 168 of file dynamic_matrix.h.
|
inlinestaticprivate |
Definition at line 162 of file dynamic_matrix.h.
|
inline |
Definition at line 113 of file dynamic_matrix.h.
|
inline |
Definition at line 111 of file dynamic_matrix.h.
|
inline |
Definition at line 153 of file dynamic_matrix.h.
|
inlinenoexcept |
Definition at line 142 of file dynamic_matrix.h.
|
inline |
Definition at line 149 of file dynamic_matrix.h.
|
inline |
Definition at line 109 of file dynamic_matrix.h.
|
inline |
Obtains the inverse with Gauss-Elimination.
Definition at line 337 of file dynamic_matrix.h.
|
inline |
Matrix-Matrix multiplication
Definition at line 258 of file dynamic_matrix.h.
|
inline |
Matrix-Vector multiplication
Definition at line 286 of file dynamic_matrix.h.
|
inline |
Vector component-wise multiplication by scalar.
Definition at line 234 of file dynamic_matrix.h.
|
inline |
Vector in-place component-wise multiplication by scalar.
Definition at line 247 of file dynamic_matrix.h.
|
inline |
Component-wise addition of two matrices.
Definition at line 178 of file dynamic_matrix.h.
|
inline |
In-place component-wise addition of two vectors.
Definition at line 192 of file dynamic_matrix.h.
|
inline |
Component-wise subtraction.
Definition at line 206 of file dynamic_matrix.h.
|
inline |
In-place component-wise subtraction.
Definition at line 220 of file dynamic_matrix.h.
|
inline |
Vector component-wise division by scalar.
Definition at line 312 of file dynamic_matrix.h.
|
inline |
Vector in-place component-wise division by scalar.
Definition at line 325 of file dynamic_matrix.h.
|
inline |
Assignment operator.
Definition at line 57 of file dynamic_matrix.h.
|
inline |
Copy constructor with vector.
Definition at line 79 of file dynamic_matrix.h.
|
inlinenoexcept |
Move assignment operator.
Definition at line 68 of file dynamic_matrix.h.
|
inline |
Copy constructor with vector.
Definition at line 94 of file dynamic_matrix.h.
|
inline |
Definition at line 103 of file dynamic_matrix.h.
|
inline |
Definition at line 140 of file dynamic_matrix.h.
|
inline |
Prints the matrix to a string and then returns the string.
Definition at line 370 of file dynamic_matrix.h.
|
inline |
Definition at line 138 of file dynamic_matrix.h.
|
inline |
Definition at line 133 of file dynamic_matrix.h.
|
inline |
Definition at line 115 of file dynamic_matrix.h.
|
inline |
Definition at line 122 of file dynamic_matrix.h.
|
inline |
Set the diagonal using a vector.
Definition at line 345 of file dynamic_matrix.h.
|
inline |
Set the diagonal using value.
Definition at line 361 of file dynamic_matrix.h.
|
inline |
Definition at line 151 of file dynamic_matrix.h.
std::vector<std::vector<NumberFormat> > chi_math::DynamicMatrix< NumberFormat >::elements_ |
Definition at line 25 of file dynamic_matrix.h.