Package cc.redberry.core.context

Examples of cc.redberry.core.context.NameAndStructureOfIndices


    /**
     * @return {@link NameAndStructureOfIndices}
     */
    public NameAndStructureOfIndices getIndicesTypeStructureAndName() {
        return new NameAndStructureOfIndices(name, new StructureOfIndices[]{new StructureOfIndices(indices)});
    }
View Full Code Here


    /**
     * @return {@link NameAndStructureOfIndices}
     */
    public NameAndStructureOfIndices getIndicesTypeStructureAndName() {
        return new NameAndStructureOfIndices(name, new StructureOfIndices[]{new StructureOfIndices(indices)});
    }
View Full Code Here

    public void addInsertionRule(SimpleTensor tensor, IndexType omittedIndexType) {
        addInsertionRule(CC.getNameDescriptor(tensor.getName()), omittedIndexType);
    }

    public void addInsertionRule(NameDescriptor nd, IndexType omittedIndexType) {
        NameAndStructureOfIndices originalStructureAndName = NameDescriptor.extractKey(nd);
        StructureOfIndices structure = nd.getStructureOfIndices();

        if (structure.getTypeData(omittedIndexType.getType()).length == 0)
            throw new IllegalArgumentException("No indices of specified type in tensor.");
View Full Code Here

                        states[toOmit[i].getType()] = states[toOmit[i].getType()] == null ?
                                null : BitArray.EMPTY;
                    }
                StructureOfIndices[] structures = originalStructureAndName.getStructure().clone();
                structures[0] = new StructureOfIndices(allCounts, states);
                keys[omitted - 1] = new NameAndStructureOfIndices(originalStructureAndName.getName(),
                        structures);
            }
            return keys;
        }
View Full Code Here

        for (int i = 0; i < argumentsIndices.length; ++i) {
            if (argumentsIndices[i] == null)
                argumentsIndices[i] = IndicesFactory.createSimple(null, content[i].getIndices().getFree());
            typeStructures[i + 1] = new StructureOfIndices(argumentsIndices[i]);
        }
        return new NameAndStructureOfIndices(name, typeStructures);
    }
View Full Code Here

        for (int i = 0; i < argumentsIndices.length; ++i) {
            if (argumentsIndices[i] == null)
                argumentsIndices[i] = IndicesFactory.createSimple(null, content[i].getIndices().getFree());
            typeStructures[i + 1] = StructureOfIndices.create(argumentsIndices[i]);
        }
        return new NameAndStructureOfIndices(name, typeStructures);
    }
View Full Code Here

    /**
     * @return {@link NameAndStructureOfIndices}
     */
    public NameAndStructureOfIndices getIndicesTypeStructureAndName() {
        return new NameAndStructureOfIndices(name, new StructureOfIndices[]{StructureOfIndices.create(indices)});
    }
View Full Code Here

    public void addInsertionRule(SimpleTensor tensor, IndexType omittedIndexType) {
        addInsertionRule(CC.getNameDescriptor(tensor.getName()), omittedIndexType);
    }

    public void addInsertionRule(NameDescriptor nd, IndexType omittedIndexType) {
        NameAndStructureOfIndices originalStructureAndName = NameDescriptor.extractKey(nd);
        StructureOfIndices structure = nd.getStructureOfIndices();

        if (structure.getTypeData(omittedIndexType.getType()).length == 0)
            throw new IllegalArgumentException("No indices of specified type in tensor.");
View Full Code Here

                        states[toOmit[i].getType()] = states[toOmit[i].getType()] == null ?
                                null : BitArray.EMPTY;
                    }
                StructureOfIndices[] structures = originalStructureAndName.getStructure().clone();
                structures[0] = StructureOfIndices.create(allCounts, states);
                keys[omitted - 1] = new NameAndStructureOfIndices(originalStructureAndName.getName(),
                        structures);
            }
            return keys;
        }
View Full Code Here

    public void addInsertionRule(SimpleTensor tensor, IndexType omittedIndexType) {
        addInsertionRule(CC.getNameDescriptor(tensor.getName()), omittedIndexType);
    }

    public void addInsertionRule(NameDescriptor nd, IndexType omittedIndexType) {
        NameAndStructureOfIndices originalStructureAndName = NameDescriptor.extractKey(nd);
        StructureOfIndices structure = nd.getStructureOfIndices();

        if (structure.getTypeData(omittedIndexType.getType()).length == 0)
            throw new IllegalArgumentException("No indices of specified type in tensor.");
View Full Code Here

TOP

Related Classes of cc.redberry.core.context.NameAndStructureOfIndices

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.