NumericOps

trait NumericOps[+This] extends ImmutableNumericOps[This]

In some sense, this is the real root of the linalg hierarchy. It provides methods for doing operations on a Tensor-like thing. All methods farm out to some implicit or another. We use this when we don't care about the index into the Tensor, or if we don't really have an index.

Companion:
object
trait HasOps
class Object
trait Matchable
class Any
trait Broadcasted[T, B]
trait BroadcastedLike[T, B, Self]
class BroadcastedColumns[T, ColType]
class BroadcastedRows[T, RowType]
trait TensorLike[K, V, This]
trait Counter2Like[K1, K2, V, T, This]
trait Counter2[K1, K2, V]
class Impl[K1, K2, V]
trait CounterLike[K, V, M, This]
trait Counter[K, V]
class Impl[K, V]
trait MatrixLike[V, Self]
class CSCMatrix[V]
class DenseMatrix[V]
trait Matrix[V]
class SliceMatrix[K1, K2, V]
trait Tensor[K, V]
trait VectorLike[V, Self]
class BitVector
class DenseVector[V]
class HashVector[E]
class SliceVector[K, V]
class SparseVector[V]
trait Vector[V]
trait StorageVector[V]
class Transpose[T]
class VectorBuilder[E]
class Ref[T]
trait DiffFunction[T]
class Cost
class Cost
class Cost

Value members

Concrete methods

final def %=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Alias for :%=(b) when b is a scalar.

Alias for :%=(b) when b is a scalar.

final def &=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise and of this and b.

Mutates this by element-wise and of this and b.

final def *=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Alias for :*=(b) when b is a scalar.

Alias for :*=(b) when b is a scalar.

final def +[B, C, That](b: B)(implicit op: Impl2[This, B, That]): That

Alias for :+(b) for all b.

Alias for :+(b) for all b.

final def +=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Alias for :+=(b) for all b.

Alias for :+=(b) for all b.

final def -=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Alias for :-=(b) for all b.

Alias for :-=(b) for all b.

final def /=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Alias for :/=(b) when b is a scalar.

Alias for :/=(b) when b is a scalar.

final def :%=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise modulo of b into this.

Mutates this by element-wise modulo of b into this.

final def :&=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise and of this and b.

Mutates this by element-wise and of this and b.

final def :*=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise multiplication of b into this.

Mutates this by element-wise multiplication of b into this.

final def :+=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise addition of b into this.

Mutates this by element-wise addition of b into this.

final def :-=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise subtraction of b from this

Mutates this by element-wise subtraction of b from this

final def :/=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise division of b into this

Mutates this by element-wise division of b into this

final def :=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise assignment of b into this.

Mutates this by element-wise assignment of b into this.

final def :^=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise exponentiation of this by b.

Mutates this by element-wise exponentiation of this by b.

final def :^^=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise xor of this and b.

Mutates this by element-wise xor of this and b.

final def :|=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise or of this and b.

Mutates this by element-wise or of this and b.

final def <:<[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise less=than comparator of this and b.

Element-wise less=than comparator of this and b.

final def <:=[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise less-than-or-equal-to comparator of this and b.

Element-wise less-than-or-equal-to comparator of this and b.

final def >:=[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise greater-than-or-equal-to comparator of this and b.

Element-wise greater-than-or-equal-to comparator of this and b.

final def >:>[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise greater-than comparator of this and b.

Element-wise greater-than comparator of this and b.

final def ^^=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise xor of this and b.

Mutates this by element-wise xor of this and b.

final def |=[B](b: B)(implicit op: InPlaceImpl2[This, B]): This

Mutates this by element-wise or of this and b.

Mutates this by element-wise or of this and b.

Inherited methods

final def %[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Alias for :%(b) when b is a scalar.

Alias for :%(b) when b is a scalar.

Inherited from:
ImmutableNumericOps
final def %:%[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise modulo of this and b.

Element-wise modulo of this and b.

Inherited from:
ImmutableNumericOps
final def &[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Alias for &:&(b) for all b.

Alias for &:&(b) for all b.

Inherited from:
ImmutableNumericOps
final def &:&[B, That](b: B)(implicit op: Impl2[This, B, That]): That

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.

Inherited from:
ImmutableNumericOps
final def *[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Matrix multiplication

Matrix multiplication

Inherited from:
ImmutableNumericOps
final def *:*[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise product of this and b.

Element-wise product of this and b.

Inherited from:
ImmutableNumericOps
final def +:+[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise sum of this and b.

Element-wise sum of this and b.

Inherited from:
ImmutableNumericOps
final def -[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Alias for -:-(b) for all b.

Alias for -:-(b) for all b.

Inherited from:
ImmutableNumericOps
final def -:-[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise difference of this and b.

Element-wise difference of this and b.

Inherited from:
ImmutableNumericOps
final def /[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Alias for :/(b) when b is a scalar.

Alias for :/(b) when b is a scalar.

Inherited from:
ImmutableNumericOps
final def /:/[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise quotient of this and b.

Element-wise quotient of this and b.

Inherited from:
ImmutableNumericOps
final def :!=[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise inequality comparator of this and b.

Element-wise inequality comparator of this and b.

Inherited from:
ImmutableNumericOps
final def :==[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise equality comparator of this and b.

Element-wise equality comparator of this and b.

Inherited from:
ImmutableNumericOps
def \[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Shaped solve of this by b.

Shaped solve of this by b.

Inherited from:
ImmutableNumericOps
final def ^:^[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Element-wise exponentiation of this and b.

Element-wise exponentiation of this and b.

Inherited from:
ImmutableNumericOps
final def ^^[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Alias for :^^(b) for all b.

Alias for :^^(b) for all b.

Inherited from:
ImmutableNumericOps
final def ^^:^^[B, That](b: B)(implicit op: Impl2[This, B, That]): That

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.

Inherited from:
ImmutableNumericOps
final def dot[B, BB >: B, That](b: B)(implicit op: Impl2[This, BB, That]): That

Inner product of this and b.

Inner product of this and b.

Inherited from:
ImmutableNumericOps
def repr: This
Inherited from:
ImmutableNumericOps
final def t[That, Slice1, Result](a: Slice1)(implicit op: CanTranspose[This, That], canSlice: CanSlice[That, Slice1, Result]): Result

A transposed view of this object, followed by a slice. Sadly frequently necessary.

A transposed view of this object, followed by a slice. Sadly frequently necessary.

Inherited from:
ImmutableNumericOps
final def t[That, Slice1, Slice2, Result](a: Slice1, b: Slice2)(implicit op: CanTranspose[This, That], canSlice: CanSlice2[That, Slice1, Slice2, Result]): Result

A transposed view of this object, followed by a slice. Sadly frequently necessary.

A transposed view of this object, followed by a slice. Sadly frequently necessary.

Inherited from:
ImmutableNumericOps
final def t[That](implicit op: CanTranspose[This, That]): That

A transposed view of this object.

A transposed view of this object.

Inherited from:
ImmutableNumericOps
final def unary_![That](implicit op: Impl[This, That]): That
Inherited from:
ImmutableNumericOps
final def unary_-[That](implicit op: Impl[This, That]): That
Inherited from:
ImmutableNumericOps
final def |[B, That](b: B)(implicit op: Impl2[This, B, That]): That

Alias for :||(b) for all b.

Alias for :||(b) for all b.

Inherited from:
ImmutableNumericOps
final def |:|[B, That](b: B)(implicit op: Impl2[This, B, That]): That

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.

Inherited from:
ImmutableNumericOps