abstract struct Number
- Number
- Value
- Object
Overview
The top-level number type.
Included Modules
- Comparable(Number)
- Steppable
Defined in:
micrograd/engine.crInstance Method Summary
-
#*(other : MicroGrad::Value)
Multiply this scalar by a
MicroGrad::Value
and return the result as aMicroGrad::Value
chained with the inputs. -
#+(other : MicroGrad::Value)
Add this scalar to a
MicroGrad::Value
and return the result as aMicroGrad::Value
chained with the inputs. -
#-(other : MicroGrad::Value)
Subtract a
MicroGrad::Value
from this scalar and return the result as aMicroGrad::Value
chained with the inputs. -
#/(other : MicroGrad::Value)
Divide this scalar by a
MicroGrad::Value
and return the result as aMicroGrad::Value
chained with the inputs.
Instance Method Detail
Multiply this scalar by a MicroGrad::Value
and return the result as a MicroGrad::Value
chained with the inputs.
Add this scalar to a MicroGrad::Value
and return the result as a MicroGrad::Value
chained with the inputs.
Subtract a MicroGrad::Value
from this scalar and return the result as a MicroGrad::Value
chained with the inputs.
Divide this scalar by a MicroGrad::Value
and return the result as a MicroGrad::Value
chained with the inputs.