44454647484950
* 内部为向量表示 */ public TLongFloatHashMap vector = null; public SparseMatrix(){ vector = new TLongFloatHashMap(100,0.8f); }
129130131132133134135136
} public SparseMatrix clone(){ SparseMatrix mat = new SparseMatrix(); mat.dim = this.dim; mat.vector = new TLongFloatHashMap(vector); return mat; }
29303132333435
*/ public class TIntPairFloatHashMap { private TLongFloatHashMap map; public TIntPairFloatHashMap() { map = new TLongFloatHashMap(100); }
33343536373839
public TIntPairFloatHashMap() { map = new TLongFloatHashMap(100); } public TIntPairFloatHashMap(int capacity) { map = new TLongFloatHashMap(capacity); }