名前空間
変種
操作

std::valarray::valarray

提供: cppreference.com
< cpp‎ | numeric‎ | valarray

 
 
ニューメリックスライブラリ
一般的な数学関数
浮動小数点環境
複素数
数値配列
擬似乱数生成
コンパイル時有理数演算 (C++11)
汎用の数値演算
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
std::valarray
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
非メンバ関数
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ヘルパークラス
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
valarray();
(1)
explicit valarray( size_t count );
(2)
valarray( const T& val, size_t count );
(3)
valarray( const T* vals, size_t count );
(4)
valarray( const valarray& other );
(5)
valarray( valarray&& other );
(6) (C + + 11以来)
valarray( const std::slice_array<T>& );
(7)
valarray( const std::gslice_array<T>& );
(8)
valarray( const std::mask_array<T>& );
(9)
valarray( const std::indirect_array<T>& );
(10)
valarray( std::initializer_list<T> il );
(11) (C + + 11以来)

Constructs new numeric array from various sources.

1) Default constructor. Constructs an empty numeric array.
2) Constructs a numeric array with count copies of default-initialized elements.
3) Constructs a numeric array with count copies of val or *val respectively.
4) Constructs a numeric array with copies of count values from an array pointed to by vals. If this array contains less than count values, the behavior is undefined.
5) Copy constructor. Constructs the numeric array with the copy of the contents of other.
6) Move constructor. Constructs the container with the contents of other using move semantics.
11) Constructs the numeric array with the contents of the initializer list il.

[編集] パラメータ

count - the number of elements to construct
val - the value to initialize the elements with
other - another numeric array to use as source to initialize the contents
il - initializer list to initialize the elements with

[編集] 例外

1-5)
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
noexcept specification:  
noexcept
  (C + + 11以来)
7-11)
(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.