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

Definition at line 580 of file STK_AssignSelector.h.

Member Function Documentation

◆ runByCol()

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

Definition at line 582 of file STK_AssignSelector.h.

583 {
584 for (int j = rhs.beginCols(); j < rhs.endCols(); ++j)
585 for (int i = rhs.beginRows(); i < rhs.endRows(); ++i)
586 { lhs.setValue(i, j, rhs.elt(i, j));}
587 }

◆ runByRow()

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

Definition at line 588 of file STK_AssignSelector.h.

589 {
590 for (int i = rhs.beginRows(); i < rhs.endRows(); ++i)
591 for (int j = rhs.beginCols(); j < rhs.endCols(); ++j)
592 { lhs.setValue(i, j, rhs.elt(i, j));}
593 }

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