Espacios de nombres
Variantes
Acciones

std::valarray::operator+,-,~,!

De cppreference.com
< cpp‎ | numeric‎ | valarray
 
 
 
 
valarray<T> operator+() const;
(1)
valarray<T> operator-() const;
(2)
valarray<T> operator~() const;
(3)
valarray<bool> operator!() const;
(4)
Se aplica a los operadores unarios cada elemento de la matriz numérica .
Original:
Applies unary operators to each element in the numeric array.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Contenido

[editar] Parámetros

(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.

[editar] Valor de retorno

Una matriz numérica que contiene elementos con los valores obtenidos mediante la aplicación de operador correspondiente a los valores en *this .
Original:
A numeric array containing elements with values obtained by applying corresponding operator to the values in *this.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] 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.

[editar] 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.
  • El operador indicado se puede aplicar al tipo 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.
  • El valor resultante puede ser convertida de forma inequívoca a T (1-3) o bool (4) .
    Original:
    The result value can be unambiguously converted to T (1-3) or bool (4).
    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.