Packages

  • package root
    Definition Classes
    root
  • package de
    Definition Classes
    root
  • package h2b
    Definition Classes
    de
  • package scala
    Definition Classes
    h2b
  • package lib
    Definition Classes
    scala
  • package math
    Definition Classes
    lib
  • package linalg

    LinAlg provides data types and operations for algebraic vectors and matrices.

    LinAlg provides data types and operations for algebraic vectors and matrices.

    Vector and Matrix elements can be of arbitrary type, provided that a factory for that element type is available. Currently, factories exist for Double, Float, Long, Int, Short, Byte and Char.

    Vector and matrix (row and column) indices can be any integer (to state more precisely, an index must be in the interval [Mindex, Maxdex], as defined in the Index object). But only elements corresponding to a subset of that whole integer range actually are stored (the concrete elements), while all other elements by definition are zero (virtual elements).

    This concept (which I got to value a long time ago with the ALGOL68 library prelude TORRIX [1]) does not only provide a natural approach to operations with vectors and matrixes of different index ranges, but also prevents from index-out-of-bounds exceptions.

    Concrete index ranges (those indices that correspond to concrete elements) implicitly or explicitly are assigned when a vector or matrix is created. By default, it starts at 1 and extends to the number of elements specified, but this is customizable.

    Vectors and Matrixes both are immutable by design, so there exist no update methods or the like (you cannot do v(i) = something). There are, however, builder classes that allow you to build Vectors and Matrixes element by element.

    Currently, operations on vectors and matrices require identical element types. For instance, you can add a Vector[Int] to another Vector[Int], but you cannot add a Vector[Int] to another Vector[Double].

    Definition Classes
    math
    See also

    [1] S. G. van der Meulen, P. Kühling, "Programmieren in ALGOL68", Bd. II (Berlin, New York: de Gruyter), 149-188 (1977)

  • package building

    Vector and matrix builders.

    Vector and matrix builders.

    Definition Classes
    linalg
    Since

    3.0.0

  • package factory

    Vector and matrix factories including scalar operations and concrete factories for standard types.

    Vector and matrix factories including scalar operations and concrete factories for standard types.

    Definition Classes
    linalg
    Since

    3.0.0

  • package storage

    Storage engines for vectors and matrices.

    Storage engines for vectors and matrices.

    Definition Classes
    linalg
    Since

    3.0.0

  • GenMatrixLike
  • GenVectorLike
  • Index
  • Index2
  • Matrix
  • MatrixLike
  • ScalarOps
  • SparseMatrix
  • SparseMatrixLike
  • SparseVector
  • SparseVectorLike
  • Vector
  • VectorLike
  • VectorOps

object Vector

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Vector
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class At extends AnyRef

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply[E](elem: (Int, E), elems: (Int, E)*)(implicit arg0: ClassTag[E]): SparseVector[E]

    elems

    index-value pairs

    returns

    a vector with sparse element storage

  5. def apply[E, F](f: (F) ⇒ E, range: NumericRange[F])(implicit arg0: ClassTag[E], low: At): Vector[E]

    returns

    a vector with elements computed from the specified function using equidistant values from the given range and implicitly given lower index bound.

    Example:
    1. val v = Vector((x: Double) => x*x, 0.0 to 10.0 by 1.0)

  6. def apply[E](f: (Int) ⇒ E, begin: Int, end: Int)(implicit arg0: ClassTag[E]): Vector[E]

    returns

    a vector with elements computed from the specified function in the index range [begin, end].

    Example:
    1. val v = Vector((i: Int) => i*i: Double, 1, 5)

  7. def apply[E](elems: E*)(implicit arg0: ClassTag[E], low: At): Vector[E]

    returns

    a vector with specified elements and implicitly given lower index bound.

    Examples:
    1. implicit val low = At(0); val v = Vector(1,2,3) //uses specified implicit At(0)

    2. ,
    3. val v = Vector(1,2,3) //uses default implicit At(1)

    Note

    Use this factory method when either the default implicit lower index bound At(1) should be applied or you want to define your own implicit At object in scope. If the low argument would be stated explicitly, a ClassTag argument had to be specified as well, so in this case it is better to use the at method with explicit index parameter.

  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def at[E](at: Int)(elems: E*)(implicit arg0: ClassTag[E]): Vector[E]

    returns

    a vector with specified elements and lower index bound.

    Example:
    1. val v = Vector.at(0)(1,2,3)

  10. implicit def canBuildFrom[E](implicit arg0: ClassTag[E]): VectorCanBuildFrom[Vector[_], E, Vector[E]]
  11. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def fromSeq[E](seq: Seq[E])(low: At)(implicit arg0: ClassTag[E]): Vector[E]
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def newBuilder[E](implicit arg0: ClassTag[E]): VectorBuilder[E, Vector[E]]
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def scal0[E](implicit arg0: ClassTag[E]): E

    returns

    the scalar zero according to E

  24. def scal1[E](implicit arg0: ClassTag[E]): E

    returns

    the scalar one according to E

  25. def sparse[E](elems: (Int, E)*)(implicit arg0: ClassTag[E]): SparseVector[E]

    elems

    index-value pairs

    returns

    a vector with sparse element storage

  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  31. object At

Inherited from AnyRef

Inherited from Any

Ungrouped