File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed
src/main/java/org/apache/sysds/runtime/compress/colgroup Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change 2424import org .apache .sysds .runtime .matrix .data .MatrixBlock ;
2525
2626/**
27- * Special sideways Compressed column group not supposed to be used outside of the compressed transform encode.
27+ * Special sideways compressed column group not supposed to be used outside of the compressed transform encode.
2828 */
2929public class ColGroupUncompressedArray extends ColGroupUncompressed {
30-
30+
3131 public final Array <?> array ;
3232 public final int id ; // columnID
3333
34- public ColGroupUncompressedArray (Array <?> data , int id , IColIndex colIndexes ){
34+ public ColGroupUncompressedArray (Array <?> data , int id , IColIndex colIndexes ) {
3535 super (null , colIndexes );
3636 this .array = data ;
3737 this .id = id ;
3838 }
3939
40-
41- @ Override
42- public int getNumValues (){
40+ @ Override
41+ public int getNumValues () {
4342 return array .size ();
4443 }
4544
46-
4745 @ Override
48- public long estimateInMemorySize (){
46+ public long estimateInMemorySize () {
4947 // not accurate estimate, but guaranteed larger.
50- return MatrixBlock .estimateSizeInMemory (array .size (),1 , array .size ()) + 80 ;
48+ return MatrixBlock .estimateSizeInMemory (array .size (), 1 , array .size ()) + 80 ;
5149 }
5250
53-
54- @ Override
55- public String toString (){
51+ @ Override
52+ public String toString () {
5653 return "UncompressedArrayGroup: " + id + " " + _colIndexes ;
5754 }
5855
You can’t perform that action at this time.
0 commit comments