STK++ 0.9.13
STK::hidden::Copycat< Lhs, Rhs, Arrays::array2D_, Arrays::square_ > 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::array2D_, Arrays::square_ >

Definition at line 268 of file STK_AssignSelector.h.

Member Function Documentation

◆ runByCol()

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

Definition at line 270 of file STK_AssignSelector.h.

271 {
272 for (int i = rhs.begin(); i< rhs.end(); ++i)
273 for (int j = rhs.begin(); j < rhs.end(); ++j)
274 { lhs.setValue(i, j, rhs.elt(i, j));}
275 }

◆ runByRow()

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

Definition at line 276 of file STK_AssignSelector.h.

277 {
278 for (int j = rhs.begin(); j < rhs.lend(); ++j)
279 for (int i = rhs.begin(); i< rhs.end(); ++i)
280 { lhs.setValue(i, j, rhs.elt(i, j));}
281 }

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