Examples of typeCount()


Examples of cc.redberry.core.indices.IndicesTypeStructure.typeCount()

            return new NameDescriptorImpl(sname, indicesTypeStructures, id);
        final IndicesTypeStructure its = indicesTypeStructures[0];
        if (its.size() != 2)
            return new NameDescriptorImpl(sname, indicesTypeStructures, id);
        for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
            if (its.typeCount(b) == 2)
                if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
                    NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                    descriptor.getSymmetries().add(b, false, 1, 0);
                    return descriptor;
                }
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

            return new NameDescriptorImpl(sname, structuresOfIndices, id);
        final StructureOfIndices its = structuresOfIndices[0];
        if (its.size() != 2)
            return new NameDescriptorImpl(sname, structuresOfIndices, id);
        for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
            if (its.typeCount(b) == 2) {
                if (CC.isMetric(b)) {
                    if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

        NameDescriptor descriptor = CC.getNameDescriptor(matrix.getName());
        StructureOfIndices typeStructure = descriptor.getStructureOfIndices();
        byte metricType = -1, matrixType = -1;
        int typeCount;
        for (byte type = 0; type < IndexType.TYPES_COUNT; ++type) {
            typeCount = typeStructure.typeCount(type);
            if (typeCount == 0)
                continue;
            else if (typeCount == 2) {
                if (matrixType != -1)
                    throw new IllegalArgumentException("Not a matrix: " + matrix + ".");
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

            return new NameDescriptorForTensorFieldImpl(sname, structuresOfIndices, id);
        final StructureOfIndices its = structuresOfIndices[0];
        if (its.size() != 2)
            return new NameDescriptorForSimpleTensor(sname, structuresOfIndices, id);
        for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
            if (its.typeCount(b) == 2) {
                if (CC.isMetric(b)) {
                    if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

            return new NameDescriptorForTensorFieldImpl(sname, structuresOfIndices, id);
        final StructureOfIndices its = structuresOfIndices[0];
        if (its.size() != 2)
            return new NameDescriptorForSimpleTensor(sname, structuresOfIndices, id);
        for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
            if (its.typeCount(b) == 2) {
                if (CC.isMetric(b)) {
                    if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

            return new NameDescriptorForTensorFieldImpl(sname, structuresOfIndices, id);
        final StructureOfIndices its = structuresOfIndices[0];
        if (its.size() != 2)
            return new NameDescriptorForSimpleTensor(sname, structuresOfIndices, id);
        for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
            if (its.typeCount(b) == 2) {
                if (CC.isMetric(b)) {
                    if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

        NameDescriptor descriptor = CC.getNameDescriptor(matrix.getName());
        StructureOfIndices typeStructure = descriptor.getStructureOfIndices();
        byte metricType = -1, matrixType = -1;
        int typeCount;
        for (byte type = 0; type < IndexType.TYPES_COUNT; ++type) {
            typeCount = typeStructure.typeCount(type);
            if (typeCount == 0)
                continue;
            else if (typeCount == 2) {
                if (matrixType != -1)
                    throw new IllegalArgumentException("Not a matrix: " + matrix + ".");
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

            return new NameDescriptorImpl(sname, structuresOfIndices, id);
        final StructureOfIndices its = structuresOfIndices[0];
        if (its.size() != 2)
            return new NameDescriptorImpl(sname, structuresOfIndices, id);
        for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
            if (its.typeCount(b) == 2) {
                if (CC.isMetric(b)) {
                    if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

            return new NameDescriptorForTensorFieldImpl(sname, structuresOfIndices, id);
        final StructureOfIndices its = structuresOfIndices[0];
        if (its.size() != 2)
            return new NameDescriptorForSimpleTensor(sname, structuresOfIndices, id);
        for (byte b = 0; b < IndexType.TYPES_COUNT; ++b)
            if (its.typeCount(b) == 2) {
                if (CC.isMetric(b)) {
                    if (sname.equals(kroneckerAndMetricNames[0]) || sname.equals(kroneckerAndMetricNames[1])) {
                        NameDescriptor descriptor = new NameDescriptorForMetricAndKronecker(kroneckerAndMetricNames, b, id);
                        descriptor.getSymmetries().add(b, false, 1, 0);
                        return descriptor;
View Full Code Here

Examples of cc.redberry.core.indices.StructureOfIndices.typeCount()

        NameDescriptor descriptor = CC.getNameDescriptor(matrix.getName());
        StructureOfIndices typeStructure = descriptor.getStructureOfIndices();
        byte metricType = -1, matrixType = -1;
        int typeCount;
        for (byte type = 0; type < IndexType.TYPES_COUNT; ++type) {
            typeCount = typeStructure.typeCount(type);
            if (typeCount == 0)
                continue;
            else if (typeCount == 2) {
                if (matrixType != -1)
                    throw new IllegalArgumentException("Not a matrix: " + matrix + ".");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.