protected static DataBuffer createSparseInformationBuffer(int rank){
        int[] flags = new int[rank];
        long[] sparseOffsets = new long[rank];
        int[] hiddenDimension = new int[] {-1};
        return Nd4j.getSparseInfoProvider().createSparseInformation(flags, sparseOffsets,
                hiddenDimension, rank);
    }
protected static DataBuffer createSparseInformationBuffer ( int rank ) { int [ ] flags = new int [ rank ] ; long [ ] sparseOffsets = new long [ rank ] ; int [ ] hiddenDimension = new int [ ] { - 1 } ; return Nd4j . getSparseInfoProvider ( ) . createSparseInformation ( flags , sparseOffsets , hiddenDimension , rank ) ; }
Create a SparseInfo databuffer given rank if of the sparse matrix.
@param rank
@return