|
| | Matrix (int dim) |
| | Constructs a dim X dim Matrix object, initializing elements on the diagonal to 1 and all others to 0.
|
| |
| const float * | operator[] (int index) const |
| | Returns a constant pointer to the first element in the column of index of this matrix, providing a read-only access.
|
| |
| float * | operator[] (int index) |
| | Returns a pointer to the first element in the column of index of this matrix, providing a read-write access.
|
| |
| Matrix & | operator+= (const Matrix &other) |
| | Performs element-wise addition between the current Matrix and another matrix.
|
| |
| Matrix< S > & | operator-= (const Matrix &other) |
| | Performs element-wise subtraction between the current Matrix and another matrix.
|
| |
| Matrix< S > & | operator*= (const Matrix &other) |
| | Performs right matrix multiplication of the current matrix with another matrix.
|
| |
| S | operator+ (const S &other) const |
| | Returns a new Matrix object that is formed by element-wise addition between the current matrix and another matrix.
|
| |
| S | operator- (const S &other) const |
| | Returns a new Matrix object that is formed by element-wise subtraction between the current matrix and another matrix.
|
| |
| S | operator* (const S &other) const |
| | Returns a new Matrix object that is formed by matrix multiplication between the current Matrix and another matrix.
|
| |
| void | setIdentity () |
| | Sets elements on the diagonal of this matrix to 1 and all others to 0.
|
| |
| void | transpose () |
| | Transpose this matrix.
|
| |
| | Tuple (int size) |
| | Constructs a Tuple object with a specified number of elements, and initialize all elements to 0.
|
| |
| virtual | ~Tuple () |
| |
| int | size () const |
| | Gets the number of elements of the Tuple.
|
| |
| float * | data () |
| | Gets the data array of the Tuple.
|
| |
| const float * | data () const |
| | Gets the data array of the Tuple, and the data could not be modified upon which this function is called.
|
| |
| void | setData (const float *data) |
| | Sets the data array of the Variant.
|
| |
| Tuple< float > & | operator= (const Tuple &other) |
| | Copys the data of another Tuple to the one on which the operator is invoked.
|
| |
| bool | operator== (const Tuple &other) const |
| | Compares the Tuple with another one, and returns true if they are equal, otherwise returns false.
|
| |
| bool | operator!= (const Tuple &other) const |
| | Compares the Tuple with another one, and returns false if they are equal, otherwise returns true.
|
| |
| | Variant () |
| |
| virtual | ~Variant () |
| |
| const std::string & | type () const |
| |
template<typename S>
class cil::Matrix< S >
The templated class Matrix inherits from the templated class Tuple which is being instantiated with a specified data type of float.
The elements of the matrix are stored in the shape of the tuple using column-major ordering.