MatrixDOps

scalation.mathstat.MatrixDOps
object MatrixDOps

The MatrixDOps object provides extension methods to support scalar op matrix operations, so that one can write 2.0 + x as well as x + 2.0.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MatrixDOps.type

Members list

Extensions

Extensions

extension (a: Double)
def *(x: MatrixD): MatrixD

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Value parameters

a

the scalar first operand

x

the vector second operand

Attributes

def +(x: MatrixD): MatrixD

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Value parameters

a

the scalar first operand

x

the vector second operand

Attributes

def -(x: MatrixD): MatrixD

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Value parameters

a

the scalar first operand

x

the vector second operand

Attributes

def /(x: MatrixD): MatrixD

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Compute the element-wise sum (or difference, product, quotient) of scalar a and matrix x, e.g., 2.0 * x.

Value parameters

a

the scalar first operand

x

the vector second operand

Attributes

extension (x: VectorD)
inline def (y: VectorD): MatrixD

Compute the outer product of vector x and vector y.

Compute the outer product of vector x and vector y.

Value parameters

x

the vector first operand

y

the vector second operand

Attributes