A class that represents a matrix of real numbers. More...
#include <xsmatrix.h>
Public Attributes | |
const XsSize | m_cols |
Number of columns in the matrix. More... | |
XSCPPPROTECTED XsReal *const | m_data |
Contained data. More... | |
const XsSize | m_flags |
Flags for data management. More... | |
const XsSize | m_rows |
Number of rows in the matrix. More... | |
const XsSize | m_stride |
Number of items per row in memory (usually equal to cols but not always) More... | |
Related Functions | |
(Note that these are not member functions.) | |
void | XsMatrix_assign (XsMatrix *thisPtr, XsSize rows, XsSize cols, XsSize stride, const XsReal *src, XsSize srcStride) |
Init the XsMatrix and copy the data from src into the matrix if src is not null. More... | |
void | XsMatrix_construct (XsMatrix *thisPtr, XsSize rows, XsSize cols, XsSize stride, const XsReal *src, XsSize srcStride) |
Init the XsMatrix and copy the data from src into the matrix if src is not null. More... | |
void | XsMatrix_copy (XsMatrix *copy, XsMatrix const *src) |
Copy the contents of copy to the XsMatrix. More... | |
void | XsMatrix_destruct (XsMatrix *thisPtr) |
Clear the XsMatrix and release allocated resources. More... | |
int | XsMatrix_dimensionsMatch (const XsMatrix *thisPtr, XsSize rows, XsSize columns) |
Returns not zero if the dimensions of the XsMatrix are equal to rows and columns. More... | |
int | XsMatrix_empty (const XsMatrix *thisPtr) |
Returns not zero if the matrix contains no values. More... | |
void | XsMatrix_fromQuaternion (XsMatrix *thisPtr, const XsQuaternion *quat) |
Get an orientation matrix representation of the quaternion. More... | |
void | XsMatrix_multiplyScalar (const XsMatrix *thisPtr, XsReal scalar, XsMatrix *dest) |
Multiplies all values in this XsMatrix by scalar. More... | |
XsSize | XsMatrix_offset (const XsMatrix *thisPtr, XsSize row, XsSize column) |
Returns the offset in the data for accessing the value at row and column. More... | |
void | XsMatrix_ref (XsMatrix *thisPtr, XsSize rows, XsSize cols, XsSize stride, XsReal *buffer, XsDataFlags flags) |
Construct the XsMatrix as a reference to data in buffer. More... | |
void | XsMatrix_setValue (XsMatrix *thisPtr, XsSize row, XsSize column, XsReal value) |
Sets the data value at row and column. More... | |
void | XsMatrix_setZero (XsMatrix *thisPtr) |
Set all the values in the matrix to zero. More... | |
void | XsMatrix_swap (XsMatrix *a, XsMatrix *b) |
Swap the contents of a and b. More... | |
XsReal | XsMatrix_value (const XsMatrix *thisPtr, XsSize row, XsSize column) |
Returns the data value at row and column. More... | |
A class that represents a matrix of real numbers.
Definition at line 107 of file xsmatrix.h.
const XsSize XsMatrix::m_cols |
Number of columns in the matrix.
Definition at line 112 of file xsmatrix.h.
XSCPPPROTECTED XsReal* const XsMatrix::m_data |
Contained data.
Definition at line 110 of file xsmatrix.h.
const XsSize XsMatrix::m_flags |
Flags for data management.
Definition at line 114 of file xsmatrix.h.
const XsSize XsMatrix::m_rows |
Number of rows in the matrix.
Definition at line 111 of file xsmatrix.h.
const XsSize XsMatrix::m_stride |
Number of items per row in memory (usually equal to cols but not always)
Definition at line 113 of file xsmatrix.h.