![]() |
NuTo
Numerics Tool
|
NuTo::FullMatrix | Eigen::Matrix |
|---|---|
| GetValue(i,j) / GetValue(i) | (i,j) / (i) |
| SetValue(i,j,x) / SetValue(i,x) | (i,j) = x / (i) = x |
| GetNumRows() / GetNumColumns() | rows() / cols() |
| GetRow(i) / GetColumn(i) | row(i) / col(i) |
| SetRow(i, x) / SetColumn(i, x) | row(i) = x / col(i) = x |
| Resize() | resize() |
| Sum() | sum() |
| Norm() | norm() |
| Abs() | cwiseAbs() |
| Max() | maxCoeff() |
| Dot() | dot() |
| matrix.ConservativeResizeRows(newNumRows) | matrix.conservativeResize(newNumRows, matrix.cols()) |
| Trans() | transpose() |
Eigen::Matrix does not perform a resize when callingEigen::Matrix::resize(...)Eigen::Matrix<..>(dimX, dimY) (ctor)Example 1)
setZero not needed, since you set each value. Consider RAII...
Example 2)
setZero required.
1.8.11