Alpine3D  Alpine3D-3.2.0
checksum.h
Go to the documentation of this file.
1 /***********************************************************************************/
2 /* Copyright 2009-2015 WSL Institute for Snow and Avalanche Research SLF-DAVOS */
3 /***********************************************************************************/
4 /* This file is part of Alpine3D.
5  Alpine3D is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  Alpine3D is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with Alpine3D. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef CHECKSUM_H
19 #define CHECKSUM_H
20 
21 #include <meteoio/MeteoIO.h>
22 #include <snowpack/libsnowpack.h>
24 
25 double checksum(const CDoubleArray &x);
26 double checksum(const CDoubleArray &x, int start, int step);
27 
28 double checksum(const CElementArray &x);
29 double checksum(const mio::Array2D<double> &x);
30 double checksum_rows(const mio::Array2D<double> &x, const size_t& from, size_t to);
31 double checksum_cols(const mio::Array2D<double> &x, const size_t& from, size_t to);
32 double checksum_c(const mio::Grid3DObject &grid);
33 
34 //data structures from Snowpack
35 double checksum(const mio::Array1D<SnowStation> &x);
36 double checksum(const std::vector<ElementData>& x, const size_t n);
37 double checksum(const std::vector<NodeData>& x, const size_t n);
38 double checksum(const CanopyData &x);
39 
40 #endif
double checksum_rows(const mio::Array2D< double > &x, const size_t &from, size_t to)
Definition: checksum.cc:73
double checksum(const CDoubleArray &x)
Definition: checksum.cc:23
double checksum_c(const mio::Grid3DObject &grid)
mio::Array1D< double > CDoubleArray
Definition: SnowDrift.h:42
double checksum_cols(const mio::Array2D< double > &x, const size_t &from, size_t to)
Definition: checksum.cc:92
mio::Array2D< int > CElementArray
Definition: SnowDrift.h:41