DenseVector

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

case class SerializedForm(data: Array[_], offset: Int, stride: Int, length: Int) extends Serializable

This class exists because @specialized instances don't respect the serial

This class exists because @specialized instances don't respect the serial

Value members

Concrete methods

def apply[@specialized(Double, Int, Float, Long) V](values: Array[V]): DenseVector[V]
def create[V](data: Array[V], offset: Int, stride: Int, length: Int): DenseVector[V]

Creates a new DenseVector using the provided array (not making a copy!). In generic contexts, prefer to use this (or apply) instead of new DenseVector[V](data, offset, stride, length), which in general won't give specialized implementations.

Creates a new DenseVector using the provided array (not making a copy!). In generic contexts, prefer to use this (or apply) instead of new DenseVector[V](data, offset, stride, length), which in general won't give specialized implementations.

def fill[@specialized(Double, Int, Float, Long) V : ClassTag](size: Int)(v: => V): DenseVector[V]

Analogous to Array.fill

Analogous to Array.fill

def fill[@specialized(Double, Int, Float, Long) V : Semiring](size: Int, v: V): DenseVector[V]
def horzcat[V : Zero](vectors: DenseVector[V]*): DenseMatrix[V]

Horizontal concatenation of two or more vectors into one matrix.

Horizontal concatenation of two or more vectors into one matrix.

Throws:
IllegalArgumentException

if vectors have different sizes

def tabulate[@specialized(Double, Int, Float, Long) V : ClassTag](size: Int)(f: Int => V): DenseVector[V]

Analogous to Array.tabulate

Analogous to Array.tabulate

Analogous to Array.tabulate, but taking a scala.Range to iterate over, instead of an index.

Analogous to Array.tabulate, but taking a scala.Range to iterate over, instead of an index.

def vertcat[V](vectors: DenseVector[V]*)(implicit canSet: InPlaceImpl2[DenseVector[V], DenseVector[V]], vman: ClassTag[V], zero: Zero[V]): DenseVector[V]

Vertical concatenation of two or more column vectors into one large vector.

Vertical concatenation of two or more column vectors into one large vector.

Inherited methods

def apply[V : ClassTag](values: V*): DenseVector[V]

Creates a vector with the specified elements

Creates a vector with the specified elements

Inherited from:
VectorConstructors
def rand[T : ClassTag](size: Int, rand: Rand[T]): DenseVector[T]

Creates a Vector of uniform random numbers in (0,1)

Creates a Vector of uniform random numbers in (0,1)

Inherited from:
VectorConstructors
def range(start: Int, end: Int, step: Int): DenseVector[Int]
Inherited from:
VectorConstructors
def range(start: Int, end: Int): DenseVector[Int]
Inherited from:
VectorConstructors
def rangeD(start: Double, end: Double, step: Double): DenseVector[Double]
Inherited from:
VectorConstructors
def rangeF(start: Float, end: Float, step: Float): DenseVector[Float]
Inherited from:
VectorConstructors