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

Examples of net.fec.openrq.util.linearalgebra.vector.dense.BasicByteVector


    }

    @Override
    public ByteVector createVector(ByteVector vector) {

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


    }

    @Override
    public ByteVector createVector(VectorSource source) {

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

    public ByteVector createConstantVector(int length, byte value) {

        byte array[] = new byte[length];
        Arrays.fill(array, value);

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

        byte array[] = new byte[length];
        for (int i = 0; i < length; i++) {
            array[i] = (byte)random.nextInt();
        }

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

        final byte[] array = new byte[length];
        for (int i = 0; i < length; i++) {
            array[i] = Serialization.readVectorValue(buffer);
        }

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

        final byte[] array = new byte[length];
        for (int i = 0; i < length; i++) {
            array[i] = Serialization.readVectorValue(ch);
        }

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

TOP

Related Classes of net.fec.openrq.util.linearalgebra.vector.dense.BasicByteVector

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.