numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
|
Class of roots of Legendre function. More...
#include <num_collect/functions/legendre_roots.h>
Public Types | |
using | variable_type = T |
Type of variables. | |
Public Member Functions | |
legendre_roots (index_type degree=0) | |
Constructor. | |
void | compute (index_type degree) |
Compute roots of Legendre function. | |
auto | degree () const noexcept -> index_type |
Get the degree of Legendre function. | |
auto | operator[] (index_type i) const -> variable_type |
Get the i-th root. | |
auto | root (index_type i) const -> variable_type |
Get the i-th root. | |
auto | size () const noexcept -> index_type |
Get the number of roots. | |
Private Attributes | |
index_type | degree_ |
Degree of Legendre function. | |
Eigen::Matrix< variable_type, Eigen::Dynamic, 1 > | roots_ {} |
List of roots. | |
Class of roots of Legendre function.
T | Type of variables. |
Definition at line 114 of file legendre_roots.h.
using num_collect::functions::legendre_roots< T >::variable_type = T |
Type of variables.
Definition at line 117 of file legendre_roots.h.
|
inlineexplicit |
Constructor.
[in] | degree | Degree of Legendre function. |
Definition at line 124 of file legendre_roots.h.
|
inline |
Compute roots of Legendre function.
[in] | degree | Degree of Legendre function. |
Definition at line 137 of file legendre_roots.h.
|
inlinenodiscardnoexcept |
Get the degree of Legendre function.
Definition at line 183 of file legendre_roots.h.
|
inlinenodiscard |
Get the i-th root.
[in] | i | Index. |
Definition at line 212 of file legendre_roots.h.
|
inlinenodiscard |
Get the i-th root.
[in] | i | Index. |
Definition at line 200 of file legendre_roots.h.
|
inlinenodiscardnoexcept |
|
private |
Degree of Legendre function.
Definition at line 218 of file legendre_roots.h.
|
private |
List of roots.
Definition at line 221 of file legendre_roots.h.