Package org.apache.sysds.runtime.data
Class DataTensorBlock
- java.lang.Object
- 
- org.apache.sysds.runtime.data.DataTensorBlock
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class DataTensorBlock extends Object implements Serializable - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DataTensorBlock()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)DataTensorBlock(BasicTensorBlock that)DataTensorBlock(DataTensorBlock that)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTensorBlockallocateBlock()voidcopy(int[] lower, int[] upper, DataTensorBlock src)Copy a part of anotherDataTensorBlockvoidcopy(DataTensorBlock that)Objectget(int[] ix)doubleget(int r, int c)Types.ValueTypegetColValueType(int col)intgetDim(int i)int[]getDims()longgetNonZeros()intgetNumColumns()intgetNumDims()intgetNumRows()Types.ValueType[]getSchema()booleanisAllocated()booleanisEmpty(boolean safe)voidreset()voidreset(int[] dims)voidreset(int[] dims, Types.ValueType[] schema)voidset(int[] ix, Object v)voidset(int r, int c, double v)voidset(Object v)
 
- 
- 
- 
Constructor Detail- 
DataTensorBlockpublic DataTensorBlock() 
 - 
DataTensorBlockpublic DataTensorBlock(int ncols, Types.ValueType vt)
 - 
DataTensorBlockpublic DataTensorBlock(Types.ValueType[] schema) 
 - 
DataTensorBlockpublic DataTensorBlock(Types.ValueType[] schema, int[] dims) 
 - 
DataTensorBlockpublic DataTensorBlock(Types.ValueType vt, int[] dims) 
 - 
DataTensorBlockpublic DataTensorBlock(Types.ValueType[] schema, int[] dims, String[][] data) 
 - 
DataTensorBlockpublic DataTensorBlock(double val) 
 - 
DataTensorBlockpublic DataTensorBlock(DataTensorBlock that) 
 - 
DataTensorBlockpublic DataTensorBlock(BasicTensorBlock that) 
 
- 
 - 
Method Detail- 
resetpublic void reset() 
 - 
resetpublic void reset(int[] dims) 
 - 
resetpublic void reset(int[] dims, Types.ValueType[] schema)
 - 
allocateBlockpublic DataTensorBlock allocateBlock() 
 - 
isAllocatedpublic boolean isAllocated() 
 - 
isEmptypublic boolean isEmpty(boolean safe) 
 - 
getNonZerospublic long getNonZeros() 
 - 
getNumRowspublic int getNumRows() 
 - 
getNumColumnspublic int getNumColumns() 
 - 
getNumDimspublic int getNumDims() 
 - 
getDimpublic int getDim(int i) 
 - 
getDimspublic int[] getDims() 
 - 
getSchemapublic Types.ValueType[] getSchema() 
 - 
getColValueTypepublic Types.ValueType getColValueType(int col) 
 - 
getpublic Object get(int[] ix) 
 - 
getpublic double get(int r, int c)
 - 
setpublic void set(Object v) 
 - 
setpublic void set(int[] ix, Object v)
 - 
setpublic void set(int r, int c, double v)
 - 
copypublic void copy(DataTensorBlock that) 
 - 
copypublic void copy(int[] lower, int[] upper, DataTensorBlock src)Copy a part of anotherDataTensorBlock- Parameters:
- lower- lower index of elements to copy (inclusive)
- upper- upper index of elements to copy (exclusive)
- src- source- DataTensorBlock
 
 
- 
 
-