STK++ 0.9.13
STK::hidden::Copycat< Lhs, Rhs, Arrays::square_, Arrays::array2D_ > Struct Template Reference

#include <STK_AssignSelector.h>

Static Public Member Functions

static void runByCol (Lhs &lhs, Rhs const &rhs)
 
static void runByRow (Lhs &lhs, Rhs const &rhs)
 

Detailed Description

template<typename Lhs, typename Rhs>
struct STK::hidden::Copycat< Lhs, Rhs, Arrays::square_, Arrays::array2D_ >

Definition at line 461 of file STK_AssignSelector.h.

Member Function Documentation

◆ runByCol()

template<typename Lhs , typename Rhs >
static void STK::hidden::Copycat< Lhs, Rhs, Arrays::square_, Arrays::array2D_ >::runByCol ( Lhs lhs,
Rhs const rhs 
)
inlinestatic

Definition at line 463 of file STK_AssignSelector.h.

464 {
465 for (int i = rhs.beginRows(); i < rhs.endRows(); ++i)
466 for (int j = rhs.beginCols(); j < rhs.endCols(); ++j)
467 { lhs.setValue(i, j, rhs.elt(i, j));}
468 }

◆ runByRow()

template<typename Lhs , typename Rhs >
static void STK::hidden::Copycat< Lhs, Rhs, Arrays::square_, Arrays::array2D_ >::runByRow ( Lhs lhs,
Rhs const rhs 
)
inlinestatic

Definition at line 469 of file STK_AssignSelector.h.

470 {
471 for (int j = rhs.beginCols(); j < rhs.endCols(); ++j)
472 for (int i = rhs.beginRows(); i < rhs.endRows(); ++i)
473 { lhs.setValue(i, j, rhs.elt(i, j));}
474 }

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