AFF --- A container for numbers (array) by Friederich and Forbriger.

◆ operator=()

template<class T >
Array< T > & aff::Array< T >::operator= ( const T &  value)

set whole array to value

set whole array to scalar value

Definition at line 570 of file array.h.

References aff::util::StridedStepper::current(), aff::util::StridedStepper::incr(), aff::util::StridedStepper::tofirst(), and aff::util::StridedStepper::valid().

571  {
572  Tshape::Tstepper st(this->shape());
573  for(st.tofirst(); st.valid(); st.incr())
574  { Mrepresentation[st.current()]=value; }
575  return(*this);
576  }
aff::util::StridedStepper Tstepper
type of stepper
Definition: strided.h:130
const Tshape & shape() const
provide access to const shape
Definition: array.h:318
Trepresentation Mrepresentation
my (mutable) data representation
Definition: array.h:528
Here is the call graph for this function: