abstract struct Number

Overview

The top-level number type.

Included Modules

Defined in:

micrograd/engine.cr

Instance Method Summary

Instance Method Detail

def *(other : MicroGrad::Value) #

Multiply this scalar by a MicroGrad::Value and return the result as a MicroGrad::Value chained with the inputs.


[View source]
def +(other : MicroGrad::Value) #

Add this scalar to a MicroGrad::Value and return the result as a MicroGrad::Value chained with the inputs.


[View source]
def -(other : MicroGrad::Value) #

Subtract a MicroGrad::Value from this scalar and return the result as a MicroGrad::Value chained with the inputs.


[View source]
def /(other : MicroGrad::Value) #

Divide this scalar by a MicroGrad::Value and return the result as a MicroGrad::Value chained with the inputs.


[View source]