文件名称:CPP
介绍说明--下载内容来自于网络,使用问题请自行百度
完成稀疏矩阵的各种运算;加法:可以完成加法的情况下分别对每行处理,如果非零员的列标小则在插入之,相同则完成加法运算,如果结果非零则插入。否则继续下一个飞灵员的处理。最后把没有处理的全部插入。
减法:可以完成减法的情况下,把非零员都变反,再调用加法运算。
乘法,在可以进行乘法的情况下,分别对每行处理:列如:如果M的第一行的第一个和最后一个非零,则把第一个和最后一个分别和N的第一行和最后一行的非零员相乘。得到的结果保存在相应的位置上,再处理下行。把结果在相同位置上的相加。最后用稀疏矩阵的存储方法保存非零员。-Finish all kinds of sparse matrix calculations Add: can complete the addition to deal with each row respectively, if nonzero member of the listed standard is in the small, the same is complete the operation of addition, if the result is not zero inserted. Otherwise continue to the next FeiLing member of the processing. Finally the not dealing with all of the insert.
Subtraction: can complete the subtraction, the zero members all change the, again call operation addition.
Multiplication, in can under the condition of multiples respectively, the each line processing: a column such as: if M in the first line of the first and last a nonzero, the first and the last, and N respectively in the first line and the last line of non-zero member multiplication. The results obtained by the position of the corresponding kept in, to deal with to the downside. The results in the same position on ?
减法:可以完成减法的情况下,把非零员都变反,再调用加法运算。
乘法,在可以进行乘法的情况下,分别对每行处理:列如:如果M的第一行的第一个和最后一个非零,则把第一个和最后一个分别和N的第一行和最后一行的非零员相乘。得到的结果保存在相应的位置上,再处理下行。把结果在相同位置上的相加。最后用稀疏矩阵的存储方法保存非零员。-Finish all kinds of sparse matrix calculations Add: can complete the addition to deal with each row respectively, if nonzero member of the listed standard is in the small, the same is complete the operation of addition, if the result is not zero inserted. Otherwise continue to the next FeiLing member of the processing. Finally the not dealing with all of the insert.
Subtraction: can complete the subtraction, the zero members all change the, again call operation addition.
Multiplication, in can under the condition of multiples respectively, the each line processing: a column such as: if M in the first line of the first and last a nonzero, the first and the last, and N respectively in the first line and the last line of non-zero member multiplication. The results obtained by the position of the corresponding kept in, to deal with to the downside. The results in the same position on ?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
CPP.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.