本文整理汇总了Java中water.util.UnsafeUtils.get8d方法的典型用法代码示例。如果您正苦于以下问题:Java UnsafeUtils.get8d方法的具体用法?Java UnsafeUtils.get8d怎么用?Java UnsafeUtils.get8d使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类water.util.UnsafeUtils
的用法示例。
在下文中一共展示了UnsafeUtils.get8d方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read_impl
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override public C2SChunk read_impl(AutoBuffer bb) {
_mem = bb.bufClose();
_start = -1; _cidx = -1;
set_len((_mem.length-_OFF)>>1);
_scale= UnsafeUtils.get8d(_mem,0);
_bias = UnsafeUtils.get8 (_mem,8);
return this;
}
示例2: read_impl
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override public C1SChunk read_impl(AutoBuffer bb) {
_mem = bb.bufClose();
_start = -1; _cidx = -1;
set_len(_mem.length-_OFF);
_scale= UnsafeUtils.get8d(_mem,0);
_bias = UnsafeUtils.get8 (_mem,8);
return this;
}
示例3: read_impl
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override public C4SChunk read_impl(AutoBuffer bb) {
_mem = bb.bufClose();
_start = -1; _cidx = -1;
set_len((_mem.length-_OFF)>>2);
_scale= UnsafeUtils.get8d(_mem,0);
_bias = UnsafeUtils.get8 (_mem,8);
return this;
}
示例4: read_impl
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override final public C0DChunk read_impl(AutoBuffer ab) {
_mem = ab.bufClose();
_start = -1; _cidx = -1;
_con = UnsafeUtils.get8d(_mem,0);
set_len(UnsafeUtils.get4(_mem,8));
return this;
}
示例5: inflate_impl
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override public NewChunk inflate_impl(NewChunk nc) {
//nothing to inflate - just copy
nc.alloc_doubles(_len);
for( int i=0; i< _len; i++ )
nc.doubles()[i] = UnsafeUtils.get8d(_mem,(i<<3));
nc.set_sparseLen(nc.set_len(_len));
return nc;
}
示例6: initFromBytes
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override public final void initFromBytes () {
_len = _mem.length >> 3;
_ds = MemoryManager.malloc8d(_len);
for(int i = 0; i < _ds.length; ++i)
_ds[i] = UnsafeUtils.get8d(_mem,8*i);
_mem = null;
}
示例7: getVal
import water.util.UnsafeUtils; //导入方法依赖的package包/类
private double getVal(int x){
switch(_elem_sz) {
case 8: return UnsafeUtils.get4f(_mem, x + 4);
case 12: return UnsafeUtils.get8d(_mem, x + 4);
default: throw H2O.unimpl();
}
}
示例8: getDoubles
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override public double [] getDoubles(double [] vals, int from, int to, double NA){
for(int i = from; i < to; i++) {
double d = UnsafeUtils.get8d(_mem, 8 * i);
vals[i - from] = Double.isNaN(d)?NA:d;
}
return vals;
}
示例9: getFValue
import water.util.UnsafeUtils; //导入方法依赖的package包/类
protected final double getFValue(int off){
if(valsz() == 8) return UnsafeUtils.get8d(_mem, off + ridsz());
throw H2O.fail();
}
示例10: at8_impl
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override protected final long at8_impl( int i ) {
double res = UnsafeUtils.get8d(_mem, i << 3);
if( Double.isNaN(res) ) throw new IllegalArgumentException("at8_abs but value is missing");
return (long)res;
}
示例11: initFromBytes
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override final public void initFromBytes() {
_start = -1; _cidx = -1;
_con = UnsafeUtils.get8d(_mem,0);
set_len(UnsafeUtils.get4(_mem,8));
}
示例12: atd_impl
import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override protected final double atd_impl( int i ) { return UnsafeUtils.get8d(_mem,i<<3) ; }
示例13: get8D
import water.util.UnsafeUtils; //导入方法依赖的package包/类
public double get8D(int i) {return UnsafeUtils.get8d(_mem,i<<3);}