Eigen::internal::transform_make_affine< Mode > Struct Template Reference

#include <Transform.h>

Static Public Member Functions

template<typename MatrixType >
static EIGEN_DEVICE_FUNC void run (MatrixType &mat)
 

Member Function Documentation

◆ run()

template<int Mode>
template<typename MatrixType >
static EIGEN_DEVICE_FUNC void Eigen::internal::transform_make_affine< Mode >::run ( MatrixType mat)
inlinestatic
1122  {
1123  static const int Dim = MatrixType::ColsAtCompileTime - 1;
1124  mat.template block<1, Dim>(Dim, 0).setZero();
1125  mat.coeffRef(Dim, Dim) = typename MatrixType::Scalar(1);
1126  }
SCALAR Scalar
Definition: bench_gemm.cpp:45
void setZero()
Definition: SparseMatrix.h:303
Scalar & coeffRef(Index row, Index col)
Definition: SparseMatrix.h:275
static const unsigned Dim
Problem dimension.
Definition: two_d_tilted_square.cc:62

References Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::coeffRef(), Global_Variables::Dim, and Eigen::SparseMatrix< Scalar_, Options_, StorageIndex_ >::setZero().


The documentation for this struct was generated from the following file: