eisdrt 1.0.x
eistorchdrt.h
1/* * libeisdrt - A library to calculate EIS Drts
2 * Copyright (C) 2023 Carl Klemm <carl@uvos.xyz>
3 *
4 * This file is part of libeisdrt.
5 *
6 * libeisdrt is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * libeisdrt is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with libeisdrt. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include <eisgenerator/eistype.h>
21
22#include "torchdrt.h"
23
42torch::Tensor calcDrtTorch(const std::vector<eis::DataPoint>& data, const std::vector<fvalue>& omegaVector, FitMetrics& fm, const FitParameters& fp);
43
52torch::Tensor calcDrtTorch(const std::vector<eis::DataPoint>& data, FitMetrics& fm, const FitParameters& fp);
53
54
63torch::Tensor calcImpedance(torch::Tensor& drt, fvalue rSeries, const std::vector<fvalue>& omegaVector);
64
torch::Tensor calcDrtTorch(const std::vector< eis::DataPoint > &data, const std::vector< fvalue > &omegaVector, FitMetrics &fm, const FitParameters &fp)
Calculates impedance from drt using torch datatypes.
torch::Tensor calcImpedance(torch::Tensor &drt, fvalue rSeries, const std::vector< fvalue > &omegaVector)
Calculates impedance from drt using eisgenerator datatypes.
This is used to return information on a fit.
Definition types.h:51
Definition types.h:58