std::sqrt<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>
![]() |
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <valarray>
|
||
template< class T > valarray<T> sqrt( const valarray<T>& va ); |
||
For each element in va
computes the square root of the value of the element.
Indice |
[modifica] Parametri
va | - | matrice valore per applicare l'operazione
Original: value array to apply the operation to 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
Value array containing square roots of the values in va
.
[modifica] Note
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.
- 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.
-
[modifica] Possibile implementazione
template<class T> valarray<T> sqrt(const valarray<T>& va) { valarray<T> other = va; for (T &i : other) { i = sqrt(i); } return other; } |
[modifica] Esempio
This section is incomplete Reason: no example |