Cpp Standard Library 简明教程

C++ Library - <valarray>

Introduction

这是数值数组库,本文档标题声明了 valarray 类及其辅助类与函数。

It is a library for arrays of numeric values and this header declares the valarray class and its auxiliary classes and functions.

Classes

Sr.No.

Class & description

1

valarrayIt is a valarray class.

2

sliceIt is a valarray slice selector.

3

gsliceIt is a valarray generalized slice selector.

Global functions

Sr.No.

Global function & description

1

absIt computes absolute value of valarray elements.

2

acosIt computes arc cosine of valarray elements.

3

asinIt computes arc sine of valarray elements.

4

atanIt computes arc tangent of valarray elements.

5

atan2It computes atan2 of valarray elements.

6

cosIt computes cosine of valarray elements.

7

coshIt computes hyperbolic cosine of valarray elements.

8

expIt computes exponential of valarray element.

9

logIt computes natural logarithm of valarray elements.

10

log10It computes common logarithm of valarray elements.

11

powIt computes power of valarray elements.

12

sin It computes sine of valarray elements.

13

sinhIt computes hyperbolic sine of valarray elements.

14

sqrtIt computes square root of valarray elements.

15

tanIt computes tangent of valarray elements.

16

tanh It computes hyperbolic tangent of valarray elements.