Namespace
Varianti

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

Da cppreference.com.
< cpp‎ | numeric‎ | valarray

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale (C++11)
Generici operazioni numeriche
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
Membri funzioni
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.
Non membri funzioni
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.
Helper classi
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<T> operator+() const;
(1)
valarray<T> operator-() const;
(2)
valarray<T> operator~() const;
(3)
valarray<bool> operator!() const;
(4)
Si applica operatori unari ad ogni elemento della matrice numerica.
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.

Indice

[modifica] Parametri

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

[modifica] Valore di ritorno

Un array numerico contenente elementi con valori ottenuti applicando operatore corrispondente ai valori in *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.

[modifica] Eccezioni

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

[modifica] Note

Ciascuno degli operatori può essere un'istanza se soddisfa i seguenti requisiti:
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.
  • L'operatore indicato può essere applicato 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.
  • Il valore risultante può essere convertito in modo inequivocabile 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 funzione può essere implementata con il tipo restituito diverso da std::valarray. In questo caso, il tipo di sostituzione ha le seguenti proprietà:
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.
  • Tutte le funzioni di membro const std::valarray sono forniti.
    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::valarray, std::slice_array, std::gslice_array, std::mask_array std::indirect_array e può essere costruito con il tipo di sostituzione.
    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.
  • Tutte le funzioni che accettano un argomento di const std::valarray& tipo devono anche accettare il tipo di sostituzione.
    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.
  • Tutte le funzioni che accettano due argomenti di tipo const std::valarray& dovrebbe accettare ogni combinazione di const std::valarray& e il tipo di sostituzione.
    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.