invoke

@JvmName(name = "scientificArrayFromListOfNumberDefault")
operator fun <Quantity : PhysicalQuantity, Unit : AbstractScientificUnit<Quantity>> List<Number>.invoke(unit: Unit): DefaultScientificArray<Quantity, Unit>

Creates a DefaultScientificArray containing this list using a given AbstractScientificUnit

Return

the created DefaultScientificArray

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of AbstractScientificUnit the array should represent

unit

the Unit of the DefaultScientificArray to be created


@JvmName(name = "scientificArrayFromListOfNumber")
operator fun <Quantity : PhysicalQuantity, Unit : ScientificUnit<Quantity>, NumberType : Number, Array : ScientificArray<NumberType, Quantity, Unit>> List<Number>.invoke(unit: Unit, factory: (List<Decimal>, Unit) -> Array): Array

Creates an Array containing this list using a given unit

Return

the created Array

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of ScientificUnit the array should represent

NumberType

the type of Number the values are is stored in

Array

the type of ScientificArray to create

unit

the Unit of the Array to be created

factory

method for creating Array using a list of Decimal and a Unit


@JvmName(name = "scientificArrayFromListOfDecimalDefault")
operator fun <Quantity : PhysicalQuantity, Unit : AbstractScientificUnit<Quantity>> List<Decimal>.invoke(unit: Unit): DefaultScientificArray<Quantity, Unit>

Creates a DefaultScientificArray containing this list of Decimal using a given AbstractScientificUnit

Return

the created DefaultScientificArray

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of AbstractScientificUnit the array should represent

unit

the Unit of the DefaultScientificArray to be created


@JvmName(name = "scientificArrayFromListOfDecimal")
operator fun <Quantity : PhysicalQuantity, Unit : ScientificUnit<Quantity>, NumberType : Number, Array : ScientificArray<NumberType, Quantity, Unit>> List<Decimal>.invoke(unit: Unit, factory: (List<Decimal>, Unit) -> Array): Array

Creates an Array containing this list of Decimal using a given unit

Return

the created Array

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of ScientificUnit the array should represent

NumberType

the type of Number the values are is stored in

Array

the type of ScientificArray to create

unit

the Unit of the Array to be created

factory

method for creating Array using a list of Decimal and a Unit


Creates a DefaultScientificValue of this number using a given AbstractScientificUnit

Return

the created DefaultScientificValue

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of AbstractScientificUnit the value should represents

unit

the Unit of the DefaultScientificValue to be created


Creates a Value of this number using a given unit

Return

the created Value

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of ScientificUnit the value should represents

Value

the type of ScientificValue to return

unit

the Unit of the DefaultScientificValue to be created

factory

a method for creating a Value using a Decimal value and a Unit


Creates a DefaultScientificValue of this Decimal using a given AbstractScientificUnit

Return

the created DefaultScientificValue

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of AbstractScientificUnit the value should represents

unit

the Unit of the DefaultScientificValue to be created


Creates a Value of this Decimal using a given unit

Return

the created Value

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of ScientificUnit the value should represents

Value

the type of ScientificValue to return

unit

the Unit of the DefaultScientificValue to be created

factory

a method for creating a Value using a Decimal value and a Unit