Package cc.redberry.core.tensor

Examples of cc.redberry.core.tensor.Fraction


        super(argument, parent);
    }

    @Override
    public Tensor derivative() {
        return new Fraction(TensorNumber.createONE(), new Product(new Cos(innerTensor.clone()), new Cos(innerTensor.clone())));
    }
View Full Code Here


        super(argument, parent);
    }

    @Override
    public Tensor derivative() {
        return new Fraction(TensorNumber.createONE(), innerTensor.clone());
    }
View Full Code Here

    }

    @Override
    protected void inverseOperation(Tensor tensor, List<Tensor> subTensors) {
        int size = subTensors.size();
        Fraction fraction = new Fraction(subTensors.get(size - 1), tensor);
        subTensors.set(size - 1, fraction);
    }
View Full Code Here

* @author Stanislav Poslavsky
*/
class ProviderFractionFactory implements IndexMappingProviderFactory {
    @Override
    public IndexMappingProvider create(IndexMappingProvider opu, Tensor from, Tensor to, boolean allowDiffStates) {
        final Fraction fromF = (Fraction) from, toF = (Fraction) to;
        if (!IndexMappings.mappingExists(fromF.getDenominator(), toF.getDenominator(), allowDiffStates))
            return IndexMappingProvider.Util.EMPTY_PROVIDER;
        return IndexMappings.createPort(opu, fromF.getNumerator(), toF.getNumerator(), allowDiffStates);
    }
View Full Code Here

        super(argument, parent);
    }

    @Override
    public Tensor derivative() {
        return new Fraction(TensorNumber.createMINUSONE(), new Product(new Sin(innerTensor.clone()), new Sin(innerTensor.clone())));
    }
View Full Code Here

TOP

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

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.