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. |
<metanoindex/>
<tbody> </tbody>| 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.
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. |
Valore di ritorno
Value array containing square roots of the values in va.
Note
sqrt) viene utilizzato per eseguire il calcolo. Se tale funzione non è disponibile, std::sqrt viene utilizzato a causa di ricerca tesi a carico.sqrt) is used to perform the computation. If such function is not available, std::sqrt is used due to argument dependent lookup.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
conststd::valarray sono forniti.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_arraye può essere costruito con il tipo di sostituzione.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. - 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 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. - Tutte le funzioni che accettano due argomenti di tipo
const std::valarray&dovrebbe accettare ogni combinazione diconst std::valarray&e il tipo di sostituzione.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.
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;
}
|
Esempio
| This section is incomplete Reason: no example |