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

Definition at line 385 of file STK_AssignSelector.h.

Member Function Documentation

◆ runByCol()

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

Definition at line 387 of file STK_AssignSelector.h.

388 {
389 for (int j = rhs.beginCols(); j < rhs.endCols(); ++j)
390 for (int i = rhs.beginRows(); i <=j; ++i)
391 { lhs.elt(i, j) = ( lhs.elt(j, i) = rhs.elt(i, j) );}
392 }

◆ runByRow()

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

Definition at line 393 of file STK_AssignSelector.h.

394 {
395 for (int i = rhs.beginRows(); i < rhs.endRows(); ++i)
396 for (int j = i; j < rhs.endCols(); ++j)
397 { lhs.elt(i, j) = (lhs.elt(j, i) = rhs.elt(i, j));}
398 }

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