#include <openvdb/math/Mat.h>
Inherited by Mat3< double >, Mat4< double >, and Mat4< Real >.
|
| Mat ()=default |
|
std::string | str (unsigned indentation=0) const |
|
T * | asPointer () |
| Direct access to the internal data. More...
|
|
const T * | asPointer () const |
|
T * | operator[] (int i) |
| Array style reference to ith row. More...
|
|
const T * | operator[] (int i) 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...
|
|
bool | isNan () const |
| True if a Nan is present in this matrix. More...
|
|
bool | isInfinite () const |
| True if an Inf is present in this matrix. More...
|
|
bool | isFinite () const |
| True if no Nan or Inf values are present. More...
|
|
bool | isZero () const |
| True if all elements are exactly zero. More...
|
|
template<unsigned SIZE, typename T>
class openvdb::v11_0::math::Mat< SIZE, T >
A base class for square matrices.
◆ value_type
◆ ValueType
◆ SIZE_
◆ Mat()
Trivial constructor, the matrix is NOT initialized
- Note
- destructor, copy constructor, assignment operator and move constructor are left to be defined by the compiler (default)
◆ absMax()
Return the maximum of the absolute of all elements in this matrix.
◆ asPointer() [1/2]
Direct access to the internal data.
◆ asPointer() [2/2]
const T* asPointer |
( |
| ) |
const |
|
inline |
◆ isFinite()
True if no Nan or Inf values are present.
◆ isInfinite()
bool isInfinite |
( |
| ) |
const |
|
inline |
True if an Inf is present in this matrix.
◆ isNan()
True if a Nan is present in this matrix.
◆ isZero()
True if all elements are exactly zero.
◆ numColumns()
static unsigned numColumns |
( |
| ) |
|
|
inlinestatic |
◆ numElements()
static unsigned numElements |
( |
| ) |
|
|
inlinestatic |
◆ numRows()
static unsigned numRows |
( |
| ) |
|
|
inlinestatic |
◆ operator[]() [1/2]
Array style reference to ith row.
◆ operator[]() [2/2]
const T* operator[] |
( |
int |
i | ) |
const |
|
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