<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
valarray [C++ Reference]
</title>
<meta name="generator" content="DokuWiki Release 2009-12-25c &quot;Lemming&quot;" />
<meta name="robots" content="index,follow" />
<meta name="date" content="2009-06-08T16:54:06-0700" />
<meta name="keywords" content="valarray,start" />
<link rel="search" type="application/opensearchdescription+xml" href="/wiki/lib/exe/opensearch.php" title="C++ Reference" />
<link rel="start" href="/wiki/" />
<link rel="contents" href="/wiki/valarray/start?do=index" title="Index" />
<link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/wiki/feed.php" />
<link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/wiki/feed.php?mode=list&amp;ns=valarray" />
<link rel="edit" title="Edit this page" href="/wiki/valarray/start?do=edit" />
<link rel="alternate" type="text/html" title="Plain HTML" href="/wiki/_export/xhtml/valarray/start" />
<link rel="alternate" type="text/plain" title="Wiki Markup" href="/wiki/_export/raw/valarray/start" />
<link rel="canonical" href="http://www.cppreference.com/wiki/valarray/start" />
<link rel="stylesheet" media="all" type="text/css" href="/wiki/lib/exe/css.php?s=all&amp;t=custom1&amp;tseed=1272971091" />
<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1&amp;tseed=1272971091" />
<link rel="stylesheet" media="print" type="text/css" href="/wiki/lib/exe/css.php?s=print&amp;t=custom1&amp;tseed=1272971091" />
<script type="text/javascript" charset="utf-8" ><!--//--><![CDATA[//><!--
var NS='valarray';var JSINFO = {"id":"valarray:start","namespace":"valarray"};
//--><!]]></script>
<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?tseed=1272971091" ></script>
<link rel="shortcut icon" href="/wiki/lib/tpl/custom1/images/favicon.png" />
</head>
<body>
<div class="dokuwiki">
<div class="stylehead">
<div class="breadcrumbs">
<span class="bchead">You are here: </span><a href="../start.html" title="start">C++ Reference</a> &raquo; <a href="../valarray/start.html" title="valarray:start">valarray</a> </div>
</div>
<div class="page">
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2828341-1";
urchinTracker();
</script>
<!-- wikipage start -->
<h1><a name="valarray" id="valarray">valarray</a></h1>
<div class="level1">
<p>
The valarray provides a computationally optimized implementation of an array container.
</p>
<table class="inline">
<tr class="row0">
<td class="col0"><a href="../valarray/valarray.html" class="wikilink1" title="valarray:valarray_constructors">Constructors</a></td><td class="col1">create valarrays and initialize them with some data</td>
</tr>
<tr class="row1">
<td class="col0"><a href="../valarray/operator.html" class="wikilink1" title="valarray:valarray_operators">Operators</a></td><td class="col1">compare, assign, and access elements of a valarray</td>
</tr>
<tr class="row2">
<td class="col0"><a href="../valarray/apply.html" class="wikilink1" title="valarray:apply">apply</a></td><td class="col1">applies function to all elements in the valarray</td>
</tr>
<tr class="row3">
<td class="col0"><a href="../valarray/cshift.html" class="wikilink1" title="valarray:cshift">cshift</a></td><td class="col1">cyclically shifts the elements (left for i&lt;0, right for i&gt;0)</td>
</tr>
<tr class="row4">
<td class="col0"><a href="../valarray/max.html" class="wikilink1" title="valarray:max">max</a></td><td class="col1">returns the maximum value in the valarray</td>
</tr>
<tr class="row5">
<td class="col0"><a href="../valarray/min.html" class="wikilink1" title="valarray:min">min</a></td><td class="col1">returns the minimum value in the valarray</td>
</tr>
<tr class="row6">
<td class="col0"><a href="../valarray/resize.html" class="wikilink1" title="valarray:resize">resize</a></td><td class="col1">change the size of the vector</td>
</tr>
<tr class="row7">
<td class="col0"><a href="../valarray/shift.html" class="wikilink1" title="valarray:shift">shift</a></td><td class="col1">logically shifts the elements (left for i&lt;0, right for i&gt;0)</td>
</tr>
<tr class="row8">
<td class="col0"><a href="../valarray/size.html" class="wikilink1" title="valarray:size">size</a></td><td class="col1">returns the number of items in the vector</td>
</tr>
<tr class="row9">
<td class="col0"><a href="../valarray/sum.html" class="wikilink1" title="valarray:sum">sum</a></td><td class="col1">sum elements of a valarray</td>
</tr>
</table>
<p>
Related topics <a href="../valarray/slice_array.html" class="wikilink2" title="valarray:slice_array" rel="nofollow">slice_array</a> <a href="../valarray/gslice_array.html" class="wikilink2" title="valarray:gslice_array" rel="nofollow">gslice_array</a> <a href="../valarray/mask_array.html" class="wikilink2" title="valarray:mask_array" rel="nofollow">mask_array</a> <a href="../valarray/indirect_array.html" class="wikilink2" title="valarray:indirect_array" rel="nofollow">indirect_array</a>
</p>
</div>
<!-- wikipage stop -->
</div>
<div class="clearer">&nbsp;</div>
<div class="stylefoot">
<div class="meta">
<div class="user">
</div>
<!--
<div class="doc">
valarray/start.txt &middot; Last modified: 06/08/2009 16:54 by 72.197.34.74 </div>
-->
</div>
</div></div></body>
</html>