MOAB  4.9.3pre
Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType > Struct Template Reference

#include <GeneralMatrixMatrix.h>

Collaboration diagram for Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >:

List of all members.

Public Types

typedef Gemm::Traits Traits

Public Member Functions

 gemm_functor (const Lhs &lhs, const Rhs &rhs, Dest &dest, const Scalar &actualAlpha, BlockingType &blocking)
void initParallelSession (Index num_threads) const
void operator() (Index row, Index rows, Index col=0, Index cols=-1, GemmParallelInfo< Index > *info=0) const

Protected Attributes

const Lhs & m_lhs
const Rhs & m_rhs
Dest & m_dest
Scalar m_actualAlpha
BlockingType & m_blocking

Detailed Description

template<typename Scalar, typename Index, typename Gemm, typename Lhs, typename Rhs, typename Dest, typename BlockingType>
struct Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >

Definition at line 209 of file GeneralMatrixMatrix.h.


Member Typedef Documentation

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
typedef Gemm::Traits Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::Traits

Definition at line 233 of file GeneralMatrixMatrix.h.


Constructor & Destructor Documentation

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::gemm_functor ( const Lhs &  lhs,
const Rhs &  rhs,
Dest &  dest,
const Scalar &  actualAlpha,
BlockingType &  blocking 
) [inline]

Definition at line 211 of file GeneralMatrixMatrix.h.

    : m_lhs(lhs), m_rhs(rhs), m_dest(dest), m_actualAlpha(actualAlpha), m_blocking(blocking)
  {}

Member Function Documentation

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
void Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::initParallelSession ( Index  num_threads) const [inline]

Definition at line 215 of file GeneralMatrixMatrix.h.

  {
    m_blocking.initParallel(m_lhs.rows(), m_rhs.cols(), m_lhs.cols(), num_threads);
    m_blocking.allocateA();
  }
template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
void Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::operator() ( Index  row,
Index  rows,
Index  col = 0,
Index  cols = -1,
GemmParallelInfo< Index > *  info = 0 
) const [inline]

Definition at line 221 of file GeneralMatrixMatrix.h.

  {
    if(cols==-1)
      cols = m_rhs.cols();

    Gemm::run(rows, cols, m_lhs.cols(),
              &m_lhs.coeffRef(row,0), m_lhs.outerStride(),
              &m_rhs.coeffRef(0,col), m_rhs.outerStride(),
              (Scalar*)&(m_dest.coeffRef(row,col)), m_dest.outerStride(),
              m_actualAlpha, m_blocking, info);
  }

Member Data Documentation

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
Scalar Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::m_actualAlpha [protected]

Definition at line 239 of file GeneralMatrixMatrix.h.

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
BlockingType& Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::m_blocking [protected]

Definition at line 240 of file GeneralMatrixMatrix.h.

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
Dest& Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::m_dest [protected]

Definition at line 238 of file GeneralMatrixMatrix.h.

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
const Lhs& Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::m_lhs [protected]

Definition at line 236 of file GeneralMatrixMatrix.h.

template<typename Scalar , typename Index , typename Gemm , typename Lhs , typename Rhs , typename Dest , typename BlockingType >
const Rhs& Eigen::internal::gemm_functor< Scalar, Index, Gemm, Lhs, Rhs, Dest, BlockingType >::m_rhs [protected]

Definition at line 237 of file GeneralMatrixMatrix.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines