Package net.fec.openrq.util.linearalgebra.vector.sparse

Examples of net.fec.openrq.util.linearalgebra.vector.sparse.CompressedByteVector


        return new SparseVectors($vectors, empty);
    }

    void initializeVector(int index, VectorSource source) {

        vectors[index] = new CompressedByteVector(source);
    }
View Full Code Here


        ArrayUtils.swapObjects(vectors, i, j);
    }

    private ByteVector initCompressedVector() {

        return new CompressedByteVector(empty.length());
    }
View Full Code Here

        return new CompressedByteVector(empty.length());
    }

    private ByteVector initCompressedVector(byte[] values, int[] indices, int cardinality) {

        return new CompressedByteVector(empty.length(), cardinality, values, indices);
    }
View Full Code Here


    @Override
    public ByteVector createVector() {

        return new CompressedByteVector();
    }
View Full Code Here

    }

    @Override
    public ByteVector createVector(int length) {

        return new CompressedByteVector(length);
    }
View Full Code Here

    }

    @Override
    public ByteVector createVector(byte[] array) {

        return new CompressedByteVector(array);
    }
View Full Code Here

    }

    @Override
    public ByteVector createVector(ByteVector vector) {

        return new CompressedByteVector(vector);
    }
View Full Code Here

    }

    @Override
    public ByteVector createVector(VectorSource source) {

        return new CompressedByteVector(source);
    }
View Full Code Here

        for (int i = 0; i < length; i++) {
            indices[i] = i;
            values[i] = value;
        }

        return new CompressedByteVector(length, length, values, indices);
    }
View Full Code Here

            indices[i] = random.nextInt(length);
        }

        Arrays.sort(indices);

        return new CompressedByteVector(length, cardinality, values, indices);
    }
View Full Code Here

TOP

Related Classes of net.fec.openrq.util.linearalgebra.vector.sparse.CompressedByteVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.