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

Definition at line 403 of file STK_AssignSelector.h.

Member Function Documentation

◆ runByCol()

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

Definition at line 405 of file STK_AssignSelector.h.

406 {
407 for (int j = rhs.beginCols(); j < rhs.endCols(); ++j)
408 for (int i = j; i < rhs.endRows(); ++i)
409 { lhs.elt(i, j) = ( lhs.elt(j, i) = rhs.elt(i, j) );}
410 }

◆ runByRow()

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

Definition at line 411 of file STK_AssignSelector.h.

412 {
413 for (int i = rhs.beginRows(); i < rhs.endRows(); ++i)
414 for (int j = rhs.beginCols(); j <= i; ++j)
415 { lhs.elt(i, j) = (lhs.elt(j, i) = rhs.elt(i, j));}
416 }

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