eisdrt 1.0.x
torchdrt.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 <torch/torch.h>
21
22#include "types.h"
23
41template<typename fv>
42torch::Tensor calcDrtTorch(torch::Tensor& impedanceSpectra, torch::Tensor& omegaTensor, FitMetrics& fm, const FitParameters& fp);
43
51template<typename fv>
52torch::Tensor calcImpedance(torch::Tensor& drt, fv rSeries, torch::Tensor& omegaVector);
53
torch::Tensor calcImpedance(torch::Tensor &drt, fv rSeries, torch::Tensor &omegaVector)
Calculates impedance from drt.
torch::Tensor calcDrtTorch(torch::Tensor &impedanceSpectra, torch::Tensor &omegaTensor, FitMetrics &fm, const FitParameters &fp)
Calculates a drt on eisgenerator types.
This is used to return information on a fit.
Definition types.h:51
Definition types.h:58