- 博客(3)
- 收藏
- 关注
原创 C++ 中的unordered_map
一、hash_map、unordered_map内部结构:都是采用哈希表实现的。区别:由于在C标准库中没有定义散列表,标准库的实现提供了一个名为hash_map的非标准散列表。而从C++11开始,哈希表已经添加到C标准库中,决定对类使用备用名称unorder_map。unordered_map使用#include <unordered_map>//取得键和值:unordered_map<int, int> hash;unordered_map<Key,
2021-04-06 20:46:44 2152
原创 Matlab实现赛德尔(Seidel)迭代
A=[1,0.4,0.4;0.4,1,0.8;0.4,0.8,1];b=[1;2;3];n=length(b);N=100;ep=1e-6;x0=zeros(n,1);x=zeros(n,1);k=0;Result=[];while k<N for i=1:n if i==1 x(1)=(b(1)-A(1,2:n)*x...
2020-03-08 13:51:41 704
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人