|
PineForge v0.13.1-379-g9b50973
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 419 of file generic_matrix.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 457 of file generic_matrix.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 172 of file generic_matrix.hpp.
|
default |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 459 of file generic_matrix.hpp.
|
inlinestaticnodiscard |
Definition at line 480 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::GenericMatrix(), and rows().
|
inlinestaticnodiscard |
Definition at line 488 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::new_(), and rows().
|
inline |
Definition at line 492 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::col(), col(), pineforge::GenericMatrix< T >::columns(), pineforge::GenericMatrix< T >::row(), row(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 501 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::col(), col(), pineforge::GenericMatrix< T >::columns(), pineforge::GenericMatrix< T >::row(), row(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 510 of file generic_matrix.hpp.
|
inline |
Definition at line 515 of file generic_matrix.hpp.
|
inline |
Definition at line 518 of file generic_matrix.hpp.
Referenced by add_row().
|
inline |
Definition at line 523 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 534 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns().
|
inline |
Definition at line 547 of file generic_matrix.hpp.
References columns(), row(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 560 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), and row().
|
inline |
Definition at line 578 of file generic_matrix.hpp.
References pineforge::detail::erase_row(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 585 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), and pineforge::detail::erase_col().
|
inline |
Definition at line 592 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::rows(), and pineforge::detail::swap_rows_impl().
|
inline |
Definition at line 599 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), and pineforge::detail::swap_cols_impl().
|
inlinenodiscard |
Definition at line 606 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::GenericMatrix().
|
inlinenodiscard |
Definition at line 610 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), pineforge::detail::copy_submatrix(), pineforge::GenericMatrix< T >::GenericMatrix(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 626 of file generic_matrix.hpp.
References pineforge::detail::reshape_impl().
|
inline |
Definition at line 630 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 635 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 641 of file generic_matrix.hpp.
References pineforge::GenericMatrix< T >::columns(), pineforge::detail::concat_impl(), pineforge::GenericMatrix< T >::copy(), and pineforge::GenericMatrix< T >::rows().
|
inline |
Definition at line 657 of file generic_matrix.hpp.
|
inline |
Definition at line 663 of file generic_matrix.hpp.
References pineforge::detail::elements_count_impl().
|
inlinenodiscardnoexcept |
Definition at line 667 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 669 of file generic_matrix.hpp.
Referenced by restore().
|
inline |
Definition at line 674 of file generic_matrix.hpp.
References snapshot().
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 174 of file generic_matrix.hpp.
|
inlinestaticnodiscard |
Definition at line 200 of file generic_matrix.hpp.
|
inlinestaticnodiscard |
Definition at line 208 of file generic_matrix.hpp.
|
inline |
Definition at line 218 of file generic_matrix.hpp.
|
inline |
Definition at line 227 of file generic_matrix.hpp.
|
inline |
Definition at line 236 of file generic_matrix.hpp.
|
inline |
Definition at line 240 of file generic_matrix.hpp.
|
inline |
Definition at line 243 of file generic_matrix.hpp.
|
inline |
Definition at line 248 of file generic_matrix.hpp.
|
inline |
Definition at line 255 of file generic_matrix.hpp.
|
inline |
Definition at line 267 of file generic_matrix.hpp.
|
inline |
Definition at line 274 of file generic_matrix.hpp.
|
inline |
Definition at line 284 of file generic_matrix.hpp.
|
inline |
Definition at line 303 of file generic_matrix.hpp.
|
inline |
Definition at line 310 of file generic_matrix.hpp.
|
inline |
Definition at line 317 of file generic_matrix.hpp.
|
inline |
Definition at line 324 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 331 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 335 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 351 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 358 of file generic_matrix.hpp.
|
inline |
Definition at line 373 of file generic_matrix.hpp.
|
inline |
Definition at line 379 of file generic_matrix.hpp.
|
inline |
Definition at line 384 of file generic_matrix.hpp.
|
inline |
Definition at line 392 of file generic_matrix.hpp.
|
inlinenodiscardnoexcept |
Definition at line 396 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 398 of file generic_matrix.hpp.
|
inline |
Definition at line 403 of file generic_matrix.hpp.