DefaultScientificArray

A class implementation of DoubleScientificArray that takes an AbstractScientificUnit

Parameters

Quantity

the type of PhysicalQuantity of the unit

Unit

the type of AbstractScientificUnit this array represents

values

the DoubleArray containing the values

unit

the Unit component

Constructors

Link copied to clipboard
constructor(value: List<Decimal>, unit: Unit)
constructor(values: DoubleArray, unit: Unit)

Properties

Link copied to clipboard

The List of Decimal for all values in this array

Link copied to clipboard
open override val size: Int

The size of the array

Link copied to clipboard
open override val unit: Unit
Link copied to clipboard
open override val values: DoubleArray

Functions

Link copied to clipboard

Combines this ScientificArray and right into a DefaultScientificArray using a transformation method

Combines this ScientificArray and right into a TargetArray using a transformation method

Link copied to clipboard

Creates a DefaultScientificArray containing all values of this ScientificArray and right This will convert the values right into Unit

Creates a DefaultScientificArray containing all values of this ScientificArray and right This will convert the values of both this ScientificArray and right into TargetUnit

Creates a TargetArray containing all values of this ScientificArray and right This will convert the values right into Unit

Creates a TargetArray containing all values of this ScientificArray and right This will convert the values of both this ScientificArray and right into TargetUnit

Link copied to clipboard

Creates a DefaultScientificArray that contains all values of a ScientificArray converted to TargetUnit

Creates a TargetArray that contains all values of a ScientificArray converted to TargetUnit

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Double

Gets the NumberType at the given index

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun iterator(): Iterator<Double>

Creates an iterator over the elements of the array

Link copied to clipboard

Maps all the values of a ScientificArray into a DefaultScientificArray using a transformation method

Maps all the values of a ScientificArray into a TargetArray using a transformation method