All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.accelad.math.nilgiri.autodiff.Zero Maven / Gradle / Ivy

There is a newer version: 1.16
Show newest version
package com.accelad.math.nilgiri.autodiff;

import com.accelad.math.nilgiri.AbstractIdentityFactory;
import com.accelad.math.nilgiri.Field;


public class Zero> extends Constant {


    public Zero(AbstractIdentityFactory i_factory) {
        super(i_factory.zero(), i_factory);
    }

    @Override
    public DifferentialFunction plus(DifferentialFunction i_v) {
        return i_v;
    }

    @Override
    protected DifferentialFunction plused(DifferentialFunction i_v) {
        return i_v;
    }

    @Override
    // public DifferentialFunction mul(DifferentialFunction i_v) {
    public Zero mul(DifferentialFunction i_v) {
        return this;
    }

    @Override
    // protected DifferentialFunction muled(DifferentialFunction i_v) {
    protected Zero muled(DifferentialFunction i_v) {
        return this;
    }

    @Override
    // public DifferentialFunction inverse() {
    public Constant inverse() {
        // TODO
        return null;
    }

    @Override
    // public DifferentialFunction negate() {
    // public Constant negate() {
    public Zero negate() {
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy