> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# MatrixCWise Class Reference

Part of [tmath](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__tmath)

coefficient wise access to [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md)

## Public Types

| Type | Name |
| - | - |
|  typedef Eigen::Matrix\< [TScalar](#ad33f729eda6e45412aac71cee702012f), Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor > | [Base](#a973c5b26a9107f3517a08587cff16bd2) the Eigen matrix type this class refers to |
|  typedef [TScalar](#ad33f729eda6e45412aac71cee702012f) \* | [TBuffer](#a3541a03e0ef75e0b541a5969c9c998a2) a pointer type for the data array |
|  typedef int | [TIndex](#a31525d7455891e23040ebb9f024548be) Eigen matrix index type. |
|  typedef number | [TScalar](#ad33f729eda6e45412aac71cee702012f) floating point number for matrix elements |

## Public Member Functions

| Type | Name |
| - | - |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_add\_\_](#a67083c2f7537c9ed0be39de29ec0d28c) ([TScalar](#ad33f729eda6e45412aac71cee702012f) other) returns a matrix expression of the coefficient-wise sum of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_div\_\_](#a540aca91432a9ea6e9ba5d1ff9ffc9b9) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) returns a matrix expression of the coefficient-wise division of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_div\_\_** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_eq\_\_](#a2493ec21aee5b383d98427d16d8e6e33) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_eq\_\_** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_eq\_\_** ([TScalar](#ad33f729eda6e45412aac71cee702012f) x) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_le\_\_](#a8b80d85a718a6b3a047d14b789385193) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_le\_\_** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_le\_\_** ([TScalar](#ad33f729eda6e45412aac71cee702012f) x) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_lt\_\_](#a165cd8494c71be6dfc17716c36779c72) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_lt\_\_** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_lt\_\_** ([TScalar](#ad33f729eda6e45412aac71cee702012f) x) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_mul\_\_](#a270496497e07a445b73b4f909d0448a7) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) returns a matrix expression of the coefficient-wise product of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **\_\_mul\_\_** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_pow\_\_](#a2b59a31ba9207bcf2a860ff10d064a88) ([TScalar](#ad33f729eda6e45412aac71cee702012f) exponent) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [\_\_sub\_\_](#a994684307fc046b26ecc74b05b2f5537) ([TScalar](#ad33f729eda6e45412aac71cee702012f) other) returns a matrix expression of the coefficient-wise difference of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Abs](#a7634f29b244064bd3a59bd53ca54142c) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Abs2](#aa9244b63de0788c7047eb2f0e201fadd) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Add](#af9caddd3ca7e9edd4c67a436451bc0ad) ([TScalar](#ad33f729eda6e45412aac71cee702012f) other) modifies this matrix by the coefficient-wise sum of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Atan2](#a86c30ae7ec929daaa74f99f2e7410a50) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) y) returns the arcus tangens from two parameters: this object represents the coordinates along the x axis is this array, |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Cos](#aa1e4c5f8b96bdd4d0e77eb6ec5861269) ([TScalar](#ad33f729eda6e45412aac71cee702012f) [a](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__tmath#ga7e205066f67b9e3fd4c8cbd5859e8da3)) returns a matrix object with coefficient-wise cosine of (this\*a) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Cos](#a7864cdcfd69245fe7f4d2f11719d7028) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Cube](#a5ee926018308589b6c263637386740e5) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Div](#a656ddff52495846688772ed461283165) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) modifies this matrix by the coefficient-wise division of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **Div** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Exp](#a16210a3a0359397a7ebca3f1e725a14d) ([TScalar](#ad33f729eda6e45412aac71cee702012f) [a](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__tmath#ga7e205066f67b9e3fd4c8cbd5859e8da3)) returns a matrix object with coefficient-wise exponential of (this\*a) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Exp](#a87f6fab7e3fe95960eaeb1b498c93e07) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Greater](#a17424d0aa0b1da02eb3b3fa7f5993643) ([TScalar](#ad33f729eda6e45412aac71cee702012f) x) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Inverse](#a63e64419c1df090a8f8151c062aa1365) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Less](#a9794608c498bb29a40e1b97d31c71aef) ([TScalar](#ad33f729eda6e45412aac71cee702012f) x) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Log](#a51da26cb713f8a3acf7856fba158ed60) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Log10](#a1cad4c3a8f2ff4d4287b55c947a93d5d) () |
| | [MatrixCWise](#aa51d61666b6c7928867afa608609b24b) ([MatrixCWise](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_c_wise.md) ar) destructor |
| | [MatrixCWise](#ae1dba0319cc8f1dbfd5c7d9127073921) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) x) constructor from [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Max](#acce1d21e1d16b9fe8dc527efe7b6b856) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) returns a matrix expression of the coefficient-wise operator max of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **Max** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Max](#a8ff1c77c6179e89ae8580d96d9d7471b) ([TScalar](#ad33f729eda6e45412aac71cee702012f) z) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Min](#a88cf752459079d624e5de3da052d47ba) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) returns a matrix expression of the coefficient-wise operator min of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **Min** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Min](#acccd148878158b5a3b7122ef47ce6aa9) ([TScalar](#ad33f729eda6e45412aac71cee702012f) z) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Mul](#ad16fec9e44e9fb9031f560cce41c1207) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) modifes this matrix by the coefficient-wise product of \*this and other |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **Mul** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [NotEqual](#afc79fafa0024e1f5ebc5ecf0206d6aca) ([Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **NotEqual** ([MatrixBlock](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_block.md) other) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | **NotEqual** ([TScalar](#ad33f729eda6e45412aac71cee702012f) x) const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Pow](#af79633a1270172c5f549fa393c4e7856) ([TScalar](#ad33f729eda6e45412aac71cee702012f) exponent) returns a matrix object with coefficient-wise power of \*this to the given exponent (operator ^) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Sign](#a023b6269d35a9b6850f646305b0f231a) () const |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Sin](#a896e6b04dc31ff05252ebb4770ef3b43) ([TScalar](#ad33f729eda6e45412aac71cee702012f) [a](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/group__tmath#ga7e205066f67b9e3fd4c8cbd5859e8da3)) returns a matrix object with coefficient-wise sinus of (this\*a) |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Sin](#af0d73fed3c34a0753d9b41637398d113) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Sqrt](#aa2c0bf80e61dfe338ef406612d862d19) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Square](#a6f98c97be955d727391173f7060e354d) () |
| [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md) | [Sub](#a6c54f6fd0e98f505d7656c305f4818be) ([TScalar](#ad33f729eda6e45412aac71cee702012f) other) modifies this matrix by the coefficient-wise difference of \*this and other |

## Detailed Description

coefficient wise access to [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md)

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](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix_c_wise.md) is deleted.

## Constructor & Destructor Documentation

### MatrixCWise() \[1/2]

```cpp theme={null}
MatrixCWise(MatrixCWise ar)
```

destructor

copy constructor

**Parameters**

| Name | Description |
| - | - |
| ar | the source object |

### MatrixCWise() \[2/2]

```cpp theme={null}
MatrixCWise(Matrix x)
```

constructor from [Matrix](https://developer.synopsys.com/docs/optislang/optislang-3d-postprocessing-script-api/class_matrix.md)

**Parameters**

| Name | Description |
| - | - |
| x | the matrix which is to be referenced |

## Member Function Documentation

### \_\_add\_\_()

```cpp theme={null}
Matrix __add__(TScalar other)
```

returns a matrix expression of the coefficient-wise sum of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other (scalar) |

**Returns**

the result of the operation

### \_\_div\_\_()

```cpp theme={null}
Matrix __div__(Matrix other)
```

returns a matrix expression of the coefficient-wise division of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix |

**Returns**

the result of the operation

### \_\_eq\_\_()

```cpp theme={null}
Matrix __eq__(Matrix other)
```

**Returns**

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

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix to be compared |

### \_\_le\_\_()

```cpp theme={null}
Matrix __le__(Matrix other)
```

**Returns**

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

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix to be compared |

### \_\_lt\_\_()

```cpp theme={null}
Matrix __lt__(Matrix other)
```

**Returns**

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

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix to be compared |

### \_\_mul\_\_()

```cpp theme={null}
Matrix __mul__(Matrix other)
```

returns a matrix expression of the coefficient-wise product of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix |

**Returns**

the result of the operation

### \_\_pow\_\_()

```cpp theme={null}
Matrix __pow__(TScalar exponent)
```

**Returns**

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

**Parameters**

| Name | Description |
| - | - |
| exponent | the exponent |

### \_\_sub\_\_()

```cpp theme={null}
Matrix __sub__(TScalar other)
```

returns a matrix expression of the coefficient-wise difference of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other object (scalar) |

**Returns**

the result of the operation

### Abs()

```cpp theme={null}
Matrix Abs()
```

**Returns**

a matrix object with coefficient-wise absolute value

### Abs2()

```cpp theme={null}
Matrix Abs2()
```

**Returns**

a matrix object with coefficient-wise squared absolute value

### Add()

```cpp theme={null}
Matrix Add(TScalar other)
```

modifies this matrix by the coefficient-wise sum of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other object (scalar) |

**Returns**

a reference to \*this

### Atan2()

```cpp theme={null}
Matrix Atan2(Matrix y)
```

returns the arcus tangens from two parameters: this object represents the coordinates along the x axis is this array,

**Parameters**

| Name | Description |
| - | - |
| y | the given array defining the coordinates along the y axis. |

**Returns**

The output matrix object contains the elementwise atan2 values

### Cos() \[1/2]

```cpp theme={null}
Matrix Cos(TScalar a)
```

returns a matrix object with coefficient-wise cosine of (this\*a)

**Parameters**

| Name | Description |
| - | - |
| a | the scalar a |

**Returns**

the result of the operation

### Cos() \[2/2]

```cpp theme={null}
Matrix Cos()
```

**Returns**

a matrix object with coefficient-wise cosine

### Cube()

```cpp theme={null}
Matrix Cube()
```

**Returns**

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

### Div()

```cpp theme={null}
Matrix Div(Matrix other)
```

modifies this matrix by the coefficient-wise division of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix |

**Returns**

a reference to \*this

### Exp() \[1/2]

```cpp theme={null}
Matrix Exp(TScalar a)
```

returns a matrix object with coefficient-wise exponential of (this\*a)

**Parameters**

| Name | Description |
| - | - |
| a | the scalar a |

**Returns**

the result of the operation

### Exp() \[2/2]

```cpp theme={null}
Matrix Exp()
```

**Returns**

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

### Greater()

```cpp theme={null}
Matrix Greater(TScalar x) const
```

**Returns**

a matrix indicating which element of this is greater than x

**Parameters**

| Name | Description |
| - | - |
| x | the scalar x |

### Inverse()

```cpp theme={null}
Matrix Inverse()
```

**Returns**

a matrix object with coefficient-wise inverse, i.e \$ y\_i = 1/x\_i \$

### Less()

```cpp theme={null}
Matrix Less(TScalar x) const
```

**Returns**

a matrix indicating which element of this is smaller than x

**Parameters**

| Name | Description |
| - | - |
| x | the scalar x |

### Log()

```cpp theme={null}
Matrix Log()
```

**Returns**

a matrix object with coefficient-wise natural logarithm

### Log10()

```cpp theme={null}
Matrix Log10()
```

**Returns**

a matrix object with coefficient-wise decadic logarithm

### Max() \[1/2]

```cpp theme={null}
Matrix Max(Matrix other)
```

returns a matrix expression of the coefficient-wise operator max of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix |

**Returns**

the result of the operation

### Max() \[2/2]

```cpp theme={null}
Matrix Max(TScalar z) const
```

**Returns**

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

**Parameters**

| Name | Description |
| - | - |
| z | the scalar z |

### Min() \[1/2]

```cpp theme={null}
Matrix Min(Matrix other)
```

returns a matrix expression of the coefficient-wise operator min of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix |

**Returns**

the result of the operation

### Min() \[2/2]

```cpp theme={null}
Matrix Min(TScalar z) const
```

**Returns**

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

**Parameters**

| Name | Description |
| - | - |
| z | the scalar z |

### Mul()

```cpp theme={null}
Matrix Mul(Matrix other)
```

modifes this matrix by the coefficient-wise product of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix |

**Returns**

a reference to \*this

### NotEqual()

```cpp theme={null}
Matrix NotEqual(Matrix other)
```

**Returns**

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

**Parameters**

| Name | Description |
| - | - |
| other | the other matrix to be compared |

### Pow()

```cpp theme={null}
Matrix Pow(TScalar exponent)
```

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

**Parameters**

| Name | Description |
| - | - |
| exponent | the exponent of the power operation |

**Returns**

the result of the operation

### Sign()

```cpp theme={null}
Matrix Sign() const
```

**Returns**

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

### Sin() \[1/2]

```cpp theme={null}
Matrix Sin(TScalar a)
```

returns a matrix object with coefficient-wise sinus of (this\*a)

**Parameters**

| Name | Description |
| - | - |
| a | the scalar a |

**Returns**

the result of the operation

### Sin() \[2/2]

```cpp theme={null}
Matrix Sin()
```

**Returns**

a matrix object with coefficient-wise sinus

### Sqrt()

```cpp theme={null}
Matrix Sqrt()
```

**Returns**

a matrix object with coefficient-wise square root

### Square()

```cpp theme={null}
Matrix Square()
```

**Returns**

a matrix object with coefficient-wise squared value

### Sub()

```cpp theme={null}
Matrix Sub(TScalar other)
```

modifies this matrix by the coefficient-wise difference of \*this and other

**Parameters**

| Name | Description |
| - | - |
| other | the other object (scalar) |

**Returns**

a reference to \*this
