http://goog-sparsehash.sourceforge.net/
An extremely memory-efficient hash_map implementation, with only 2 bits/entry overhead.
<!-- And divide remainder of this column into two sub-columns -->
<!-- First subcolumn -->
We've Moved!
Google SparseHash is now hosted at code.google.com. Our new homepage is located at http://code.google.com/p/google-sparsehash.
Overview
The Google SparseHash project contains several hash-map implementations in use at Google, with different performance characteristics, including an implementation that optimizes for space and one that optimizes for speed.
SparseHash is a template library; there are no binaries to install.
SparseHash is distributed under the terms of the BSD License.
For downloads, news, and other information, visit our Project Page
Example
<note>This is by no means a complete example; it simply gives you a feel for what the Sparsehash API looks like.</note><xmp> #include <iostream>
#include <google>
struct eqstr
{
bool operator()(const char* s1, const char* s2) const
{
return (s1 == s2) || (s1 && s2 && strcmp(s1, s2) == 0);
}
};
int main()
{
google::sparse_hash_map<const char int hash>, eqstr> months;
months.set_deleted_key(NULL);
months["january"] = 31;
months["february"] = 28;
months["march"] = 31;
months["april"] = 30;
months["may"] = 31;
months["june"] = 30;
months["july"] = 31;
months["august"] = 31;
months["september"] = 30;
months["october"] = 31;
months["november"] = 30;
months["december"] = 31;
std::cout " " " " </const></google></iostream></xmp> |
分享到:
相关推荐
一种非常节省内存的hash_map实现。 2位/条目开销! SparseHash库包含多个哈希映射实现,包括针对空间或速度进行优化的实现。
Sparse subspace clustering_ algorithm, theory, and applications文章的源代码。
From Sparse Solutions of Systems of Equations to Sparse Modeling of Signals and Images
Sparse and Redundant Representations
Compressed-Sensing is a recent branch that separated from sparse and redundant representations, becoming a center of interest of its own. Exploiting sparse representation of signals, their sampling ...
sparse-map一个高效hash map和hash set的C 实现
机器学习中稀疏编码sparse coding的HIHT,希望对大家有用
Peter Knee-Sparse Representations for Radar with MATLAB Examples
The monitored vibration signal of bearing...sparse discriminant manifold projections (SDMP). The SDMP was developed based on sparsity preserving projections, and sparse manifold clustering and embedding.
Sparse_subspace_clustering算法代码
SBA: A Software Package for Generic Sparse Bundle Adjustment SBA: A Software Package for Generic Sparse Bundle Adjustment SBA: A Software Package for Generic Sparse Bundle Adjustment SBA: A Software ...
LeCun大牛的sparse code C++代码,参考的NG的课件实现的,需要armadillo矩阵工具包进行矩阵运算
关于Relu文章的理解翻译,原文见paper:Deep Sparse Rectifier Neural Networks
资源来自pypi官网。 资源全名:torch_sparse-0.6.12.tar.gz
We also obtain improved algorithms for the multiplication of more than two sparse matrices. As the known fast rectangular matrix multiplication algorithms are far from being practical, our result, at...
这是一个压缩传感方面的Gradient Projection for Sparse Reconstruction 工具包。
CVPR-2009-Sparse Subspace Clustering.pdf
sparse principal component analysis.pdfsparse principal component analysis.pdfsparse principal component analysis.pdfsparse principal component analysis.pdfsparse principal component analysis....
使用凸优化方法来优化一维周期以及随机稀疏线阵