The following unary operators are available for the matrix class objects.
1. matrix<T> operator+ () const;
2. matrix<T> operator- () const;
3. matrix<T> operator~ () const;
4. matrix<T> operator! () const;
typedef techsoft::matrix<double> Matrix;
Matrix A(5,5), B(5,5);
A.rand();
B = +A;
B = -A;
B = ~A; // Returns the transpose of A
B = !A; // Returns the inverse of A