Skip to main content
Part of tmath coefficient wise access to Matrix

Public Types

Public Member Functions

Detailed Description

coefficient wise access to Matrix This class provides operators and functions for coefficient wise access for matrices, i.e. it provides a scalar view on all matrix elements. Operators cover elementwise scalar operations. Functions cover a wide field of scalar functions applied to all elements. By using a reference counting system it is guaranteed that the refered object will not be deleted before the MatrixCWise is deleted.

Constructor & Destructor Documentation

MatrixCWise() [1/2]

destructor copy constructor Parameters

MatrixCWise() [2/2]

constructor from Matrix Parameters

Member Function Documentation

__add__()

returns a matrix expression of the coefficient-wise sum of *this and other Parameters Returns the result of the operation

__div__()

returns a matrix expression of the coefficient-wise division of *this and other Parameters Returns the result of the operation

__eq__()

Returns returns a matrix expression of the coefficient-wise operator == (equal) of *this and other Parameters

__le__()

Returns returns a matrix expression of the coefficient-wise operator <= of *this and other Parameters

__lt__()

Returns returns a matrix expression of the coefficient-wise operator < of *this and other Parameters

__mul__()

returns a matrix expression of the coefficient-wise product of *this and other Parameters Returns the result of the operation

__pow__()

Returns returns a matrix object with coefficient-wise power of *this to the given exponent (operator ^) Parameters

__sub__()

returns a matrix expression of the coefficient-wise difference of *this and other Parameters Returns the result of the operation

Abs()

Returns a matrix object with coefficient-wise absolute value

Abs2()

Returns a matrix object with coefficient-wise squared absolute value

Add()

modifies this matrix by the coefficient-wise sum of *this and other Parameters Returns a reference to *this

Atan2()

returns the arcus tangens from two parameters: this object represents the coordinates along the x axis is this array, Parameters Returns The output matrix object contains the elementwise atan2 values

Cos() [1/2]

returns a matrix object with coefficient-wise cosine of (this*a) Parameters Returns the result of the operation

Cos() [2/2]

Returns a matrix object with coefficient-wise cosine

Cube()

Returns a matrix object with coefficient-wise cubic value (x^3)

Div()

modifies this matrix by the coefficient-wise division of *this and other Parameters Returns a reference to *this

Exp() [1/2]

returns a matrix object with coefficient-wise exponential of (this*a) Parameters Returns the result of the operation

Exp() [2/2]

Returns a matrix object with coefficient-wise exponential (Euler number power component)

Greater()

Returns a matrix indicating which element of this is greater than x Parameters

Inverse()

Returns a matrix object with coefficient-wise inverse, i.e $ y_i = 1/x_i $

Less()

Returns a matrix indicating which element of this is smaller than x Parameters

Log()

Returns a matrix object with coefficient-wise natural logarithm

Log10()

Returns a matrix object with coefficient-wise decadic logarithm

Max() [1/2]

returns a matrix expression of the coefficient-wise operator max of *this and other Parameters Returns the result of the operation

Max() [2/2]

Returns an array with elementwise maximum of max(this,z) Parameters

Min() [1/2]

returns a matrix expression of the coefficient-wise operator min of *this and other Parameters Returns the result of the operation

Min() [2/2]

Returns an array with elementwise minimum of min(this,z) Parameters

Mul()

modifes this matrix by the coefficient-wise product of *this and other Parameters Returns a reference to *this

NotEqual()

Returns returns a matrix expression of the coefficient-wise operator != (inequal) of *this and other Parameters

Pow()

returns a matrix object with coefficient-wise power of *this to the given exponent (operator ^) Parameters Returns the result of the operation

Sign()

Returns an array with elementwise sign (-1 if <0, 0 if=0, 1 if>0)

Sin() [1/2]

returns a matrix object with coefficient-wise sinus of (this*a) Parameters Returns the result of the operation

Sin() [2/2]

Returns a matrix object with coefficient-wise sinus

Sqrt()

Returns a matrix object with coefficient-wise square root

Square()

Returns a matrix object with coefficient-wise squared value

Sub()

modifies this matrix by the coefficient-wise difference of *this and other Parameters Returns a reference to *this