<valarray>
Home Up

 

Same level pages:
<algorithms>
<cassert>
<cerrno>
<cctype>
<cfloat>
<climits>
<clocale>
<cmath>
<complex>
<csetjmp>
<csignal>
<cstdarg>
<cstddef>
<cstdio>
<cstdlib>
<cstring>
<ctime>
<cwchar>
<cwctype>
<exception>
<fstream>
<functional>
<iomanip>
<ios>
<iostream>
<istream>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<ostream>
<sstream>
<stdexcept>
<streambuf>
<string>
<typeinfo>
<utility>
<valarray>

Parent level pages:
STL
FAQs
Headers
Libraries

<valarray> is part of the Standard C++ Numerics Library.

Classes

template<class T> class valarray;
class slice;
template<class T> class slice_array;
class gslice;
template<class T> class gslice_array;
template<class T> class mask_array;
template<class T> class indirect_array;

Functions

Arithmetic Operators

Operator*

valarray<T> operator* (const valarray<T>&, const valarray<T>&);
valarray<T> operator* (const valarray<T>&, const T&);
valarray<T> operator* (const T&, const valarray<T>&);

Operator/

valarray<T> operator/ (const valarray<T>&, const valarray<T>&);
valarray<T> operator/ (const valarray<T>&, const T&);
valarray<T> operator/ (const T&, const valarray<T>&);

Operator%

valarray<T> operator% (const valarray<T>&, const valarray<T>&);
valarray<T> operator% (const valarray<T>&, const T&);
valarray<T> operator% (const T&, const valarray<T>&);

Operator+

valarray<T> operator+ (const valarray<T>&, const valarray<T>&);
valarray<T> operator+ (const valarray<T>&, const T&);
valarray<T> operator+ (const T&, const valarray<T>&);

Operator-

valarray<T> operator- (const valarray<T>&, const valarray<T>&);
valarray<T> operator- (const valarray<T>&, const T&);
valarray<T> operator- (const T&, const valarray<T>&);

Bit-wise Operators

Operator^ (XOR)

valarray<T> operator^ (const valarray<T>&, const valarray<T>&);
valarray<T> operator^ (const valarray<T>&, const T&);
valarray<T> operator^ (const T&, const valarray<T>&);

Operator& (AND)

valarray<T> operator& (const valarray<T>&, const valarray<T>&);
valarray<T> operator& (const valarray<T>&, const T&);
valarray<T> operator& (const T&, const valarray<T>&);

Operator| (OR)

valarray<T> operator| (const valarray<T>&, const valarray<T>&);
valarray<T> operator| (const valarray<T>&, const T&);
valarray<T> operator| (const T&, const valarray<T>&);

Operator<< (Left Shift)

valarray<T> operator<< (const valarray<T>&, const valarray<T>&);
valarray<T> operator<< (const valarray<T>&, const T&);
valarray<T> operator<< (const T&, const valarray<T>&);

Operator>> (Right Shift)

valarray<T> operator>> (const valarray<T>&, const valarray<T>&);
valarray<T> operator>> (const valarray<T>&, const T&);
valarray<T> operator>> (const T&, const valarray<T>&);

Logical Operators

Operator&& (and)

valarray<T> operator&& (const valarray<T>&, const valarray<T>&);
valarray<T> operator&& (const valarray<T>&, const T&);
valarray<T> operator&& (const T&, const valarray<T>&);

Operator|| (or)

valarray<T> operator|| (const valarray<T>&, const valarray<T>&);
valarray<T> operator|| (const valarray<T>&, const T&);
valarray<T> operator|| (const T&, const valarray<T>&);

Relational Operators

Operator== (equal)

valarray<bool> operator== (const valarray<T>&, const valarray<T>&);
valarray<bool> operator== (const valarray<T>&, const T&);
valarray<bool> operator== (const T&, const valarray<T>&);

Operator!= (not equal)

valarray<bool> operator!= (const valarray<T>&, const valarray<T>&);
valarray<bool> operator!= (const valarray<T>&, const T&);
valarray<bool> operator!= (const T&, const valarray<T>&);

Operator< (less)

valarray<bool> operator< (const valarray<T>&, const valarray<T>&);
valarray<bool> operator< (const valarray<T>&, const T&);
valarray<bool> operator< (const T&, const valarray<T>&);

Operator> (greater)

valarray<bool> operator> (const valarray<T>&, const valarray<T>&);
valarray<bool> operator> (const valarray<T>&, const T&);
valarray<bool> operator> (const T&, const valarray<T>&);

Operator<= (less or equal)

valarray<bool> operator<= (const valarray<T>&, const valarray<T>&);
valarray<bool> operator<= (const valarray<T>&, const T&);
valarray<bool> operator<= (const T&, const valarray<T>&);

Operator>= (greater or equal)

valarray<bool> operator>= (const valarray<T>&, const valarray<T>&);
valarray<bool> operator>= (const valarray<T>&, const T&);
valarray<bool> operator>= (const T&, const valarray<T>&);

Min/Max Functions

T min (const valarray<T>&);
T max (const valarray<T>&);

Numeric Functions

valarray<T> abs (const valarray<T>&);
valarray<T> acos (const valarray<T>&);
valarray<T> asin (const valarray<T>&);
valarray<T> atan (const valarray<T>&);
valarray<T> atan2 (const valarray<T>&, const valarray<T>&);
valarray<T> atan2 (const valarray<T>&, const T&);
valarray<T> atan2 (const T&, const valarray<T>&);
valarray<T> cos (const valarray<T>&);
valarray<T> cosh (const valarray<T>&);
valarray<T> exp (const valarray<T>&);
valarray<T> log (const valarray<T>&);
valarray<T> log10 (const valarray<T>&);
valarray<T> pow (const valarray<T>&, const valarray<T>&);
valarray<T> pow (const valarray<T>&, const T&);
valarray<T> pow (const T&, const valarray<T>&);
valarray<T> sin (const valarray<T>&);
valarray<T> sinh (const valarray<T>&);
valarray<T> sqrt (const valarray<T>&);
valarray<T> tan (const valarray<T>&);
valarray<T> tanh (const valarray<T>&);
 
ŠPaul Buis & Ball State University Author: Paul Buis (peb@bsu.edu) Last Modified:10/30/00 04:46 PM

NOTICE: The information presented on this page represents the personal views, ideas, and opinions of the author. This is not an official Ball State University web page. Links contained at this web site to other organizations, are presented as a service and neither constitute nor imply university endorsement or warranty.