/home/runner/work/kynema/kynema/kynema/src/math/least_squares_fit.hpp File Reference

Kynema API: /home/runner/work/kynema/kynema/kynema/src/math/least_squares_fit.hpp File Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
least_squares_fit.hpp File Reference
#include <array>
#include <ranges>
#include <span>
#include <stdexcept>
#include <vector>
#include <Kokkos_Core.hpp>
#include "Kynema_config.h"
#include "interpolation.hpp"

Go to the source code of this file.

Namespaces

namespace  kynema
 
namespace  kynema::math
 

Functions

std::vector< double > kynema::math::MapGeometricLocations (std::span< const double > geom_locations)
 Maps input geometric locations -> normalized domain using linear mapping.
 
std::vector< std::vector< double > > kynema::math::ComputeShapeFunctionValues (std::span< const double > input_points, std::span< const double > output_points)
 Computes shape function matrices ϕg relating points ξb to ξg At least two input points are required and it is assumed that there are more output points than input points.
 
std::vector< std::vector< double > > kynema::math::ComputeShapeFunctionDerivatives (std::span< const double > input_points, std::span< const double > output_points)
 Computes shape function derivatives dϕg relating points ξb to ξg At least two input points are required and it is assumed that there are more output points than input points.
 
std::vector< std::array< double, 3 > > kynema::math::PerformLeastSquaresFitting (size_t p, std::span< const std::vector< double > > shape_functions, std::span< const std::array< double, 3 > > points_to_fit)
 Performs least squares fitting to determine interpolation coefficients.