STK++ 0.9.13
STK::hidden::vb< Lhs, Rhs, Result > Struct Template Reference

Methods to use for C=PB with P a point and B a matrix. More...

#include <STK_ArrayByVectorProduct.h>

Public Types

typedef Result::Type Type
 

Static Public Member Functions

static void run (Lhs const &lhs, Rhs const &rhs, Result &res)
 Main method for point by Matrices multiplication implementation.
 

Detailed Description

template<typename Lhs, typename Rhs, typename Result>
struct STK::hidden::vb< Lhs, Rhs, Result >

Methods to use for C=PB with P a point and B a matrix.

The structure vb contains only static method and typedef and should normally not be used directly.

Definition at line 105 of file STK_ArrayByVectorProduct.h.

Member Typedef Documentation

◆ Type

template<typename Lhs , typename Rhs , typename Result >
typedef Result::Type STK::hidden::vb< Lhs, Rhs, Result >::Type

Definition at line 107 of file STK_ArrayByVectorProduct.h.

Member Function Documentation

◆ run()

template<typename Lhs , typename Rhs , typename Result >
static void STK::hidden::vb< Lhs, Rhs, Result >::run ( Lhs const lhs,
Rhs const rhs,
Result &  res 
)
inlinestatic

Main method for point by Matrices multiplication implementation.

res have been resized and initialized to zero outside this method.

Definition at line 112 of file STK_ArrayByVectorProduct.h.

113 {
114 for (int j= rhs.beginCols(); j<rhs.endCols(); ++j)
115 {
116 for (int i= rhs.beginRows(); i< rhs.endRows(); ++i)
117 { res.elt(j) += lhs[i] * rhs(i,j);}
118 }
119 }

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