|
PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
|
#include <generic_matrix.hpp>
Data Structures | |
| class | Snapshot |
Public Member Functions | |
| GenericMatrix () noexcept=default | |
| GenericMatrix (const GenericMatrix &) noexcept=default | |
| GenericMatrix & | operator= (const GenericMatrix &) noexcept=default |
| GenericMatrix (GenericMatrix &&other) noexcept | |
| GenericMatrix & | operator= (GenericMatrix &&other) noexcept |
| bool | get (int row, int col) const |
| void | set (int row, int col, bool val) |
| void | fill (bool val) |
| int | rows () const |
| int | columns () const |
| std::vector< bool > | row (int idx) const |
| std::vector< bool > | col (int idx) const |
| void | add_row (int idx, const std::vector< bool > &values) |
| void | add_col (int idx, const std::vector< bool > &values) |
| void | remove_row (int idx) |
| void | remove_col (int idx) |
| void | swap_rows (int i, int j) |
| void | swap_columns (int i, int j) |
| GenericMatrix | copy () const |
| GenericMatrix | submatrix (int from_row, int to_row, int from_col, int to_col) const |
| void | reshape (int new_rows, int new_cols) |
| void | reverse () |
| GenericMatrix | transpose () const |
| GenericMatrix | concat (const GenericMatrix &other, bool horizontal) const |
| template<typename Dummy = void> | |
| void | sort (int, bool=true) |
| int | elements_count () const |
| bool | is_na () const noexcept |
| Snapshot | snapshot () const |
| void | restore (const Snapshot &snapshot) |
| GenericMatrix () noexcept=default | |
| GenericMatrix (const GenericMatrix &) noexcept=default | |
| GenericMatrix (GenericMatrix &&other) noexcept | |
| GenericMatrix & | operator= (const GenericMatrix &) noexcept=default |
| GenericMatrix & | operator= (GenericMatrix &&other) noexcept |
| ~GenericMatrix ()=default | |
| bool | get (int row, int col) const |
| void | set (int row, int col, bool val) |
| void | fill (bool val) |
| int | rows () const |
| int | columns () const |
| std::vector< bool > | row (int idx) const |
| std::vector< bool > | col (int idx) const |
| const std::vector< bool > & | row_ref (int idx) const |
| void | add_row (int idx, const std::vector< bool > &values) |
| void | add_col (int idx, const std::vector< bool > &values) |
| void | remove_row (int idx) |
| void | remove_col (int idx) |
| void | swap_rows (int i, int j) |
| void | swap_columns (int i, int j) |
| GenericMatrix | copy () const |
| GenericMatrix | submatrix (int from_row, int to_row, int from_col, int to_col) const |
| GenericMatrix | transpose () const |
| GenericMatrix | concat (const GenericMatrix &other, bool horizontal) const |
| void | reshape (int new_rows, int new_cols) |
| void | reverse () |
| void | sort (int column, bool ascending=true) |
| int | elements_count () const |
| bool | is_na () const noexcept |
| Snapshot | snapshot () const |
| void | restore (const Snapshot &snapshot) |
Static Public Member Functions | |
| static GenericMatrix | new_ (int rows, int cols, bool init) |
| static GenericMatrix | new_ (int rows, int cols) |
| static GenericMatrix | new_ (int rows, int cols, bool init) |
| static GenericMatrix | new_ (int rows, int cols) |
Definition at line 501 of file generic_matrix.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 539 of file generic_matrix.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 206 of file generic_matrix.hpp.
|
default |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 541 of file generic_matrix.hpp.
|
inlinestaticnodiscard |
Definition at line 562 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::GenericMatrix(), pineforge::detail::matrix_call_error(), and rows().
|
inlinestaticnodiscard |
Definition at line 572 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::new_(), and rows().
|
inline |
Definition at line 576 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::col(), col(), pineforge::GenericMatrix< T >::columns(), pineforge::detail::matrix_call_error(), pineforge::GenericMatrix< T >::row(), row(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 589 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::col(), col(), pineforge::GenericMatrix< T >::columns(), pineforge::detail::matrix_call_error(), pineforge::GenericMatrix< T >::row(), row(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 602 of file generic_matrix.hpp.
|
inline |
Definition at line 607 of file generic_matrix.hpp.
|
inline |
Definition at line 610 of file generic_matrix.hpp.
Referenced by add_row().
|
inline |
Definition at line 615 of file generic_matrix.hpp.
References pineforge::detail::matrix_call_error(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 628 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), and pineforge::detail::matrix_call_error().
|
inline |
Definition at line 643 of file generic_matrix.hpp.
References columns(), pineforge::detail::matrix_call_error(), row(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 660 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), pineforge::detail::matrix_call_error(), and row().
|
inline |
Definition at line 684 of file generic_matrix.hpp.
References pineforge::detail::erase_row(), pineforge::detail::matrix_call_error(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 693 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), pineforge::detail::erase_col(), and pineforge::detail::matrix_call_error().
|
inline |
Definition at line 702 of file generic_matrix.hpp.
References pineforge::detail::matrix_call_error(), pineforge::GenericMatrix< T >::rows(), and pineforge::detail::swap_rows_impl().
|
inline |
Definition at line 711 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), pineforge::detail::matrix_call_error(), and pineforge::detail::swap_cols_impl().
|
inlinenodiscard |
Definition at line 720 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::GenericMatrix().
|
inlinenodiscard |
|
inline |
Definition at line 748 of file generic_matrix.hpp.
References pineforge::detail::reshape_impl().
|
inline |
Definition at line 752 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 757 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), pineforge::GenericMatrix< T >::GenericMatrix(), pineforge::GenericMatrix< T >::rows(), and pineforge::detail::transpose_impl().
|
inlinenodiscard |
Definition at line 763 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), pineforge::detail::concat_impl(), pineforge::GenericMatrix< T >::copy(), pineforge::detail::matrix_call_error(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 783 of file generic_matrix.hpp.
|
inline |
Definition at line 789 of file generic_matrix.hpp.
References pineforge::detail::elements_count_impl().
|
inlinenodiscardnoexcept |
Definition at line 793 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 795 of file generic_matrix.hpp.
Referenced by restore().
|
inline |
Definition at line 800 of file generic_matrix.hpp.
References pineforge::detail::matrix_snapshot_error(), and snapshot().
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 208 of file generic_matrix.hpp.
|
inlinestaticnodiscard |
Definition at line 234 of file generic_matrix.hpp.
|
inlinestaticnodiscard |
Definition at line 244 of file generic_matrix.hpp.
|
inline |
Definition at line 256 of file generic_matrix.hpp.
|
inline |
Definition at line 269 of file generic_matrix.hpp.
|
inline |
Definition at line 282 of file generic_matrix.hpp.
|
inline |
Definition at line 286 of file generic_matrix.hpp.
|
inline |
Definition at line 289 of file generic_matrix.hpp.
|
inline |
Definition at line 294 of file generic_matrix.hpp.
|
inline |
Definition at line 303 of file generic_matrix.hpp.
|
inline |
Definition at line 317 of file generic_matrix.hpp.
|
inline |
Definition at line 326 of file generic_matrix.hpp.
|
inline |
Definition at line 340 of file generic_matrix.hpp.
|
inline |
Definition at line 365 of file generic_matrix.hpp.
|
inline |
Definition at line 374 of file generic_matrix.hpp.
|
inline |
Definition at line 383 of file generic_matrix.hpp.
|
inline |
Definition at line 392 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 401 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 405 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 429 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 436 of file generic_matrix.hpp.
|
inline |
Definition at line 455 of file generic_matrix.hpp.
|
inline |
Definition at line 461 of file generic_matrix.hpp.
|
inline |
Definition at line 466 of file generic_matrix.hpp.
|
inline |
Definition at line 474 of file generic_matrix.hpp.
|
inlinenodiscardnoexcept |
Definition at line 478 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 480 of file generic_matrix.hpp.
|
inline |
Definition at line 485 of file generic_matrix.hpp.