    

 ## On this page

  

 

 # MatrixCWise Class Reference

 Last update: 16.07.2025 

coefficient wise access to [Matrix](class_matrix.xhtml "Standard matrix class. ") [More...](class_matrix_c_wise.xhtml#details)

## <a name="pub-types"></a>Public Types

<a id="a973c5b26a9107f3517a08587cff16bd2"></a>typedef Eigen::Matrix&lt; [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f), Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor &gt; [Base](class_matrix_c_wise.xhtml#a973c5b26a9107f3517a08587cff16bd2) the Eigen matrix type this class refers to   
 <a id="a3541a03e0ef75e0b541a5969c9c998a2"></a>typedef [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) \* [TBuffer](class_matrix_c_wise.xhtml#a3541a03e0ef75e0b541a5969c9c998a2) a pointer type for the data array   
 <a id="a31525d7455891e23040ebb9f024548be"></a>typedef int [TIndex](class_matrix_c_wise.xhtml#a31525d7455891e23040ebb9f024548be) Eigen matrix index type.   
 <a id="ad33f729eda6e45412aac71cee702012f"></a>typedef number [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) floating point number for matrix elements   
 ## <a name="pub-methods"></a>Public Member Functions

[Matrix](class_matrix.xhtml) [\_\_add\_\_](class_matrix_c_wise.xhtml#a67083c2f7537c9ed0be39de29ec0d28c) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) other) returns a matrix expression of the coefficient-wise sum of \*this and other [More...](#a67083c2f7537c9ed0be39de29ec0d28c)  
 [Matrix](class_matrix.xhtml) [\_\_div\_\_](class_matrix_c_wise.xhtml#a540aca91432a9ea6e9ba5d1ff9ffc9b9) ([Matrix](class_matrix.xhtml) other) returns a matrix expression of the coefficient-wise division of \*this and other [More...](#a540aca91432a9ea6e9ba5d1ff9ffc9b9)  
 <a id="a293ae8577e55ddc8c667d770d7384765"></a>[Matrix](class_matrix.xhtml) **\_\_div\_\_** ([MatrixBlock](class_matrix_block.xhtml) other) [Matrix](class_matrix.xhtml) [\_\_eq\_\_](class_matrix_c_wise.xhtml#a2493ec21aee5b383d98427d16d8e6e33) ([Matrix](class_matrix.xhtml) other) <a id="a9e79b36a58bb0bed444295f0661fa482"></a>[Matrix](class_matrix.xhtml) **\_\_eq\_\_** ([MatrixBlock](class_matrix_block.xhtml) other) <a id="a2f944af22fc28b77305f471cbae93c30"></a>[Matrix](class_matrix.xhtml) **\_\_eq\_\_** ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) x) const [Matrix](class_matrix.xhtml) [\_\_le\_\_](class_matrix_c_wise.xhtml#a8b80d85a718a6b3a047d14b789385193) ([Matrix](class_matrix.xhtml) other) <a id="a4c736f4fbbf7d56c1c37252dfbc2f836"></a>[Matrix](class_matrix.xhtml) **\_\_le\_\_** ([MatrixBlock](class_matrix_block.xhtml) other) <a id="aa3ee59f591a3dce34ba9f66d9bfe4d74"></a>[Matrix](class_matrix.xhtml) **\_\_le\_\_** ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) x) const [Matrix](class_matrix.xhtml) [\_\_lt\_\_](class_matrix_c_wise.xhtml#a165cd8494c71be6dfc17716c36779c72) ([Matrix](class_matrix.xhtml) other) <a id="aaca00c93ef8beb660155daf45295ade4"></a>[Matrix](class_matrix.xhtml) **\_\_lt\_\_** ([MatrixBlock](class_matrix_block.xhtml) other) <a id="a2c38fa95bb9b580acefe4c42989ad0db"></a>[Matrix](class_matrix.xhtml) **\_\_lt\_\_** ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) x) const [Matrix](class_matrix.xhtml) [\_\_mul\_\_](class_matrix_c_wise.xhtml#a270496497e07a445b73b4f909d0448a7) ([Matrix](class_matrix.xhtml) other) returns a matrix expression of the coefficient-wise product of \*this and other [More...](#a270496497e07a445b73b4f909d0448a7)  
 <a id="a1e1fedc863163e570f8e6951104174f8"></a>[Matrix](class_matrix.xhtml) **\_\_mul\_\_** ([MatrixBlock](class_matrix_block.xhtml) other) [Matrix](class_matrix.xhtml) [\_\_pow\_\_](class_matrix_c_wise.xhtml#a2b59a31ba9207bcf2a860ff10d064a88) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) exponent) [Matrix](class_matrix.xhtml) [\_\_sub\_\_](class_matrix_c_wise.xhtml#a994684307fc046b26ecc74b05b2f5537) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) other) returns a matrix expression of the coefficient-wise difference of \*this and other [More...](#a994684307fc046b26ecc74b05b2f5537)  
 [Matrix](class_matrix.xhtml) [Abs](class_matrix_c_wise.xhtml#a7634f29b244064bd3a59bd53ca54142c) () [Matrix](class_matrix.xhtml) [Abs2](class_matrix_c_wise.xhtml#aa9244b63de0788c7047eb2f0e201fadd) () [Matrix](class_matrix.xhtml) [Add](class_matrix_c_wise.xhtml#af9caddd3ca7e9edd4c67a436451bc0ad) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) other) modifies this matrix by the coefficient-wise sum of \*this and other [More...](#af9caddd3ca7e9edd4c67a436451bc0ad)  
 [Matrix](class_matrix.xhtml) [Atan2](class_matrix_c_wise.xhtml#a86c30ae7ec929daaa74f99f2e7410a50) ([Matrix](class_matrix.xhtml) y) returns the arcus tangens from two parameters: this object represents the coordinates along the x axis is this array, [More...](#a86c30ae7ec929daaa74f99f2e7410a50)  
 [Matrix](class_matrix.xhtml) [Cos](class_matrix_c_wise.xhtml#aa1e4c5f8b96bdd4d0e77eb6ec5861269) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) [a](group__tmath.xhtml#ga7e205066f67b9e3fd4c8cbd5859e8da3)) returns a matrix object with coefficient-wise cosine of (this\*a) [More...](#aa1e4c5f8b96bdd4d0e77eb6ec5861269)  
 [Matrix](class_matrix.xhtml) [Cos](class_matrix_c_wise.xhtml#a7864cdcfd69245fe7f4d2f11719d7028) () [Matrix](class_matrix.xhtml) [Cube](class_matrix_c_wise.xhtml#a5ee926018308589b6c263637386740e5) () [Matrix](class_matrix.xhtml) [Div](class_matrix_c_wise.xhtml#a656ddff52495846688772ed461283165) ([Matrix](class_matrix.xhtml) other) modifies this matrix by the coefficient-wise division of \*this and other [More...](#a656ddff52495846688772ed461283165)  
 <a id="aa13b1cae51a62eae279e888939f88a02"></a>[Matrix](class_matrix.xhtml) **Div** ([MatrixBlock](class_matrix_block.xhtml) other) [Matrix](class_matrix.xhtml) [Exp](class_matrix_c_wise.xhtml#a16210a3a0359397a7ebca3f1e725a14d) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) [a](group__tmath.xhtml#ga7e205066f67b9e3fd4c8cbd5859e8da3)) returns a matrix object with coefficient-wise exponential of (this\*a) [More...](#a16210a3a0359397a7ebca3f1e725a14d)  
 [Matrix](class_matrix.xhtml) [Exp](class_matrix_c_wise.xhtml#a87f6fab7e3fe95960eaeb1b498c93e07) () [Matrix](class_matrix.xhtml) [Greater](class_matrix_c_wise.xhtml#a17424d0aa0b1da02eb3b3fa7f5993643) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) x) const [Matrix](class_matrix.xhtml) [Inverse](class_matrix_c_wise.xhtml#a63e64419c1df090a8f8151c062aa1365) () [Matrix](class_matrix.xhtml) [Less](class_matrix_c_wise.xhtml#a9794608c498bb29a40e1b97d31c71aef) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) x) const [Matrix](class_matrix.xhtml) [Log](class_matrix_c_wise.xhtml#a51da26cb713f8a3acf7856fba158ed60) () [Matrix](class_matrix.xhtml) [Log10](class_matrix_c_wise.xhtml#a1cad4c3a8f2ff4d4287b55c947a93d5d) ()  [MatrixCWise](class_matrix_c_wise.xhtml#aa51d61666b6c7928867afa608609b24b) ([MatrixCWise](class_matrix_c_wise.xhtml) ar) destructor [More...](#aa51d61666b6c7928867afa608609b24b)  
  [MatrixCWise](class_matrix_c_wise.xhtml#ae1dba0319cc8f1dbfd5c7d9127073921) ([Matrix](class_matrix.xhtml) x) constructor from [Matrix](class_matrix.xhtml "Standard matrix class. ") [More...](#ae1dba0319cc8f1dbfd5c7d9127073921)  
 [Matrix](class_matrix.xhtml) [Max](class_matrix_c_wise.xhtml#acce1d21e1d16b9fe8dc527efe7b6b856) ([Matrix](class_matrix.xhtml) other) returns a matrix expression of the coefficient-wise operator max of \*this and other [More...](#acce1d21e1d16b9fe8dc527efe7b6b856)  
 <a id="a1cb742d96ca8b4a61dc76dae4df76049"></a>[Matrix](class_matrix.xhtml) **Max** ([MatrixBlock](class_matrix_block.xhtml) other) [Matrix](class_matrix.xhtml) [Max](class_matrix_c_wise.xhtml#a8ff1c77c6179e89ae8580d96d9d7471b) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) z) const [Matrix](class_matrix.xhtml) [Min](class_matrix_c_wise.xhtml#a88cf752459079d624e5de3da052d47ba) ([Matrix](class_matrix.xhtml) other) returns a matrix expression of the coefficient-wise operator min of \*this and other [More...](#a88cf752459079d624e5de3da052d47ba)  
 <a id="ad847745daae9c7abb80ceb840e232823"></a>[Matrix](class_matrix.xhtml) **Min** ([MatrixBlock](class_matrix_block.xhtml) other) [Matrix](class_matrix.xhtml) [Min](class_matrix_c_wise.xhtml#acccd148878158b5a3b7122ef47ce6aa9) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) z) const [Matrix](class_matrix.xhtml) [Mul](class_matrix_c_wise.xhtml#ad16fec9e44e9fb9031f560cce41c1207) ([Matrix](class_matrix.xhtml) other) modifes this matrix by the coefficient-wise product of \*this and other [More...](#ad16fec9e44e9fb9031f560cce41c1207)  
 <a id="acb11b75a8cc75c277f0588621f47ab19"></a>[Matrix](class_matrix.xhtml) **Mul** ([MatrixBlock](class_matrix_block.xhtml) other) [Matrix](class_matrix.xhtml) [NotEqual](class_matrix_c_wise.xhtml#afc79fafa0024e1f5ebc5ecf0206d6aca) ([Matrix](class_matrix.xhtml) other) <a id="a2ffdb965aa762141acfc4cc46f02a543"></a>[Matrix](class_matrix.xhtml) **NotEqual** ([MatrixBlock](class_matrix_block.xhtml) other) <a id="a30d86b64878ea9e0a79a17e7af1d8457"></a>[Matrix](class_matrix.xhtml) **NotEqual** ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) x) const [Matrix](class_matrix.xhtml) [Pow](class_matrix_c_wise.xhtml#af79633a1270172c5f549fa393c4e7856) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) exponent) returns a matrix object with coefficient-wise power of \*this to the given exponent (operator ^) [More...](#af79633a1270172c5f549fa393c4e7856)  
 [Matrix](class_matrix.xhtml) [Sign](class_matrix_c_wise.xhtml#a023b6269d35a9b6850f646305b0f231a) () const [Matrix](class_matrix.xhtml) [Sin](class_matrix_c_wise.xhtml#a896e6b04dc31ff05252ebb4770ef3b43) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) [a](group__tmath.xhtml#ga7e205066f67b9e3fd4c8cbd5859e8da3)) returns a matrix object with coefficient-wise sinus of (this\*a) [More...](#a896e6b04dc31ff05252ebb4770ef3b43)  
 [Matrix](class_matrix.xhtml) [Sin](class_matrix_c_wise.xhtml#af0d73fed3c34a0753d9b41637398d113) () [Matrix](class_matrix.xhtml) [Sqrt](class_matrix_c_wise.xhtml#aa2c0bf80e61dfe338ef406612d862d19) () [Matrix](class_matrix.xhtml) [Square](class_matrix_c_wise.xhtml#a6f98c97be955d727391173f7060e354d) () [Matrix](class_matrix.xhtml) [Sub](class_matrix_c_wise.xhtml#a6c54f6fd0e98f505d7656c305f4818be) ([TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f) other) modifies this matrix by the coefficient-wise difference of \*this and other [More...](#a6c54f6fd0e98f505d7656c305f4818be)  
 <a id="details" name="details"></a>## Detailed Description

coefficient wise access to [Matrix](class_matrix.xhtml "Standard matrix class. ")

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](class_matrix_c_wise.xhtml "coefficient wise access to Matrix ") is deleted.



## Constructor &amp; Destructor Documentation

<a id="aa51d61666b6c7928867afa608609b24b"></a>## [◆ ](#aa51d61666b6c7928867afa608609b24b)MatrixCWise() \[1/2\]

 [MatrixCWise](class_matrix_c_wise.xhtml)  ( [MatrixCWise](class_matrix_c_wise.xhtml)  *ar*) 

destructor

copy constructor

Parameters arthe source object 



<a id="ae1dba0319cc8f1dbfd5c7d9127073921"></a>## [◆ ](#ae1dba0319cc8f1dbfd5c7d9127073921)MatrixCWise() \[2/2\]

 [MatrixCWise](class_matrix_c_wise.xhtml)  ( [Matrix](class_matrix.xhtml)  *x*) 

constructor from [Matrix](class_matrix.xhtml "Standard matrix class. ")

Parameters xthe matrix which is to be referenced 



## Member Function Documentation

<a id="a67083c2f7537c9ed0be39de29ec0d28c"></a>## [◆ ](#a67083c2f7537c9ed0be39de29ec0d28c)\_\_add\_\_()

 [Matrix](class_matrix.xhtml) \_\_add\_\_  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *other*) 

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

Parameters otherthe other (scalar) Returnsthe result of the operation 



<a id="a540aca91432a9ea6e9ba5d1ff9ffc9b9"></a>## [◆ ](#a540aca91432a9ea6e9ba5d1ff9ffc9b9)\_\_div\_\_()

 [Matrix](class_matrix.xhtml) \_\_div\_\_  ( [Matrix](class_matrix.xhtml)  *other*) 

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

Parameters otherthe other matrix Returnsthe result of the operation 



<a id="a2493ec21aee5b383d98427d16d8e6e33"></a>## [◆ ](#a2493ec21aee5b383d98427d16d8e6e33)\_\_eq\_\_()

 [Matrix](class_matrix.xhtml) \_\_eq\_\_  ( [Matrix](class_matrix.xhtml)  *other*) 

Returnsreturns a matrix expression of the coefficient-wise operator == (equal) of \*this and other Parameters otherthe other matrix to be compared 



<a id="a8b80d85a718a6b3a047d14b789385193"></a>## [◆ ](#a8b80d85a718a6b3a047d14b789385193)\_\_le\_\_()

 [Matrix](class_matrix.xhtml) \_\_le\_\_  ( [Matrix](class_matrix.xhtml)  *other*) 

Returnsreturns a matrix expression of the coefficient-wise operator &lt;= of \*this and other Parameters otherthe other matrix to be compared 



<a id="a165cd8494c71be6dfc17716c36779c72"></a>## [◆ ](#a165cd8494c71be6dfc17716c36779c72)\_\_lt\_\_()

 [Matrix](class_matrix.xhtml) \_\_lt\_\_  ( [Matrix](class_matrix.xhtml)  *other*) 

Returnsreturns a matrix expression of the coefficient-wise operator &lt; of \*this and other Parameters otherthe other matrix to be compared 



<a id="a270496497e07a445b73b4f909d0448a7"></a>## [◆ ](#a270496497e07a445b73b4f909d0448a7)\_\_mul\_\_()

 [Matrix](class_matrix.xhtml) \_\_mul\_\_  ( [Matrix](class_matrix.xhtml)  *other*) 

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

Parameters otherthe other matrix Returnsthe result of the operation 



<a id="a2b59a31ba9207bcf2a860ff10d064a88"></a>## [◆ ](#a2b59a31ba9207bcf2a860ff10d064a88)\_\_pow\_\_()

 [Matrix](class_matrix.xhtml) \_\_pow\_\_  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *exponent*) 

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



<a id="a994684307fc046b26ecc74b05b2f5537"></a>## [◆ ](#a994684307fc046b26ecc74b05b2f5537)\_\_sub\_\_()

 [Matrix](class_matrix.xhtml) \_\_sub\_\_  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *other*) 

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

Parameters otherthe other object (scalar) Returnsthe result of the operation 



<a id="a7634f29b244064bd3a59bd53ca54142c"></a>## [◆ ](#a7634f29b244064bd3a59bd53ca54142c)Abs()

 [Matrix](class_matrix.xhtml) Abs  ( ) 

Returnsa matrix object with coefficient-wise absolute value 



<a id="aa9244b63de0788c7047eb2f0e201fadd"></a>## [◆ ](#aa9244b63de0788c7047eb2f0e201fadd)Abs2()

 [Matrix](class_matrix.xhtml) Abs2  ( ) 

Returnsa matrix object with coefficient-wise squared absolute value 



<a id="af9caddd3ca7e9edd4c67a436451bc0ad"></a>## [◆ ](#af9caddd3ca7e9edd4c67a436451bc0ad)Add()

 [Matrix](class_matrix.xhtml) Add  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *other*) 

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

Parameters otherthe other object (scalar) Returnsa reference to \*this 



<a id="a86c30ae7ec929daaa74f99f2e7410a50"></a>## [◆ ](#a86c30ae7ec929daaa74f99f2e7410a50)Atan2()

 [Matrix](class_matrix.xhtml) Atan2  ( [Matrix](class_matrix.xhtml)  *y*) 

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

Parameters ythe given array defining the coordinates along the y axis. ReturnsThe output matrix object contains the elementwise atan2 values 



<a id="aa1e4c5f8b96bdd4d0e77eb6ec5861269"></a>## [◆ ](#aa1e4c5f8b96bdd4d0e77eb6ec5861269)Cos() \[1/2\]

 [Matrix](class_matrix.xhtml) Cos  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *a*) 

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

Parameters athe scalar a Returnsthe result of the operation 



<a id="a7864cdcfd69245fe7f4d2f11719d7028"></a>## [◆ ](#a7864cdcfd69245fe7f4d2f11719d7028)Cos() \[2/2\]

 [Matrix](class_matrix.xhtml) Cos  ( ) 

Returnsa matrix object with coefficient-wise cosine 



<a id="a5ee926018308589b6c263637386740e5"></a>## [◆ ](#a5ee926018308589b6c263637386740e5)Cube()

 [Matrix](class_matrix.xhtml) Cube  ( ) 

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



<a id="a656ddff52495846688772ed461283165"></a>## [◆ ](#a656ddff52495846688772ed461283165)Div()

 [Matrix](class_matrix.xhtml) Div  ( [Matrix](class_matrix.xhtml)  *other*) 

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

Parameters otherthe other matrix Returnsa reference to \*this 



<a id="a16210a3a0359397a7ebca3f1e725a14d"></a>## [◆ ](#a16210a3a0359397a7ebca3f1e725a14d)Exp() \[1/2\]

 [Matrix](class_matrix.xhtml) Exp  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *a*) 

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

Parameters athe scalar a Returnsthe result of the operation 



<a id="a87f6fab7e3fe95960eaeb1b498c93e07"></a>## [◆ ](#a87f6fab7e3fe95960eaeb1b498c93e07)Exp() \[2/2\]

 [Matrix](class_matrix.xhtml) Exp  ( ) 

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



<a id="a17424d0aa0b1da02eb3b3fa7f5993643"></a>## [◆ ](#a17424d0aa0b1da02eb3b3fa7f5993643)Greater()

 [Matrix](class_matrix.xhtml) Greater  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *x*)  const

Returnsa matrix indicating which element of this is greater than x Parameters xthe scalar x 



<a id="a63e64419c1df090a8f8151c062aa1365"></a>## [◆ ](#a63e64419c1df090a8f8151c062aa1365)Inverse()

 [Matrix](class_matrix.xhtml) Inverse  ( ) 

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



<a id="a9794608c498bb29a40e1b97d31c71aef"></a>## [◆ ](#a9794608c498bb29a40e1b97d31c71aef)Less()

 [Matrix](class_matrix.xhtml) Less  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *x*)  const

Returnsa matrix indicating which element of this is smaller than x Parameters xthe scalar x 



<a id="a51da26cb713f8a3acf7856fba158ed60"></a>## [◆ ](#a51da26cb713f8a3acf7856fba158ed60)Log()

 [Matrix](class_matrix.xhtml) Log  ( ) 

Returnsa matrix object with coefficient-wise natural logarithm 



<a id="a1cad4c3a8f2ff4d4287b55c947a93d5d"></a>## [◆ ](#a1cad4c3a8f2ff4d4287b55c947a93d5d)Log10()

 [Matrix](class_matrix.xhtml) Log10  ( ) 

Returnsa matrix object with coefficient-wise decadic logarithm 



<a id="acce1d21e1d16b9fe8dc527efe7b6b856"></a>## [◆ ](#acce1d21e1d16b9fe8dc527efe7b6b856)Max() \[1/2\]

 [Matrix](class_matrix.xhtml) Max  ( [Matrix](class_matrix.xhtml)  *other*) 

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

Parameters otherthe other matrix Returnsthe result of the operation 



<a id="a8ff1c77c6179e89ae8580d96d9d7471b"></a>## [◆ ](#a8ff1c77c6179e89ae8580d96d9d7471b)Max() \[2/2\]

 [Matrix](class_matrix.xhtml) Max  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *z*)  const

Returnsan array with elementwise maximum of max(this,z) Parameters zthe scalar z 



<a id="a88cf752459079d624e5de3da052d47ba"></a>## [◆ ](#a88cf752459079d624e5de3da052d47ba)Min() \[1/2\]

 [Matrix](class_matrix.xhtml) Min  ( [Matrix](class_matrix.xhtml)  *other*) 

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

Parameters otherthe other matrix Returnsthe result of the operation 



<a id="acccd148878158b5a3b7122ef47ce6aa9"></a>## [◆ ](#acccd148878158b5a3b7122ef47ce6aa9)Min() \[2/2\]

 [Matrix](class_matrix.xhtml) Min  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *z*)  const

Returnsan array with elementwise minimum of min(this,z) Parameters zthe scalar z 



<a id="ad16fec9e44e9fb9031f560cce41c1207"></a>## [◆ ](#ad16fec9e44e9fb9031f560cce41c1207)Mul()

 [Matrix](class_matrix.xhtml) Mul  ( [Matrix](class_matrix.xhtml)  *other*) 

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

Parameters otherthe other matrix Returnsa reference to \*this 



<a id="afc79fafa0024e1f5ebc5ecf0206d6aca"></a>## [◆ ](#afc79fafa0024e1f5ebc5ecf0206d6aca)NotEqual()

 [Matrix](class_matrix.xhtml) NotEqual  ( [Matrix](class_matrix.xhtml)  *other*) 

Returnsreturns a matrix expression of the coefficient-wise operator != (inequal) of \*this and other Parameters otherthe other matrix to be compared 



<a id="af79633a1270172c5f549fa393c4e7856"></a>## [◆ ](#af79633a1270172c5f549fa393c4e7856)Pow()

 [Matrix](class_matrix.xhtml) Pow  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *exponent*) 

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

Parameters exponentthe exponent of the power operation Returnsthe result of the operation 



<a id="a023b6269d35a9b6850f646305b0f231a"></a>## [◆ ](#a023b6269d35a9b6850f646305b0f231a)Sign()

 [Matrix](class_matrix.xhtml) Sign  ( )  const

Returnsan array with elementwise sign (-1 if &lt;0, 0 if=0, 1 if&gt;0) 



<a id="a896e6b04dc31ff05252ebb4770ef3b43"></a>## [◆ ](#a896e6b04dc31ff05252ebb4770ef3b43)Sin() \[1/2\]

 [Matrix](class_matrix.xhtml) Sin  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *a*) 

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

Parameters athe scalar a Returnsthe result of the operation 



<a id="af0d73fed3c34a0753d9b41637398d113"></a>## [◆ ](#af0d73fed3c34a0753d9b41637398d113)Sin() \[2/2\]

 [Matrix](class_matrix.xhtml) Sin  ( ) 

Returnsa matrix object with coefficient-wise sinus 



<a id="aa2c0bf80e61dfe338ef406612d862d19"></a>## [◆ ](#aa2c0bf80e61dfe338ef406612d862d19)Sqrt()

 [Matrix](class_matrix.xhtml) Sqrt  ( ) 

Returnsa matrix object with coefficient-wise square root 



<a id="a6f98c97be955d727391173f7060e354d"></a>## [◆ ](#a6f98c97be955d727391173f7060e354d)Square()

 [Matrix](class_matrix.xhtml) Square  ( ) 

Returnsa matrix object with coefficient-wise squared value 



<a id="a6c54f6fd0e98f505d7656c305f4818be"></a>## [◆ ](#a6c54f6fd0e98f505d7656c305f4818be)Sub()

 [Matrix](class_matrix.xhtml) Sub  ( [TScalar](class_matrix_c_wise.xhtml#ad33f729eda6e45412aac71cee702012f)  *other*) 

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

Parameters otherthe other object (scalar) Returnsa reference to \*this