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

Definition at line 598 of file STK_AssignSelector.h.

Member Function Documentation

◆ runByCol()

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

Definition at line 600 of file STK_AssignSelector.h.

601 {
602 for (int j = rhs.beginCols(); j < rhs.endCols(); ++j)
603 for (int i = rhs.beginRows(); i <=j; ++i)
604 { lhs.elt(i, j) = ( lhs.elt(j, i) = rhs.elt(i, j) );}
605 }

◆ runByRow()

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

Definition at line 606 of file STK_AssignSelector.h.

607 {
608 for (int i = rhs.beginRows(); i < rhs.endRows(); ++i)
609 for (int j = i; j < rhs.endCols(); ++j)
610 { lhs.elt(i, j) = (lhs.elt(j, i) = rhs.elt(i, j));}
611 }

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