data array
index of the 0'th element
separation between elements
number of elements
Alias for :%(b) when b is a scalar.
Alias for :%(b) when b is a scalar.
Element-wise modulo of this and b.
Element-wise modulo of this and b.
Alias for :%=(b) when b is a scalar.
Alias for :%=(b) when b is a scalar.
Alias for :&&(b) for all b.
Alias for :&&(b) for all b.
Element-wise logical "and" operator -- returns true if corresponding elements are non-zero.
Element-wise logical "and" operator -- returns true if corresponding elements are non-zero.
Mutates this by element-wise and of this and b.
Mutates this by element-wise and of this and b.
Matrix multiplication (and scalar multiplication that follows standard order of operations)
Matrix multiplication (and scalar multiplication that follows standard order of operations)
Element-wise product of this and b.
Element-wise product of this and b.
Alias for :*=(b) when b is a scalar.
Alias for :*=(b) when b is a scalar.
Alias for :+(b) for all b.
Alias for :+(b) for all b.
Element-wise sum of this and b.
Element-wise sum of this and b.
Alias for :+=(b) for all b.
Alias for :+=(b) for all b.
Alias for :-(b) for all b.
Alias for :-(b) for all b.
Element-wise difference of this and b.
Element-wise difference of this and b.
Alias for :-=(b) for all b.
Alias for :-=(b) for all b.
Alias for :/(b) when b is a scalar.
Alias for :/(b) when b is a scalar.
Element-wise quotient of this and b.
Element-wise quotient of this and b.
Alias for :/=(b) when b is a scalar.
Alias for :/=(b) when b is a scalar.
Element-wise inequality comparator of this and b.
Element-wise inequality comparator of this and b.
Mutates this by element-wise modulo of b into this.
Mutates this by element-wise modulo of b into this.
Mutates this by element-wise and of this and b.
Mutates this by element-wise and of this and b.
Mutates this by element-wise multiplication of b into this.
Mutates this by element-wise multiplication of b into this.
Mutates this by element-wise addition of b into this.
Mutates this by element-wise addition of b into this.
Mutates this by element-wise subtraction of b from this
Mutates this by element-wise subtraction of b from this
Mutates this by element-wise division of b into this
Mutates this by element-wise division of b into this
Mutates this by element-wise assignment of b into this.
Mutates this by element-wise assignment of b into this.
Element-wise equality comparator of this and b.
Element-wise equality comparator of this and b.
Mutates this by element-wise exponentiation of this by b.
Mutates this by element-wise exponentiation of this by b.
Mutates this by element-wise xor of this and b.
Mutates this by element-wise xor of this and b.
Mutates this by element-wise or of this and b.
Mutates this by element-wise or of this and b.
Element-wise less=than comparator of this and b.
Element-wise less=than comparator of this and b.
Element-wise less-than-or-equal-to comparator of this and b.
Element-wise less-than-or-equal-to comparator of this and b.
Element-wise greater-than-or-equal-to comparator of this and b.
Element-wise greater-than-or-equal-to comparator of this and b.
Element-wise greater-than comparator of this and b.
Element-wise greater-than comparator of this and b.
Shaped solve of this by b.
Shaped solve of this by b.
Element-wise exponentiation of this and b.
Element-wise exponentiation of this and b.
Alias for :^^(b) for all b.
Alias for :^^(b) for all b.
Element-wise logical "xor" operator -- returns true if only one of the corresponding elements is non-zero.
Element-wise logical "xor" operator -- returns true if only one of the corresponding elements is non-zero.
Mutates this by element-wise xor of this and b.
Mutates this by element-wise xor of this and b.
How many elements are stored in terms of space.
How many elements are stored in terms of space. In HashVectors, activeSize is the number of non-zero elements, while iterableSize is the number of buckets currently allocated. (activeSize <= iterableSize in general, activeSize == iterableSize for everything except hashing implementations.)
Always returns true.
Always returns true.
Method for slicing that is tuned for Matrices.
Method for slicing that is tuned for Matrices.
Slice a sequence of elements.
Slice a sequence of elements. Must be at least 2.
method for slicing a tensor.
method for slicing a tensor. For instance, DenseVectors support efficient slicing by a Range object.
Creates a view of this DenseVector that is represented as a 1 by length DenseMatrix
Returns a copy of this DenseVector.
Returns a copy of this DenseVector. stride will always be 1, offset will always be 0.
data array
data array
Inner product of this and b.
Inner product of this and b.
Returns all indices k whose value satisfies a predicate.
Returns all indices k whose value satisfies a predicate.
See scala.collection.mutable.ArrayOps.fold.
See scala.collection.mutable.ArrayOps.foldLeft.
See scala.collection.mutable.ArrayOps.foldRight.
Returns true if and only if the given predicate is true for all elements.
Returns true if and only if the given predicate is true for all elements.
Returns true if and only if the given predicate is true for all elements.
Returns true if and only if the given predicate is true for all elements.
Faster foreach
Faster foreach
Applies the given function to each key in the tensor.
Applies the given function to each key in the tensor.
Applies the given function to each key and its corresponding value.
Applies the given function to each key and its corresponding value.
Applies the given function to each value in the map (one for each element of the domain, including zeros).
Applies the given function to each value in the map (one for each element of the domain, including zeros).
Gives the logical index from the physical index.
Always returns true.
Always returns true.
Some storages (namely HashStorage) won't have active indices packed. This lets you know if the bin is actively in use.
index into index/data arrays
How many elements must be iterated over using valueAt/indexAt.
How many elements must be iterated over using valueAt/indexAt. In HashVectors, activeSize is the number of non-zero elements, while iterableSize is the number of buckets currently allocated. (activeSize <= iterableSize in general, activeSize == iterableSize for everything except hashing implementations.)
the set of keys in this vector (0 until length)
number of elements
number of elements
Maps all active key-value pairs values.
Maps all active key-value pairs values.
Maps all non-zero values.
Maps all non-zero values.
Creates a new map containing a transformed copy of this map.
Creates a new map containing a transformed copy of this map.
Creates a new map containing a transformed copy of this map.
Creates a new map containing a transformed copy of this map.
index of the 0'th element
See scala.collection.mutable.ArrayOps.padTo.
See scala.collection.mutable.ArrayOps.reduce.
See scala.collection.mutable.ArrayOps.reduceLeft.
See scala.collection.mutable.ArrayOps.reduceRight.
See scala.collection.mutable.ArrayOps.scan.
See scala.collection.mutable.ArrayOps.scanLeft.
See scala.collection.mutable.ArrayOps.scanRight.
Slices the DenseVector, in the range [start,end] with a stride stride.
separation between elements
A transposed view of this object, followed by a slice.
A transposed view of this object, followed by a slice. Sadly frequently necessary.
A transposed view of this object, followed by a slice.
A transposed view of this object, followed by a slice. Sadly frequently necessary.
A transposed view of this object.
A transposed view of this object.
Returns copy of this breeze.linalg.Vector as a scala.Array
Returns copy of this breeze.linalg.Vector as a scala.Array
Creates a copy of this DenseVector that is represented as a 1 by length DenseMatrix
Returns copy of this breeze.linalg.DenseVector as a scala.Vector
Returns copy of this breeze.linalg.Vector as a scala.Vector
Returns copy of this breeze.linalg.Vector as a scala.Vector
same as apply(i).
same as apply(i). Gives the value at the underlying offset.
index into the data array
apply(i)
Alias for :||(b) for all b.
Alias for :||(b) for all b.
Element-wise logical "or" operator -- returns true if either element is non-zero.
Element-wise logical "or" operator -- returns true if either element is non-zero.
Mutates this by element-wise or of this and b.
Mutates this by element-wise or of this and b.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use %:% instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use &:& instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use *:* instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use +:+ instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use -:- instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use /:/ instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use <:< instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use <:= instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use >:> instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use >:= instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use : instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use : instead.
(Since version 0.13) This operator has confusing and often surprising precedence that leads to bugs. Use |:| instead.
Returns true if all elements are non-zero
Returns true if all elements are non-zero
(Since version 0.6) Use breeze.linalg.all instead
Returns true if some element is non-zero
Returns true if some element is non-zero
(Since version 0.6) Use breeze.linalg.any instead
(Since version 0.6) Use argmax(t) instead of t.argmax
(Since version 0.6) Use argmin(t) instead of t.argmin
(Since version 0.6) Use argsort(t) instead of t.argsort
Returns the k indices with maximum value.
Returns the k indices with maximum value. (NOT absolute value.)
how many to return
(Since version 0.6) Use argtopk(t, k) instead of t.argtopk(k)
Returns true if and only if the given predicate is true for all elements.
Returns true if and only if the given predicate is true for all elements.
(Since version 0.8) Please use 'forall' with the same arguments, which is more in accordance with scala.collections syntax
(Since version 0.6) Use max(t) instead of t.max
(Since version 0.6) Use min(t) instead of t.min
(Since version 0.6) Use sum(t) instead of t.sum
(Since version 0.12-SNAPSHOT) This isn't actually any faster any more
Unsafe version of above, a way to skip the checks.
Unsafe version of above, a way to skip the checks.
(Since version 0.12-SNAPSHOT) This isn't actually any faster any more
A DenseVector is the "obvious" implementation of a Vector, with one twist. The underlying data may have more data than the Vector, represented using an offset into the array (for the 0th element), and a stride that is how far elements are apart from one another.
The i'th element is at offset + i * stride