|
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 |
| ~GenericMatrix ()=default | |
| T | get (int row, int col) const |
| void | set (int row, int col, T val) |
| void | fill (T val) |
| int | rows () const |
| int | columns () const |
| std::vector< T > | row (int idx) const |
| std::vector< T > | col (int idx) const |
| template<typename U = T, typename = std::enable_if_t<!std::is_same_v<U, bool>>> | |
| const std::vector< T > & | row_ref (int idx) const |
| void | add_row (int idx, const std::vector< T > &values) |
| void | add_col (int idx, const std::vector< T > &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, T init) |
| static GenericMatrix | new_ (int rows, int cols) |
Definition at line 130 of file generic_matrix.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 172 of file generic_matrix.hpp.
|
default |
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 174 of file generic_matrix.hpp.
|
inlinestaticnodiscard |
Definition at line 200 of file generic_matrix.hpp.
References GenericMatrix(), and rows().
Referenced by pineforge::GenericMatrix< bool >::new_().
|
inlinestaticnodiscard |
Definition at line 208 of file generic_matrix.hpp.
References GenericMatrix(), and rows().
|
inline |
|
inline |
|
inline |
Definition at line 236 of file generic_matrix.hpp.
|
inline |
Definition at line 240 of file generic_matrix.hpp.
Referenced by add_row(), pineforge::GenericMatrix< bool >::add_row(), concat(), pineforge::GenericMatrix< bool >::concat(), get(), pineforge::GenericMatrix< bool >::get(), new_(), new_(), remove_row(), pineforge::GenericMatrix< bool >::remove_row(), row(), pineforge::GenericMatrix< bool >::row(), row_ref(), set(), pineforge::GenericMatrix< bool >::set(), submatrix(), pineforge::GenericMatrix< bool >::submatrix(), swap_rows(), pineforge::GenericMatrix< bool >::swap_rows(), transpose(), and pineforge::GenericMatrix< bool >::transpose().
|
inline |
Definition at line 243 of file generic_matrix.hpp.
Referenced by add_col(), pineforge::GenericMatrix< bool >::add_col(), add_row(), col(), pineforge::GenericMatrix< bool >::col(), concat(), pineforge::GenericMatrix< bool >::concat(), get(), pineforge::GenericMatrix< bool >::get(), remove_col(), pineforge::GenericMatrix< bool >::remove_col(), set(), pineforge::GenericMatrix< bool >::set(), submatrix(), pineforge::GenericMatrix< bool >::submatrix(), swap_columns(), pineforge::GenericMatrix< bool >::swap_columns(), transpose(), and pineforge::GenericMatrix< bool >::transpose().
|
inline |
Definition at line 248 of file generic_matrix.hpp.
References rows().
Referenced by add_col(), get(), pineforge::GenericMatrix< bool >::get(), set(), and pineforge::GenericMatrix< bool >::set().
|
inline |
Definition at line 255 of file generic_matrix.hpp.
References columns().
Referenced by get(), pineforge::GenericMatrix< bool >::get(), set(), and pineforge::GenericMatrix< bool >::set().
|
inline |
Definition at line 267 of file generic_matrix.hpp.
References rows().
|
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.
References pineforge::detail::erase_row(), and rows().
|
inline |
Definition at line 310 of file generic_matrix.hpp.
References columns(), and pineforge::detail::erase_col().
|
inline |
Definition at line 317 of file generic_matrix.hpp.
References rows(), and pineforge::detail::swap_rows_impl().
|
inline |
Definition at line 324 of file generic_matrix.hpp.
References columns(), and pineforge::detail::swap_cols_impl().
|
inlinenodiscard |
Definition at line 331 of file generic_matrix.hpp.
References GenericMatrix().
Referenced by concat(), and pineforge::GenericMatrix< bool >::concat().
|
inlinenodiscard |
Definition at line 335 of file generic_matrix.hpp.
References columns(), pineforge::detail::copy_submatrix(), GenericMatrix(), and rows().
|
inlinenodiscard |
Definition at line 351 of file generic_matrix.hpp.
References columns(), GenericMatrix(), rows(), and pineforge::detail::transpose_impl().
|
inlinenodiscard |
Definition at line 358 of file generic_matrix.hpp.
References columns(), pineforge::detail::concat_impl(), copy(), and rows().
|
inline |
Definition at line 373 of file generic_matrix.hpp.
References pineforge::detail::reshape_impl().
|
inline |
Definition at line 379 of file generic_matrix.hpp.
|
inline |
Definition at line 384 of file generic_matrix.hpp.
References pineforge::detail::sort_impl().
|
inline |
Definition at line 392 of file generic_matrix.hpp.
References pineforge::detail::elements_count_impl().
|
inlinenodiscardnoexcept |
Definition at line 396 of file generic_matrix.hpp.
|
inlinenodiscard |
Definition at line 398 of file generic_matrix.hpp.
Referenced by restore().
|
inline |
Definition at line 403 of file generic_matrix.hpp.
References snapshot().