ARTS
2.0.49
|
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... | |
Typedefs | |
typedef Array< Index > | ArrayOfIndex |
An array of Index. More... | |
typedef Array< ArrayOfIndex > | ArrayOfArrayOfIndex |
typedef Array< Numeric > | ArrayOfNumeric |
An array of Numeric. More... | |
typedef Array< Vector > | ArrayOfVector |
An array of vectors. More... | |
typedef Array< Matrix > | ArrayOfMatrix |
An array of matrices. More... | |
typedef Array< ArrayOfMatrix > | ArrayOfArrayOfMatrix |
typedef Array< Sparse > | ArrayOfSparse |
An array of sparse matrices. More... | |
typedef Array< Tensor3 > | ArrayOfTensor3 |
An array of Tensor3. More... | |
typedef Array< ArrayOfTensor3 > | ArrayOfArrayOfTensor3 |
typedef Array< Tensor4 > | ArrayOfTensor4 |
An array of Tensor4. More... | |
typedef Array< Tensor5 > | ArrayOfTensor5 |
An array of Tensor5. More... | |
typedef Array< Tensor6 > | ArrayOfTensor6 |
An array of Tensor6. More... | |
typedef Array< ArrayOfTensor6 > | ArrayOfArrayOfTensor6 |
typedef Array< Tensor7 > | ArrayOfTensor7 |
An array of Tensor7. More... | |
Functions | |
template<class base > | |
ostream & | operator<< (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<ArrayOfTensor6> ArrayOfArrayOfTensor6 |
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 302 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 277 of file array.h.
References Array< base >::nelem().
Referenced by SpeciesTag::SpeciesTag().
|
inline |
|
inline |