DataDblNs

trait DataDblNs[A <: ElemDblN] extends DataValueNs[A] with ArrayDblBacked

Base trait for classes that are defined by collections of elements that are products of Doubles, backed by an underlying Array[Double]. As well as ArrDblNs classes this is also the base trait for classes like polygons that are defined by a collection of points.

trait DataValueNs[A]
trait DataImut[A]
trait DataGen[A]
class Any
trait ArrDblNs[A]
trait ArrDbl1s[A]
class Angles
trait ArrDbl2s[A]
class MyDbl2s
class Pt2s
class Vec2MArr
class LatLongs
trait ArrDbl3s[A]
class Pt3s
trait ArrDbl4s[A]
class LineSegs
trait ArrDbl5s[A]
trait ArrDbl6s[A]
trait ArrDbl7s[A]
trait DataDbl2s[A]
trait LinePathDbl2s[A]
class LinePath
trait PolygonDbl2s[VT]
class PolygonLL
trait Pt2sLike
trait DataDbl3s[A]
trait LinePathDbl3s[A]
trait PolygonDbl3s[VT]
trait DataDbl4s[A]
trait DataDbl5s[A]
trait DataDbl6s[A]
trait DataDbl7s[A]
trait LinePathDblNs[A]
trait PolygonDblNs[VT]

Type members

Types

type ThisT <: DataDblNs[A]

Value members

Abstract methods

def unsafeFromArray(array: Array[Double]): ThisT

Concrete methods

override
def arrLen: Int
Definition Classes
override
Definition Classes
final override
def unsafeSameSize(length: Int): ThisT
Definition Classes

Inherited methods

def arrayUnsafe: Array[Double]
Inherited from
ArrayDblBacked
def dataForeach[U](f: A => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
def dataIForeach[U](f: (A, Int) => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
def dataLast: A
Inherited from
DataGen
def dataMap[B, ArrB <: ArrBase[B]](f: A => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable ArrBase of B.

Specialised map to an immutable ArrBase of B.

Inherited from
DataGen
def dataTailForeach[U](f: A => U): Unit

Foreachs over the tail of the data sequence.

Foreachs over the tail of the data sequence.

Inherited from
DataGen
def dataTailfold[B](initial: B)(f: (B, A) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from
DataGen
def elemProdSize: Int

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

Inherited from
DataValueNs
def elemsLenStr: String

Just a handy short cut to give the length of this collection as a string.

Just a handy short cut to give the length of this collection as a string.

Inherited from
DataGen
final override
def elemsNum: Int

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

Definition Classes
Inherited from
DataValueNs
final
def elemsStr: String

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

Inherited from
DataGen
def fElemStr: A => String
Inherited from
DataGen
@inline
def indexData(index: Int): A

apply method accesses the individual elements of the sequence by 0 based index.

apply method accesses the individual elements of the sequence by 0 based index.

Inherited from
DataGen
final override
def toString: String
Definition Classes
DataGen -> Any
Inherited from
DataGen
def typeStr: String

String specifying the type of this object.

String specifying the type of this object.

Inherited from
DataGen
def unsafeSetElem(i: Int, value: A): Unit

Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates an element in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Inherited from
DataGen
def unsafeSetElems(index: Int, elems: A*): Unit

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Inherited from
DataGen