![]() |
algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
|
The math types, implemented with Eigen. More...
#include "./scalar.hpp"#include <Eigen/Dense>#include <cstddef>Go to the source code of this file.
Classes | |
| struct | algotradelib::math::Observed |
| A series split into zero-filled values and a presence mask, for sums that skip gaps. More... | |
Namespaces | |
| namespace | algotradelib |
| The library: broker-neutral types (core), and the modules below. | |
| namespace | algotradelib::math |
| The numeric vocabulary: Scalar, missing(), and the matrix and vector types. | |
Typedefs | |
| using | algotradelib::math::Matrix = Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor> |
| A dense, column-major matrix of Scalar. | |
| using | algotradelib::math::Vector = Eigen::Matrix<Scalar, Eigen::Dynamic, 1> |
| A dense column vector of Scalar. | |
| using | algotradelib::math::SeriesView = Eigen::Ref<const Vector> |
| A read-only reference to one series. | |
| using | algotradelib::math::MutableSeriesView = Eigen::Ref<Vector> |
| A writable reference to one series, such as a Vector or a column of a Matrix. | |
| using | algotradelib::math::MatrixView = Eigen::Ref<const Matrix> |
| A read-only reference to a whole matrix. | |
| using | algotradelib::math::Index = Eigen::Index |
| The signed index type of rows and columns. | |
Functions | |
| Vector | algotradelib::math::unobserved (std::size_t count) |
| Makes a vector filled with missing(). | |
| Matrix | algotradelib::math::unobserved (std::size_t rows, std::size_t columns) |
| Makes a matrix filled with missing(). | |
| Observed | algotradelib::math::observed_parts (SeriesView values) |
| Splits a series into zero-filled values and a presence mask. | |
The math types, implemented with Eigen.
Include math/matrix.hpp rather than this header. Write against the math:: names (math::SeriesView, math::Matrix, ...) rather than the Eigen types behind them.
Definition in file eigen.hpp.