MeshKit
1.0
|
#include <Matrix.hpp>
Public Types | |
enum | { ROWS = 1, COLS = 1 } |
typedef Matrix< 1, 1 > | my_type |
Public Member Functions | |
Matrix () | |
Matrix (double v) | |
Matrix (const double *v) | |
Matrix (const char *s) | |
Matrix (const std::string &s) | |
Matrix (const Matrix< 2, 2 > &M, unsigned r, unsigned c) | |
Matrix< 1, 1 > & | operator= (double v) |
Matrix< 1, 1 > & | operator= (const double *v) |
Matrix< 1, 1 > & | operator= (const char *s) |
Matrix< 1, 1 > & | operator= (const std::string &s) |
double & | operator() (unsigned, unsigned) |
double | operator() (unsigned, unsigned) const |
double * | data () |
const double * | data () const |
void | zero () |
void | identity () |
void | set (double v) |
void | set (const double *v) |
void | set (const char *s) |
void | set (const std::string &s) |
void | diag (double v) |
void | diag (const double *v) |
void | make_minor (const Matrix< 2, 2 > &M, unsigned r, unsigned c) |
Matrix< 1, 1 > & | assign_add_transpose (const Matrix< 1, 1 > &other) |
Matrix< 1, 1 > & | assign_product (double s, const Matrix< 1, 1 > &other) |
Matrix< 1, 1 > & | assign_add_product (double s, const Matrix< 1, 1 > &other) |
Matrix< 1, 1 > & | assign_multiply_elements (const Matrix< 1, 1 > &other) |
operator double () const | |
Protected Attributes | |
double | m |
Definition at line 143 of file Matrix.hpp.
Definition at line 148 of file Matrix.hpp.
anonymous enum |
Definition at line 150 of file Matrix.hpp.
Matrix | ( | ) | [inline] |
Constructor for uninitialized matrix
Definition at line 153 of file Matrix.hpp.
Matrix | ( | double | v | ) | [inline] |
Initialize diagonal values, zero others
Definition at line 155 of file Matrix.hpp.
Matrix | ( | const double * | v | ) | [inline] |
Initialize to an array of values
Definition at line 157 of file Matrix.hpp.
Matrix | ( | const char * | s | ) | [inline] |
Parse initial values from string
Definition at line 159 of file Matrix.hpp.
Matrix | ( | const std::string & | s | ) | [inline] |
Parse initial values from string
Definition at line 161 of file Matrix.hpp.
Initialize to the minor of a larger matrix This matrix is the passed matrix with the specified row and column removed.
Definition at line 166 of file Matrix.hpp.
Matrix<1,1>& assign_add_product | ( | double | s, |
const Matrix< 1, 1 > & | other | ||
) | [inline] |
*this += s*m
Definition at line 201 of file Matrix.hpp.
Matrix<1,1>& assign_add_transpose | ( | const Matrix< 1, 1 > & | other | ) | [inline] |
*this += transpose(other)
Definition at line 193 of file Matrix.hpp.
Matrix<1,1>& assign_multiply_elements | ( | const Matrix< 1, 1 > & | other | ) | [inline] |
multiply each element by the cooresponding element in m
Definition at line 205 of file Matrix.hpp.
Matrix<1,1>& assign_product | ( | double | s, |
const Matrix< 1, 1 > & | other | ||
) | [inline] |
*this = s*m
Definition at line 197 of file Matrix.hpp.
double* data | ( | ) | [inline] |
Definition at line 175 of file Matrix.hpp.
const double* data | ( | ) | const [inline] |
Definition at line 176 of file Matrix.hpp.
void diag | ( | double | v | ) | [inline] |
Set diagonal value to passed values, others to zero.
Definition at line 185 of file Matrix.hpp.
void diag | ( | const double * | v | ) | [inline] |
Set diagonal values to passed values, others to zero.
Definition at line 187 of file Matrix.hpp.
void identity | ( | ) | [inline] |
Definition at line 179 of file Matrix.hpp.
void make_minor | ( | const Matrix< 2, 2 > & | M, |
unsigned | r, | ||
unsigned | c | ||
) | [inline] |
Set this matrix to the minor of a larger matrix
Definition at line 189 of file Matrix.hpp.
operator double | ( | ) | const [inline] |
Definition at line 209 of file Matrix.hpp.
double& operator() | ( | unsigned | , |
unsigned | |||
) | [inline] |
Definition at line 173 of file Matrix.hpp.
double operator() | ( | unsigned | , |
unsigned | |||
) | const [inline] |
Definition at line 174 of file Matrix.hpp.
Matrix<1,1>& operator= | ( | double | v | ) | [inline] |
Definition at line 168 of file Matrix.hpp.
Matrix<1,1>& operator= | ( | const double * | v | ) | [inline] |
Definition at line 169 of file Matrix.hpp.
Matrix<1,1>& operator= | ( | const char * | s | ) | [inline] |
Definition at line 170 of file Matrix.hpp.
Matrix<1,1>& operator= | ( | const std::string & | s | ) | [inline] |
Definition at line 171 of file Matrix.hpp.
void set | ( | double | v | ) | [inline] |
Definition at line 180 of file Matrix.hpp.
void set | ( | const double * | v | ) | [inline] |
Definition at line 181 of file Matrix.hpp.
void set | ( | const char * | s | ) | [inline] |
Definition at line 182 of file Matrix.hpp.
void set | ( | const std::string & | s | ) | [inline] |
Definition at line 183 of file Matrix.hpp.
void zero | ( | ) | [inline] |
Definition at line 178 of file Matrix.hpp.
double m [protected] |
Definition at line 145 of file Matrix.hpp.