Package cc.redberry.core.tensor

Examples of cc.redberry.core.tensor.Pow


        Tensor get() {
            Tensor pow = Transformations.calculateNumbers(power);
            pow = CollectEquals.INSTANCE.transform(pow).equivalent();
            if (pow instanceof TensorNumber && ((TensorNumber) pow).isOne())
                return innerTensor;
            return new Pow(innerTensor, pow);
        }
View Full Code Here


        Tensor arg = parser.parse(parts[0]);

        Tensor power = parser.parse(parts[1]);
        if (!(power instanceof TensorNumber))
            return null;
        return new Pow(arg, (TensorNumber) power);
    }
View Full Code Here

    private ProviderPowFactory() {
    }

    @Override
    public IndexMappingProvider create(IndexMappingProvider opu, Tensor from, Tensor to, boolean allowDiffStates) {
        final Pow fromP = (Pow) from, toP = (Pow) to;
        if (IndexMappings.mappingExists(fromP.getPower(), toP.getPower(), allowDiffStates) && IndexMappings.mappingExists(fromP.getTarget(), toP.getTarget(), allowDiffStates))
            return opu;
        return IndexMappingProvider.Util.EMPTY_PROVIDER;
    }
View Full Code Here

TOP

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

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.