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

Methods to use for C=AV with A a general matrix and V a vector. 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 Matrices by vector multiplication implementation res have been resized and initialized to zero outside this method.
 

Detailed Description

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

Methods to use for C=AV with A a general matrix and V a vector.

The structure bv contains only static methods and typedef and should normally not be used directly.

Definition at line 81 of file STK_ArrayByVectorProduct.h.

Member Typedef Documentation

◆ Type

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

Definition at line 83 of file STK_ArrayByVectorProduct.h.

Member Function Documentation

◆ run()

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

Main method for Matrices by vector multiplication implementation res have been resized and initialized to zero outside this method.

Definition at line 88 of file STK_ArrayByVectorProduct.h.

89 {
90 for (int j= lhs.beginCols(); j<lhs.endCols(); ++j)
91 {
92 for (int i= lhs.beginRows(); i< lhs.endRows(); ++i)
93 { res.elt(i) += lhs(i,j) * rhs[j];}
94 }
95 return;
96 }

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