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

#include <STK_AssignSelector.h>

Public Types

typedef hidden::Traits< Lhs >::Type Type
 

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::diagonal_ >

Definition at line 286 of file STK_AssignSelector.h.

Member Typedef Documentation

◆ Type

Member Function Documentation

◆ runByCol()

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

Definition at line 289 of file STK_AssignSelector.h.

290 {
291 lhs.setValue(Type(0));
292 for (int i = rhs.begin(); i< rhs.end(); ++i)
293 { lhs.setValue(i, i, rhs.elt(i));}
294 }

◆ runByRow()

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

Definition at line 295 of file STK_AssignSelector.h.

296 {
297 lhs.setValue(Type(0));
298 for (int i = rhs.begin(); i< rhs.end(); ++i)
299 { lhs.setValue(i, i, rhs.elt(i));}
300 }

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