[ Web Proxy ]
URL:
Viewing: https://ru.cppreference.com/cpp/numeric/valarray/pow [Back]  [Original]

std::pow<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">:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes"> [http://translate.google.com Google].<br/> . [http://en.cppreference.com/w/Cppreference:MachineTranslations ].</div></div></div></div></div> cppreference.com
cppreference.com

std::pow<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">:</div><div class="t-tr-dropdown-orig">(std::valarray)</div><div class="t-tr-dropdown-notes"> [http://translate.google.com Google].<br/> . [http://en.cppreference.com/w/Cppreference:MachineTranslations ].</div></div></div></div></div>

cppreference.com

<metanoindex/>

 
C++
(C++20)
(C++20)
(C++11)
(C++20)
/
(C++11)
(C++11)
(C++11)
(C++17)
 
(C++17)
(C++20)
(C++11)
(C++11)
(C++17)
(C++17)
(C++20)
(C++20)
(C++11)
(C++17)
(C++20)
(C++23)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
 
 
<tbody> </tbody>
template< class T > valarray<T> pow( const valarray<T>& base, const valarray<T>& exp );
(1)
template< class T > valarray<T> pow( const valarray<T>& base, const T& vexp );
(2)
template< class T > valarray<T> pow( const T& vbase, const valarray<T>& exp );
(3)
.
:
Raises a value to a power.
Google.
. .
1)
base, exp .
:
Computes the values of each element in the numeric array base raised to the power specified by the corresponding element from the numeric array exp.
Google.
. .
, base.size() != exp.size().
:
The behavior is undefined if base.size() != exp.size().
Google.
. .
2)
base, vexp.
:
Computes the values of each element in the numeric array base raised to the power vexp.
Google.
. .
3)
vbase, exp.
:
Computes the values of vbase raised to the power defined by the elements in the numeric array exp.
Google.
. .

base
,
:
numeric array containing the values of the base
Google.
. .
exp
,
:
numeric array containing the values of the exponent
Google.
. .
vbase
:
a value defining the base
Google.
. .
vexp
:
a value defining the exponent
Google.
. .

, .
:
A numeric array containing the results of exponentiation.
Google.
. .

(pow) . , std::pow .
:
Unqualified function (pow) is used to perform the computation. If such function is not available, std::pow is used due to argument dependent lookup.
Google.
. .
std::valarray. , :
:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
Google.
. .
  • const - std::valarray .
    :
    All const member functions of std::valarray are provided.
    Google.
    . .
  • std::valarray, std::slice_array, std::gslice_array, std::mask_array std::indirect_array .
    :
    std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can be constructed from the replacement type.
    Google.
    . .
  • , const std::valarray& .
    :
    All functions accepting a arguments of type const std::valarray& should also accept the replacement type.
    Google.
    . .
  • const std::valarray& const std::valarray& .
    :
    All functions accepting two arguments of type const std::valarray& should accept every combination of const std::valarray& and the replacement type.
    Google.
    . .

.

(C++11)(C++11)
(\(\small{x^y}\)xy)
() []

Web Proxy Viewer  |  New URL  |  Original Page