Most programming languages have a built-in implementation of exponentiation for integers and reals only. Demonstrate how to implement matrix expone
Continue ReadingC++: Identity Matrix
Build an identity matrix of a size known at runtime. An identity matrix is a square matrix, of size n × n, where the diagonal elements are all 1s,
Continue ReadingC++: Matrix Transposition
Transpose an arbitrarily sized rectangular Matrix. Library: Boost.uBLAS #include <boost/numeric/ublas/matrix.hpp> #include <boost/nu
Continue ReadingC++: Matrix Multiplication
Multiply two matrices together. They can be of any dimensions, so long as the number of columns of the first matrix is equal to the number of rows of
Continue Reading