Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

gslice_array

Library:  Numerics


Does not inherit

Local Index

Members

Summary

A numeric array class used to represent a BLAS-like slice from a valarray

Synopsis

#include <valarray>

namespace std {
  template <class T>
  class gslice_array;
}

Description

gslice_array creates a gslice view into a valarray. A gslice_array can only be produced by applying the gslice subscript operator to a valarray. The elements in a gslice_array are references to selected elements in the valarray (so changing an element in the gslice_array really changes the corresponding element in the valarray). A gslice_array does not itself hold any distinct elements. The template cannot be instantiated directly since all its constructors are private. However, you can copy a gslice_array to a valarray using either the valarray copy constructor or the assignment operator. Reference semantics are lost at that point.

Interface

Constructors

gslice_array();
gslice_array(const gslice_array&);

Assignment Operators

void operator=(const valarray<T>& x) const;
gslice_array<T>& 
operator=(const gslice_array<T>& x);
void operator=(const T& x) const;

Computed Assignment Operators

void operator*=(const valarray<T>& val) const;
void operator/=(const valarray<T>& val) const;
void operator%=(const valarray<T>& val) const;
void operator+=(const valarray<T>& val) const;
void operator-=(const valarray<T>& val) const;
void operator^=(const valarray<T>& val) const;
void operator&=(const valarray<T>& val) const;
void operator|=(const valarray<T>& val) const;
void operator<<=(const valarray<T>& val) const;
void operator>>=(const valarray<T>& val) const;

Example

See Also

slice, valarray, gslice, slice_array, mask_array, indirect_array

Standards Conformance

ISO/IEC 14882:1998 -- International Standard for Information Systems -- Programming Language C++, Section 26.3.7



Previous fileTop of DocumentContentsIndex pageNext file