STK++ 0.9.13
STK::hidden::CheckShift< Derived, Arrays::diagonal_ > Struct Template Reference

Specialization for diagonal_. More...

#include <STK_AssignSelector.h>

Static Public Member Functions

static bool isAllowed (Derived const &array, Range const &I, Range const &J)
 
static bool resize (Derived const &array, Range const &I, Range const &J)
 
static bool shift (Derived const &array, int beginRow, int beginCol)
 
static bool resize (Derived const &array, Range const &I)
 
static bool shift (Derived const &array, int begin)
 

Detailed Description

template<class Derived>
struct STK::hidden::CheckShift< Derived, Arrays::diagonal_ >

Specialization for diagonal_.

Definition at line 135 of file STK_AssignSelector.h.

Member Function Documentation

◆ isAllowed()

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::diagonal_ >::isAllowed ( Derived const array,
Range const I,
Range const J 
)
inlinestatic

Definition at line 138 of file STK_AssignSelector.h.

139 { return I==J;}

◆ resize() [1/2]

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::diagonal_ >::resize ( Derived const array,
Range const I 
)
inlinestatic

Definition at line 144 of file STK_AssignSelector.h.

145 { return (array.range() != I);}

◆ resize() [2/2]

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::diagonal_ >::resize ( Derived const array,
Range const I,
Range const J 
)
inlinestatic

Definition at line 140 of file STK_AssignSelector.h.

141 { return (array.rows() != I || array.cols() != J);}

◆ shift() [1/2]

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::diagonal_ >::shift ( Derived const array,
int  begin 
)
inlinestatic

Definition at line 146 of file STK_AssignSelector.h.

147 { return (array.beginRows() != begin || array.beginCols() != begin);}

◆ shift() [2/2]

template<class Derived >
static bool STK::hidden::CheckShift< Derived, Arrays::diagonal_ >::shift ( Derived const array,
int  beginRow,
int  beginCol 
)
inlinestatic

Definition at line 142 of file STK_AssignSelector.h.

143 { return (array.beginRows() != beginRow || array.beginCols() != beginCol);}

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