File Coefficients.h

Copyright

This code is licensed under the 3-clause BSD license.

Copyright ETH Zurich, Laboratory for Physical Chemistry, Reiher Group.

See LICENSE.txt for details.

namespace Scine

This header file contains functions that allow for common notation for common things that can be done at a different degree of derivatives.

This header contains alias definitions defining which classes to use for the different degrees of derivatives.

namespace Utils
namespace BSplines
class Coefficients
#include <Coefficients.h>

Class for the B-Spline coefficients N for some given derivativeOrder and u value. Since many of the coefficients are equal to zero, just the non-zero coefficients are saved.

Public Functions

Coefficients(int coefficientCount, int firstNonZeroIndex, Eigen::VectorXd nonZeroValues)
Eigen::VectorXd fullCoefficientVector() const
const Eigen::VectorXd &nonZeroCoefficients() const
int firstNonZeroIndex() const
int lastNonZeroIndex() const
int nonZeroCount() const
double get(int index) const

Private Members

int coefficientCount_
int firstNonZero_
Eigen::VectorXd nonZeroCoefficients_