当前位置: 首页>>代码示例>>Java>>正文


Java UnsafeUtils.get8d方法代码示例

本文整理汇总了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;
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:9,代码来源:C2SChunk.java

示例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;
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:9,代码来源:C1SChunk.java

示例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;
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:9,代码来源:C4SChunk.java

示例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;
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:8,代码来源:C0DChunk.java

示例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;
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:9,代码来源:C8DChunk.java

示例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;
}
 
开发者ID:h2oai,项目名称:h2o-3,代码行数:8,代码来源:C8DVolatileChunk.java

示例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();
  }
}
 
开发者ID:h2oai,项目名称:h2o-3,代码行数:8,代码来源:CXFChunk.java

示例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;
}
 
开发者ID:h2oai,项目名称:h2o-3,代码行数:8,代码来源:C8DChunk.java

示例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();
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:5,代码来源:CXDChunk.java

示例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;
}
 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:6,代码来源:C8DChunk.java

示例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));
}
 
开发者ID:h2oai,项目名称:h2o-3,代码行数:6,代码来源:C0DChunk.java

示例12: atd_impl

import water.util.UnsafeUtils; //导入方法依赖的package包/类
@Override protected final double   atd_impl( int i ) { return              UnsafeUtils.get8d(_mem,i<<3) ; } 
开发者ID:kyoren,项目名称:https-github.com-h2oai-h2o-3,代码行数:2,代码来源:C8DChunk.java

示例13: get8D

import water.util.UnsafeUtils; //导入方法依赖的package包/类
public double get8D(int i) {return UnsafeUtils.get8d(_mem,i<<3);} 
开发者ID:h2oai,项目名称:h2o-3,代码行数:2,代码来源:C8DChunk.java


注:本文中的water.util.UnsafeUtils.get8d方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。