Init
This commit is contained in:
31
cppdraft/gslice/access.md
Normal file
31
cppdraft/gslice/access.md
Normal file
@@ -0,0 +1,31 @@
|
||||
[gslice.access]
|
||||
|
||||
# 29 Numerics library [[numerics]](./#numerics)
|
||||
|
||||
## 29.6 Numeric arrays [[numarray]](numarray#gslice.access)
|
||||
|
||||
### 29.6.6 The gslice class [[class.gslice]](class.gslice#gslice.access)
|
||||
|
||||
#### 29.6.6.3 Access functions [gslice.access]
|
||||
|
||||
[ð](#lib:start,gslice)
|
||||
|
||||
`size_t start() const;
|
||||
valarray<size_t> size() const;
|
||||
valarray<size_t> stride() const;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8741)
|
||||
|
||||
*Returns*: The representation of the
|
||||
start, lengths, or strides specified for the gslice[.](#1.sentence-1)
|
||||
|
||||
[2](#2)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8746)
|
||||
|
||||
*Complexity*: start() is constant time[.](#2.sentence-1)
|
||||
|
||||
size() and stride() are linear in the number of strides[.](#2.sentence-2)
|
||||
22
cppdraft/gslice/array/assign.md
Normal file
22
cppdraft/gslice/array/assign.md
Normal file
@@ -0,0 +1,22 @@
|
||||
[gslice.array.assign]
|
||||
|
||||
# 29 Numerics library [[numerics]](./#numerics)
|
||||
|
||||
## 29.6 Numeric arrays [[numarray]](numarray#gslice.array.assign)
|
||||
|
||||
### 29.6.7 Class template gslice_array [[template.gslice.array]](template.gslice.array#gslice.array.assign)
|
||||
|
||||
#### 29.6.7.2 Assignment [gslice.array.assign]
|
||||
|
||||
[ð](#lib:operator=,gslice_array)
|
||||
|
||||
`void operator=(const valarray<T>&) const;
|
||||
const gslice_array& operator=(const gslice_array&) const;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8817)
|
||||
|
||||
These assignment operators have reference semantics, assigning the values
|
||||
of the argument array elements to selected elements of thevalarray<T> object to which thegslice_array refers[.](#1.sentence-1)
|
||||
31
cppdraft/gslice/array/comp/assign.md
Normal file
31
cppdraft/gslice/array/comp/assign.md
Normal file
@@ -0,0 +1,31 @@
|
||||
[gslice.array.comp.assign]
|
||||
|
||||
# 29 Numerics library [[numerics]](./#numerics)
|
||||
|
||||
## 29.6 Numeric arrays [[numarray]](numarray#gslice.array.comp.assign)
|
||||
|
||||
### 29.6.7 Class template gslice_array [[template.gslice.array]](template.gslice.array#gslice.array.comp.assign)
|
||||
|
||||
#### 29.6.7.3 Compound assignment [gslice.array.comp.assign]
|
||||
|
||||
[ð](#lib:operator*=,gslice_array)
|
||||
|
||||
`void operator*= (const valarray<T>&) const;
|
||||
void operator/= (const valarray<T>&) const;
|
||||
void operator%= (const valarray<T>&) const;
|
||||
void operator+= (const valarray<T>&) const;
|
||||
void operator-= (const valarray<T>&) const;
|
||||
void operator^= (const valarray<T>&) const;
|
||||
void operator&= (const valarray<T>&) const;
|
||||
void operator|= (const valarray<T>&) const;
|
||||
void operator<<=(const valarray<T>&) const;
|
||||
void operator>>=(const valarray<T>&) const;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8852)
|
||||
|
||||
These compound assignments have reference semantics, applying the
|
||||
indicated operation to the elements of the argument array and selected
|
||||
elements of thevalarray<T> object to which thegslice_array object refers[.](#1.sentence-1)
|
||||
21
cppdraft/gslice/array/fill.md
Normal file
21
cppdraft/gslice/array/fill.md
Normal file
@@ -0,0 +1,21 @@
|
||||
[gslice.array.fill]
|
||||
|
||||
# 29 Numerics library [[numerics]](./#numerics)
|
||||
|
||||
## 29.6 Numeric arrays [[numarray]](numarray#gslice.array.fill)
|
||||
|
||||
### 29.6.7 Class template gslice_array [[template.gslice.array]](template.gslice.array#gslice.array.fill)
|
||||
|
||||
#### 29.6.7.4 Fill function [gslice.array.fill]
|
||||
|
||||
[ð](#lib:operator=,gslice_array)
|
||||
|
||||
`void operator=(const T&) const;
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8870)
|
||||
|
||||
This function has reference semantics, assigning the value of its argument
|
||||
to the elements of thevalarray<T> object to which thegslice_array object refers[.](#1.sentence-1)
|
||||
25
cppdraft/gslice/cons.md
Normal file
25
cppdraft/gslice/cons.md
Normal file
@@ -0,0 +1,25 @@
|
||||
[gslice.cons]
|
||||
|
||||
# 29 Numerics library [[numerics]](./#numerics)
|
||||
|
||||
## 29.6 Numeric arrays [[numarray]](numarray#gslice.cons)
|
||||
|
||||
### 29.6.6 The gslice class [[class.gslice]](class.gslice#gslice.cons)
|
||||
|
||||
#### 29.6.6.2 Constructors [gslice.cons]
|
||||
|
||||
[ð](#lib:gslice,constructor)
|
||||
|
||||
`gslice();
|
||||
gslice(size_t start, const valarray<size_t>& lengths,
|
||||
const valarray<size_t>& strides);
|
||||
`
|
||||
|
||||
[1](#1)
|
||||
|
||||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/numerics.tex#L8720)
|
||||
|
||||
The default constructor is equivalent togslice(0, valarray<size_t>(), valarray<size_t>())[.](#1.sentence-1)
|
||||
|
||||
The constructor with arguments builds agslice based on a specification of start, lengths, and strides, as explained
|
||||
in the previous subclause[.](#1.sentence-2)
|
||||
Reference in New Issue
Block a user