Package cc.redberry.core.tensor

Examples of cc.redberry.core.tensor.FullContractionsStructure


public class ContractionsGraphDrawer {
    public static final String BIN_DIR = "/usr/bin/";

    public static String draw(Product product, ToStringMode mode) {
        int i;
        FullContractionsStructure fcs = product.getContent().getFullContractionStructure();
        Tensor[] data = product.getContent().getDataCopy();
        long[][] contractions = fcs.contractions;

        //Same algorithm as used now in ProductsBijectionPort
        Set<Integer> seeds = new HashSet<>();
View Full Code Here


        result.setParent(parent);
        return result;
    }

    private void go(ProductContent productContent) {
        FullContractionsStructure productContructions = productContent.getFullContractionStructure();
        final Tensor[] productData = productContent.getDataCopy();
        int seed = seeds[0];
        Tensor headFrom = data[seed];
        long[] contractions = fromContractions.contractions[seed];
View Full Code Here

        return draw(product, mode, true);
    }

    public static String draw(Product product, ToStringMode mode, boolean numbers) {
        int i;
        FullContractionsStructure fcs = product.getContent().getFullContractionStructure();
        Tensor[] data = product.getContent().getDataCopy();
        long[][] contractions = fcs.contractions;

        //Same algorithm as used now in ProductsBijectionPort
        Set<Integer> seeds = new HashSet<>();
View Full Code Here

TOP

Related Classes of cc.redberry.core.tensor.FullContractionsStructure

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.