基于面向对象技术定义了矩阵和矢量两种模板类,利用运算符重载实现了矩阵,矢量和数之间的常规运算,对于具有不同特性的矩阵,采用了节省的贮存方式,并实现了不同贮存方式下矩阵相互之间的计算,表明所建立的模板类具有通用性,所开发的代码可重复利用率高,而且易于维护和扩充。
Matrix and vector template classes are defined based upon object oriented technology(OOT).The conventional computation among matrix,vector and number is realized by overriding operators.According to the property of matrix,the scanty reserve way of object