#include <Mat.h>
Inherited by Mat3< double >.
|
| Mat () |
|
| Mat (Mat const &src) |
| Copy constructor. Used when the class signature matches exactly. More...
|
|
Mat & | operator= (Mat const &src) |
|
std::string | str (unsigned indentation=0) const |
|
void | write (std::ostream &os) const |
|
void | read (std::istream &is) |
|
T | absMax () const |
| Return the maximum of the absolute of all elements in this matrix. More...
|
|
template<unsigned SIZE, typename T>
class openvdb::v4_0_1::math::Mat< SIZE, T >
A base class for square matrices.
◆ value_type
◆ ValueType
◆ SIZE_
◆ Mat() [1/2]
Default ctor. Does nothing. Required because declaring a copy (or other) constructor means the default constructor gets left out.
◆ Mat() [2/2]
Mat |
( |
Mat< SIZE, T > const & |
src | ) |
|
|
inline |
Copy constructor. Used when the class signature matches exactly.
◆ absMax()
Return the maximum of the absolute of all elements in this matrix.
◆ numColumns()
static unsigned numColumns |
( |
| ) |
|
|
inlinestatic |
◆ numElements()
static unsigned numElements |
( |
| ) |
|
|
inlinestatic |
◆ numRows()
static unsigned numRows |
( |
| ) |
|
|
inlinestatic |
◆ operator=()
Mat& operator= |
( |
Mat< SIZE, T > const & |
src | ) |
|
|
inline |
◆ read()
void read |
( |
std::istream & |
is | ) |
|
|
inline |
◆ str()
std::string str |
( |
unsigned |
indentation = 0 | ) |
const |
|
inline |
- Returns
- string representation of matrix Since output is multiline, optional indentation argument prefixes each newline with that much white space. It does not indent the first line, since you might be calling this inline:
cout << "matrix: " << mat.str(7)
matrix: [[1 2] [3 4]]
◆ write()
void write |
( |
std::ostream & |
os | ) |
const |
|
inline |
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
ostr, |
|
|
const Mat< SIZE, T > & |
m |
|
) |
| |
|
friend |
Write a Mat to an output stream.
◆ mm
The documentation for this class was generated from the following file: