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>
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
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) | |
Compara cada valor dentro de la matriz numérica con otro valor .
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.
You can help to correct and verify the translation. Click here for instructions.
1)
Devuelve una matriz numérica de elementos
bool que contienen cada uno de los cuales se obtiene mediante la aplicación del operador de comparación indicado a los valores correspondientes de lhs y rhsOriginal:
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 rhsThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
El comportamiento no está definido si
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.
You can help to correct and verify the translation. Click here for instructions.
2)
Devuelve una matriz numérica de elementos
bool que contienen cada uno de los cuales se obtiene mediante la aplicación del operador de comparación indicado a lhsv y el valor correspondiente de 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.
You can help to correct and verify the translation. Click here for instructions.
3)
Devuelve una matriz numérica de elementos
bool que contienen cada uno de los cuales se obtiene mediante la aplicación del operador de comparación indicado y el valor correspondiente de lhs y 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.
You can help to correct and verify the translation. Click here for instructions.
Parámetros
| lhs, rhs | - | matrices numéricas para comparar
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 | - | para comparar valores de cada elemento dentro de una matriz numérica
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. |
Valor de retorno
Una matriz numérica de
bool que contiene resultados de la comparación de los elementos correspondientes .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.
You can help to correct and verify the translation. Click here for instructions.
Excepciones
(Ninguno)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Notas
Cada uno de los operadores sólo pueden crear instancias que reúnan las siguientes condiciones:
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.
You can help to correct and verify the translation. Click here for instructions.
- El operador indicado se puede aplicar al tipo
TOriginal:The indicated operator can be applied to typeTThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - El valor resultante puede ser convertida de forma inequívoca a
bool.Original:The result value can be unambiguously converted tobool.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
La función se puede implementar con el tipo de retorno diferente de std::valarray. En este caso, el tipo de reemplazo tiene las siguientes propiedades:
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.
You can help to correct and verify the translation. Click here for instructions.
- Todas las funciones miembro de
conststd::valarray se proporcionan .Original:Allconstmember 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::valarray,
std::slice_array,std::gslice_array,std::mask_arraystd::indirect_arrayy puede ser construida a partir del tipo de reemplazo .Original:std::valarray,std::slice_array,std::gslice_array,std::mask_arrayandstd::indirect_arraycan 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. - Todas las funciones que aceptan un argumento de tipo
const std::valarray&también deben aceptar el tipo de reemplazo .Original:All functions accepting a arguments of typeconst 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. - Todas las funciones que aceptan dos argumentos de tipo
const std::valarray&debe aceptar todas las combinaciones deconst std::valarray&y el tipo de reemplazo .Original:All functions accepting two arguments of typeconst std::valarray&should accept every combination ofconst 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.