You may download the matrix C++ class library free of cost from the link below. You may use it for both educational and commercial projects. Please read the license agreement for details.