NuTo
Numerics Tool
MatrixBaseAddons.h
Go to the documentation of this file.
1 /*
2  * MatrixBaseAddons.h
3  *
4  * Created on: Apr 11, 2013
5  * Author: junger
6  */
7 
8 #pragma once
9 
10 inline Scalar at(uint i, uint j) const
11 {
12  return this->operator()(i, j);
13 }
15 
16 template <typename OtherDerived>
17 inline const Eigen::MatrixBase<OtherDerived> abs() const
18 {
19  return this->array().abs();
20 }
Scalar at(uint i, uint j) const
Definition: MatrixBaseAddons.h:10
const Eigen::MatrixBase< OtherDerived > abs() const
elementwise absolute value of the matrix
Definition: MatrixBaseAddons.h:17