C# Class YAMP.DotOperator

The abstract base class for any dot operator (.*, ./, ...), which is essentially a special binary operator.
Inheritance: BinaryOperator
显示文件 Open project: FlorianRappl/YAMP

Public Methods

Method Description
DotOperator ( BinaryOperator top ) : YAMP.Exceptions

Creates a new dot operator (e.g. .*, ./, ...).

Operation ( ScalarValue left, ScalarValue right ) : ScalarValue

Implementation of the operation.

Perform ( Value left, Value right ) : Value

Performs the evaluation of the dot operator.

Protected Methods

Method Description
Dot ( MatrixValue left, MatrixValue right ) : MatrixValue

Performs an operation on each entry of the left and right matrix.

Dot ( MatrixValue left, ScalarValue right ) : MatrixValue

Performs an operation on each entry of the left matrix.

Dot ( ScalarValue left, MatrixValue right ) : MatrixValue

Performs an operation on each entry of the right matrix.

Method Details

Dot() protected method

Performs an operation on each entry of the left and right matrix.
protected Dot ( MatrixValue left, MatrixValue right ) : MatrixValue
left MatrixValue The left matrix.
right MatrixValue The right matrix.
return MatrixValue

Dot() protected method

Performs an operation on each entry of the left matrix.
protected Dot ( MatrixValue left, ScalarValue right ) : MatrixValue
left MatrixValue The left matrix.
right ScalarValue The right scalar.
return MatrixValue

Dot() protected method

Performs an operation on each entry of the right matrix.
protected Dot ( ScalarValue left, MatrixValue right ) : MatrixValue
left ScalarValue The left scalar.
right MatrixValue The right matrix.
return MatrixValue

DotOperator() public method

Creates a new dot operator (e.g. .*, ./, ...).
public DotOperator ( BinaryOperator top ) : YAMP.Exceptions
top BinaryOperator The binary operator on which this is based.
return YAMP.Exceptions

Operation() public abstract method

Implementation of the operation.
public abstract Operation ( ScalarValue left, ScalarValue right ) : ScalarValue
left ScalarValue The left scalar.
right ScalarValue The right scalar.
return ScalarValue

Perform() public method

Performs the evaluation of the dot operator.
public Perform ( Value left, Value right ) : Value
left Value The left value.
right Value The right value.
return Value