#include <Mat.h>
Inherited by Mat3< double >.
|
| Mat () |
|
| Mat (Mat const &src) |
| Copy constructor. Used when the class signature matches exactly. More...
|
|
std::string | str (unsigned indentation=0) const |
|
void | write (std::ostream &os) const |
|
void | read (std::istream &is) |
|
template<unsigned SIZE, typename T>
class openvdb::v3_0_0::math::Mat< SIZE, T >
A base class for square matrices.
Default ctor. Does nothing. Required because declaring a copy (or other) constructor means the default constructor gets left out.
Mat |
( |
Mat< SIZE, T > const & |
src | ) |
|
|
inline |
Copy constructor. Used when the class signature matches exactly.
static unsigned numColumns |
( |
| ) |
|
|
inlinestatic |
static unsigned numElements |
( |
| ) |
|
|
inlinestatic |
static unsigned numRows |
( |
| ) |
|
|
inlinestatic |
void read |
( |
std::istream & |
is | ) |
|
|
inline |
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]]
void write |
( |
std::ostream & |
os | ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
ostr, |
|
|
const Mat< SIZE, T > & |
m |
|
) |
| |
|
friend |
Write a Mat to an output stream.
The documentation for this class was generated from the following file: