#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. | |
typedef Array< ArrayOfIndex > | ArrayOfArrayOfIndex |
typedef Array< Numeric > | ArrayOfNumeric |
An array of Numeric. | |
typedef Array< Vector > | ArrayOfVector |
An array of vectors. | |
typedef Array< Matrix > | ArrayOfMatrix |
An array of matrices. | |
typedef Array< ArrayOfMatrix > | ArrayOfArrayOfMatrix |
typedef Array< Tensor3 > | ArrayOfTensor3 |
An array of Tensor3. | |
typedef Array< ArrayOfTensor3 > | ArrayOfArrayOfTensor3 |
typedef Array< Tensor4 > | ArrayOfTensor4 |
An array of Tensor4. | |
typedef Array< Tensor5 > | ArrayOfTensor5 |
An array of Tensor5. | |
typedef Array< Tensor6 > | ArrayOfTensor6 |
An array of Tensor6. | |
typedef Array< ArrayOfTensor6 > | ArrayOfArrayOfTensor6 |
typedef Array< Tensor7 > | ArrayOfTensor7 |
An array of Tensor7. | |
Functions | |
template<class base> | |
ostream & | operator<< (ostream &os, const Array< base > &v) |
Output operator. | |
template<class base> | |
base | max (const Array< base > &x) |
Max function. | |
template<class base> | |
base | min (const Array< base > &x) |
Min function. | |
template<class base> | |
Index | find_first (const Array< base > &x, const base &w) |
Find first occurance. | |
template<class base> | |
void | find_all (ArrayOfIndex &pos, const Array< base > &x, const base &w) |
Find all occurances. |
Definition in file array.h.
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<Vector> ArrayOfVector |
void find_all | ( | ArrayOfIndex & | pos, | |
const Array< base > & | x, | |||
const base & | w | |||
) | [inline] |
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 298 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 273 of file array.h.
References Array< base >::nelem().
Referenced by SpeciesTag::SpeciesTag().
base max | ( | const Array< base > & | x | ) | [inline] |
base min | ( | const Array< base > & | x | ) | [inline] |
ostream& operator<< | ( | ostream & | os, | |
const Array< base > & | v | |||
) | [inline] |