|
ARTS
2.2.66
|
This file contains the definition of Array. More...
#include <vector>#include <iostream>#include <iomanip>#include <cassert>#include <climits>#include "matpack.h"
Go to the source code of this file.
Classes | |
| class | Array< base > |
| This can be used to make arrays out of anything. More... | |
| class | Array< base > |
| This can be used to make arrays out of anything. More... | |
Functions | |
| template<class base > | |
| std::ostream & | operator<< (std::ostream &os, const Array< base > &v) |
| Output operator. More... | |
| template<class base > | |
| base | max (const Array< base > &x) |
| Max function. More... | |
| template<class base > | |
| base | min (const Array< base > &x) |
| Min function. More... | |
| template<class base > | |
| Index | find_first (const Array< base > &x, const base &w) |
| Find first occurance. More... | |
| template<class base > | |
| void | find_all (ArrayOfIndex &pos, const Array< base > &x, const base &w) |
| Find all occurances. More... | |
| typedef Array<ArrayOfIndex> ArrayOfArrayOfIndex |
| typedef Array<ArrayOfMatrix> ArrayOfArrayOfMatrix |
| typedef Array<ArrayOfTensor3> ArrayOfArrayOfTensor3 |
| typedef Array<ArrayOfTensor4> ArrayOfArrayOfTensor4 |
| typedef Array<ArrayOfTensor6> ArrayOfArrayOfTensor6 |
| typedef Array<ArrayOfVector> ArrayOfArrayOfVector |
| typedef Array<Index> ArrayOfIndex |
| typedef Array<Matrix> ArrayOfMatrix |
| typedef Array<Numeric> ArrayOfNumeric |
| typedef Array<Sparse> ArrayOfSparse |
| typedef Array<Vector> ArrayOfVector |
| void find_all | ( | ArrayOfIndex & | pos, |
| const Array< base > & | x, | ||
| const base & | w | ||
| ) |
Find all occurances.
This calculates an array of indices of all occurances of w in array x.
An empty output array means that no occurance was found.
| pos | Array with positions of w in the array. |
| x | The array to search. |
| w | The value to look for. |
Definition at line 306 of file array.h.
References Array< base >::nelem().
Referenced by chk_contains().
Find first occurance.
This returns the index of the first occurance of w in array x.
A return value of -1 indicates that no matching element was found.
| x | The array to search. |
| w | The value to look for. |
Definition at line 281 of file array.h.
References Array< base >::nelem().
Referenced by fos(), iyEmissionStandard(), iyRadioLink(), iyTransmissionStandard(), SpeciesTag::SpeciesTag(), and xml_read_from_stream().
|
inline |
|
inline |