Package cc.redberry.core.tensor.random

Examples of cc.redberry.core.tensor.random.RandomProduct


*/
public class ProductBijectionPerformanceTest {
    public static void main(String[] args) {
        int badCounter = 0;
        CC.getNameManager().reset(-3912578993076521674L);
        RandomProduct rp = new RandomProduct(80, 4,
                new int[]{5, 0, 0, 0}, //Min Free Indices
                new int[]{10, 0, 0, 0}, //Indices count
                new int[]{7, 0, 0, 0}, //Max INdex Per Tensor
                20, 2, true);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());
        DescriptiveStatistics timeStats = new DescriptiveStatistics();
        DescriptiveStatistics trysStats = new DescriptiveStatistics();
        int count = 0;
        while (++count < 5000) {
            CC.resetTensorNames();
            Product from = rp.next();
            Product target = from.clone();

            long start = System.nanoTime();
            ProductsBijectionsPort port = new ProductsBijectionsPort(from.getContent(), target.getContent());

View Full Code Here


//                new int[]{180, 0, 0, 0}, //Indices count
//                new int[]{4, 0, 0, 0}, //Max INdex Per Tensor
//                170, 2, true);
//        rp.reset(-3806751651286565680L);
        CC.getNameManager().reset(-3912578993076521674L);
        RandomProduct rp = new RandomProduct(10, 4,
                new int[]{10, 0, 0, 0}, //Min Free Indices
                new int[]{180, 0, 0, 0}, //Indices count
                new int[]{4, 0, 0, 0}, //Max INdex Per Tensor
                30, 2, false);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());

//        Product t = rp.next();
//        ContractionsGraphDrawer.drawToPngFile(t, "/home/stas/Projects/Durty/", "Huge1");


        DescriptiveStatistics timeStats = new DescriptiveStatistics();
        DescriptiveStatistics trysStats = new DescriptiveStatistics();
        int count = -1;
        while (++count < 100) {
            CC.resetTensorNames();
            Product from = rp.next();
            Product target = from.clone();

            long start = System.nanoTime();
            Tensor[] dataFrom = from.getContent().getDataCopy();
            Tensor[] dataTarget = target.getContent().getDataCopy();
View Full Code Here

*/
public class ProductBijectionMappingPerformanceTest {
    public static void main(String[] args) {
        int badCounter = 0;
        CC.getNameManager().reset(-3912578993076521674L);
        RandomProduct rp = new RandomProduct(80, 4,
                new int[]{5, 0, 0, 0}, //Min Free Indices
                new int[]{10, 0, 0, 0}, //Indices count
                new int[]{7, 0, 0, 0}, //Max INdex Per Tensor
                20, 2, true);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());
        DescriptiveStatistics timeStats = new DescriptiveStatistics();
        DescriptiveStatistics trysStats = new DescriptiveStatistics();
        int count = 0;
        while (++count < 5000) {
            CC.resetTensorNames();
            Product from = rp.next();
            Product target = from.clone();

            long start = System.nanoTime();
            ProductsBijectionsPort port = new ProductsBijectionsPort(from.getContent(), target.getContent());
            Tensor[] dataFrom = from.getContent().getDataCopy();
View Full Code Here

TOP

Related Classes of cc.redberry.core.tensor.random.RandomProduct

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.