scalar.number
- class tinychain.scalar.number.Bool(form=None)[source]
Bases:
Number,BooleanA boolean
Value.- logical_and(other)[source]
Boolean AND
- logical_not()[source]
Boolean NOT
- logical_or(other)[source]
Boolean OR
- logical_xor(other)[source]
Boolean XOR
- class tinychain.scalar.number.C32(form, imag=None)[source]
Bases:
ComplexA complex 32-bit floating point number.
- class tinychain.scalar.number.C64(form, imag=None)[source]
Bases:
ComplexA complex 64-bit floating point number.
- class tinychain.scalar.number.Complex(form, imag=None)[source]
Bases:
Number,ComplexA complex number.
- conj()[source]
Return the conjugate of this
Complexnumber.
- property imag
The imaginary component of this
ComplexNumeric
- norm()[source]
Return the linear norm of this
Complexnumber.
- property real
The real component of this
ComplexNumeric
- class tinychain.scalar.number.F32(form=None)[source]
Bases:
FloatA 32-bit floating point number.
- class tinychain.scalar.number.F64(form=None)[source]
Bases:
FloatA 64-bit floating point number.
- class tinychain.scalar.number.Float(form=None)[source]
Bases:
NumberA floating-point decimal number.
- class tinychain.scalar.number.I16(form=None)[source]
Bases:
IntA 16-bit integer.
- class tinychain.scalar.number.I32(form=None)[source]
Bases:
IntA 32-bit integer.
- class tinychain.scalar.number.I64(form=None)[source]
Bases:
IntA 64-bit integer.
- class tinychain.scalar.number.Int(form=None)[source]
Bases:
NumberAn integer.
- classmethod max_value()[source]
Return the maximum allowed value of this Int type.
- classmethod min_value()[source]
Return the minimum allowed value of this Int type.
- class tinychain.scalar.number.Number(form=None)[source]
Bases:
Value,Numeric,TrigonometricA numeric
Value.- acos()[source]
Arccosine
- acosh()[source]
Hyperbolic arccosine
- add(other)[source]
Return the sum of self and other.
- asin()[source]
Arcsine
- asinh()[source]
Hyperbolic arcsine
- atan()[source]
Arctangent
- atanh()[source]
Hyperbolic arctangent
- cos()[source]
Cosine
- cosh()[source]
Hyperbolic cosine
- div(other)[source]
Return the quotient of self and other.
- exp()[source]
Calculate e**self
- modulo(other)[source]
Return the remainder of self divided by other.
- mul(other)[source]
Return the product of self and other.
- pow(other)[source]
Raise self to the power of other.
- property shape
The shape of this
Numericstate
- sin()[source]
Sine
- sinh()[source]
Hyperbolic sine
- sub(other)[source]
Return the difference between self and other.
- tan()[source]
Tangent
- tanh()[source]
Hyperbolic tangent
- class tinychain.scalar.number.U16(form=None)[source]
Bases:
UIntA 16-bit unsigned integer.
- class tinychain.scalar.number.U32(form=None)[source]
Bases:
UIntA 32-bit unsigned integer.
- class tinychain.scalar.number.U64(form=None)[source]
Bases:
UIntA 64-bit unsigned integer.
- class tinychain.scalar.number.U8(form=None)[source]
Bases:
UIntAn 8-bit unsigned integer (a byte).