This class exists because @specialized instances don't respect the serial
This class exists because @specialized instances don't respect the serial
Creates a vector with the specified elements
Creates a vector with the specified elements
Creates a vector with the specified elements
Creates a vector with the specified elements
Returns the p-norm of this Vector (specialized for Double).
Creates a new DenseVector using the provided array (not making a copy!).
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.
Analogous to Array.fill
Analogous to Array.fill
Horizontal concatenation of two or more vectors into one matrix.
Horizontal concatenation of two or more vectors into one matrix.
IllegalArgumentException
if vectors have different sizes
Creates a Vector of uniform random numbers in (0,1)
Creates a Vector of uniform random numbers in (0,1)
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.
Analogous to Array.tabulate
Analogous to Array.tabulate
Vertical concatenation of two or more column vectors into one large vector.
Creates a Vector of size size.
Creates a Vector of size size.