40 #include "SkelCL/Matrix.h"
47 : _rowCount(rowCount), _columnCount(columnCount)
53 return (_rowCount *_columnCount);
68 return ( (_rowCount == rhs._rowCount)
69 && (_columnCount == rhs._columnCount) );
79 if (_columnCount == rhs._columnCount) {
80 if (_rowCount > rhs._rowCount)
82 }
else if (_columnCount > rhs._columnCount) {
83 if (_rowCount >= rhs._rowCount)
92 if (_columnCount == rhs._columnCount) {
93 if (_rowCount < rhs._rowCount)
95 }
else if (_columnCount < rhs._columnCount) {
96 if (_rowCount <= rhs._rowCount)
105 if (_columnCount == rhs._columnCount) {
106 if (_rowCount >= rhs._rowCount)
108 }
else if (_columnCount > rhs._columnCount) {
109 if (_rowCount >= rhs._rowCount)
118 if (_columnCount == rhs._columnCount) {
119 if (_rowCount <= rhs._rowCount)
121 }
else if (_columnCount < rhs._columnCount) {
122 if (_rowCount <= rhs._rowCount)
size_type elemCount() const
Returns the total number of elements. I.e. rowCount() * columnCount().
bool operator<=(const MatrixSize &rhs) const
Compares if this is less than rhs.
bool operator>=(const MatrixSize &rhs) const
Compares if this is greater than rhs.
This class defines a two dimensional size for a Matrix.
size_type rowCount() const
Returns the number of rows.
bool operator>(const MatrixSize &rhs) const
Compares if this is greater than rhs.
MatrixSize(size_type rowCount, size_type columnCount)
Create a new MatrixSize object with the given number of rows and number of columns.
size_type columnCount() const
Returns the number of columns.
bool operator==(const MatrixSize &rhs) const
Compares two MatrixSizes for equality.
bool operator!=(const MatrixSize &rhs) const
Compares two MatrixSizes for inequality.
bool operator<(const MatrixSize &rhs) const
Compares if this is less than rhs.