MatMatElemOp

org.saddle.ops.BinOpMat.MatMatElemOp
final class MatMatElemOp[OP <: ScalarOp, A, B, C](op: BinOp[OP, A, B, C])(implicit evidence$2: ScalarTag[C]) extends BinOp[OP, Mat[A], Mat[B], Mat[C]]

Binary element-wise operation on two Mats

Broadcasts according to the following rules (same as numpy). If any of the pairs of dimensions are the same, or one of the pair is size 1, then the dimensions are compatible. If the compatible dimension is size 1, then it is virtually expanded to match the size of the corresponding dimension of the other operand.

Attributes

Graph
Supertypes
trait BinOp[OP, Mat[A], Mat[B], Mat[C]]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def apply(v1: Mat[A], v2: Mat[B]): Mat[C]