public class DataTensorBlock extends Object implements Serializable
| Constructor and Description |
|---|
DataTensorBlock() |
DataTensorBlock(BasicTensorBlock that) |
DataTensorBlock(DataTensorBlock that) |
DataTensorBlock(double val) |
DataTensorBlock(int ncols,
Types.ValueType vt) |
DataTensorBlock(Types.ValueType[] schema) |
DataTensorBlock(Types.ValueType[] schema,
int[] dims) |
DataTensorBlock(Types.ValueType[] schema,
int[] dims,
String[][] data) |
DataTensorBlock(Types.ValueType vt,
int[] dims) |
| Modifier and Type | Method and Description |
|---|---|
DataTensorBlock |
allocateBlock() |
void |
copy(DataTensorBlock that) |
void |
copy(int[] lower,
int[] upper,
DataTensorBlock src)
Copy a part of another
DataTensorBlock |
Object |
get(int[] ix) |
double |
get(int r,
int c) |
Types.ValueType |
getColValueType(int col) |
int |
getDim(int i) |
int[] |
getDims() |
long |
getNonZeros() |
int |
getNumColumns() |
int |
getNumDims() |
int |
getNumRows() |
Types.ValueType[] |
getSchema() |
boolean |
isAllocated() |
boolean |
isEmpty(boolean safe) |
void |
reset() |
void |
reset(int[] dims) |
void |
reset(int[] dims,
Types.ValueType[] schema) |
void |
set(int[] ix,
Object v) |
void |
set(int r,
int c,
double v) |
void |
set(Object v) |
public DataTensorBlock()
public DataTensorBlock(int ncols,
Types.ValueType vt)
public DataTensorBlock(Types.ValueType[] schema)
public DataTensorBlock(Types.ValueType[] schema, int[] dims)
public DataTensorBlock(Types.ValueType vt, int[] dims)
public DataTensorBlock(Types.ValueType[] schema, int[] dims, String[][] data)
public DataTensorBlock(double val)
public DataTensorBlock(DataTensorBlock that)
public DataTensorBlock(BasicTensorBlock that)
public void reset()
public void reset(int[] dims)
public void reset(int[] dims,
Types.ValueType[] schema)
public DataTensorBlock allocateBlock()
public boolean isAllocated()
public boolean isEmpty(boolean safe)
public long getNonZeros()
public int getNumRows()
public int getNumColumns()
public int getNumDims()
public int getDim(int i)
public int[] getDims()
public Types.ValueType[] getSchema()
public Types.ValueType getColValueType(int col)
public Object get(int[] ix)
public double get(int r,
int c)
public void set(Object v)
public void set(int[] ix,
Object v)
public void set(int r,
int c,
double v)
public void copy(DataTensorBlock that)
public void copy(int[] lower,
int[] upper,
DataTensorBlock src)
DataTensorBlocklower - lower index of elements to copy (inclusive)upper - upper index of elements to copy (exclusive)src - source DataTensorBlockCopyright © 2020 The Apache Software Foundation. All rights reserved.