名前空間
変種
操作

operator==,!=,<,<=,>,>=<div class="t-tr-text">はstd :: valarrayの<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">std::valarray</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>

提供: 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.
 
template< class T >

valarray<bool> operator==( const valarray<T>& lhs, const valarray<T>& rhs );
template< class T >
valarray<bool> operator!=( const valarray<T>& lhs, const valarray<T>& rhs );
template< class T >
valarray<bool> operator<( const valarray<T>& lhs, const valarray<T>& rhs );
template< class T >
valarray<bool> operator<=( const valarray<T>& lhs, const valarray<T>& rhs );
template< class T >
valarray<bool> operator>( const valarray<T>& lhs, const valarray<T>& rhs );
template< class T >

valarray<bool> operator>=( const valarray<T>& lhs, const valarray<T>& rhs );
(1)
template< class T >

valarray<bool> operator==( const T& lhsv, const valarray<T>& rhs );
template< class T >
valarray<bool> operator!=( const T& lhsv, const valarray<T>& rhs );
template< class T >
valarray<bool> operator<( const T& lhsv, const valarray<T>& rhs );
template< class T >
valarray<bool> operator<=( const T& lhsv, const valarray<T>& rhs );
template< class T >
valarray<bool> operator>( const T& lhsv, const valarray<T>& rhs );
template< class T >

valarray<bool> operator>=( const T& lhsv, const valarray<T>& rhs );
(2)
template< class T >

valarray<bool> operator==( const valarray<T>& lhs, const T& rhsv );
template< class T >
valarray<bool> operator!=( const valarray<T>& lhs, const T& rhsv );
template< class T >
valarray<bool> operator<( const valarray<T>& lhs, const T& rhsv );
template< class T >
valarray<bool> operator<=( const valarray<T>& lhs, const T& rhsv );
template< class T >
valarray<bool> operator>( const valarray<T>& lhs, const T& rhsv );
template< class T >

valarray<bool> operator>=( const valarray<T>& lhs, const T& rhsv );
(3)
別の値が数値配列内の各値を比較.
Original:
Compares each value within the numeric array with another value.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
boollhsの対応する値に指定された比較演算子を適用することによって得られるそれぞれのrhs含む要素の数値の配列を返します
Original:
Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to the corresponding values of lhs and rhs
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
size() != v.size()場合の動作は未定義です
Original:
The behavior is undefined if size() != v.size()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
boollhsvの対応する値に指定された比較演算子を適用することによって得られるそれぞれのrhs含む要素の数値の配列を返します。.
Original:
Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to lhsv and the corresponding value of rhs .
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
boollhsの対応する値に指定された比較演算子を適用することによって得られるそれぞれのrhsv含む要素の数値の配列を返します。.
Original:
Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to the corresponding value of lhs and rhsv.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目次

[編集] パラメータ

lhs, rhs -
比較するための数値配列
Original:
numeric arrays to compare
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lhsv, rhsv -
値が数値の配列内の各要素と比較する
Original:
values to compare to each element within a numeric array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

対応する要素の比較結果を含むboolの数値配列.
Original:
A numeric array of bool containing comparison results of corresponding elements.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 例外

(なし)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] ノート

次の要件が満たされている場合の演算子は、インスタンシエーションのみできます
Original:
Each of the operators can only be instantiated if the following requirements are met:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • 指定された演算子はTを入力するために適用することができる
    Original:
    The indicated operator can be applied to type T
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • 結果値が一義的boolに変換することができます.
    Original:
    The result value can be unambiguously converted to bool.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
関数はstd::valarrayから別の戻り値型で実装することができます。この場合、交換型は、次のプロパティがあります
Original:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • constのすべてstd::valarrayメンバ関数が用意されています.
    Original:
    All const member functions of std::valarray are provided.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • std::valarraystd::slice_arraystd::gslice_arraystd::mask_arraystd::indirect_array交換タイプから構築することができます.
    Original:
    std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can be constructed from the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • タイプconst std::valarray&の引数を受け付ける機能は、すべての交換タイプを受け入れる必要があります.
    Original:
    All functions accepting a arguments of type const std::valarray& should also accept the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • タイプconst std::valarray&の2つの引数を受け入れるすべての機能がconst std::valarray&と交換タイプのすべての組み合わせを受け入れるべき.
    Original:
    All functions accepting two arguments of type const std::valarray& should accept every combination of const std::valarray& and the replacement type.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.