Package cc.redberry.core.tensor.random

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


public class ProductBijectionPerformanceTest {

    public static void main(String[] args) {
        int badCounter = 0;
//        CC.resetTensorNames(-3912578993076521674L);
        TRandom rp = new TRandom(
                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        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 < 500) {
//            CC.resetTensorNames();
            Tensor t = rp.nextProduct(15);
            if (!(t instanceof Product))
                continue;

            Product from = (Product) t, target = from;
View Full Code Here


*/
public class ProductBijectionPerformanceTest {
    public static void main(String[] args) {
        int badCounter = 0;
        CC.getNameManager().reset(-3912578993076521674L);
        TRandom rp = new TRandom(
                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        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 < 500) {
            CC.resetTensorNames();
            Product from = rp.nextProduct(15);
            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);
        TRandom rp = new TRandom(
                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());

//        Product t = rp.nextPermutation();
//        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.nextProduct(15);
            Product target = from.clone();

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

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        CC.getNameManager().reset(-3912578993076521674L);
        TRandom rp = new TRandom(
                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        rp.reset(-3806751651286565680L);
        System.out.println("Random Seed = " + rp.getSeed());
        System.out.println("NM Seed = " + CC.getNameManager().getSeed());

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


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

//            if (from.getContent().getFullContractionStructure().componentCount != 1) {
//                System.out.println(from.getContent().getFullContractionStructure().componentCount);
//                continue;
View Full Code Here

*/
public class ProductBijectionMappingPerformanceTest {
    public static void main(String[] args) {
        int badCounter = 0;
        CC.getNameManager().reset(-3912578993076521674L);
        TRandom rp = new TRandom(
                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        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 < 500) {
            CC.resetTensorNames();
            Product from = rp.nextProduct(15);
            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

public class ProductBijectionPerformanceTest {

    public static void main(String[] args) {
        int badCounter = 0;
//        CC.resetTensorNames(-3912578993076521674L);
        TRandom rp = new TRandom(
                4,
                10,
                new int[]{4, 0, 0, 0},
                new int[]{10, 0, 0, 0},
                false);
        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 < 500) {
//            CC.resetTensorNames();
            Tensor t = rp.nextProduct(15);
            if (!(t instanceof Product))
                continue;

            Product from = (Product) t, target = from;
View Full Code Here

TOP

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

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.