PineForge unreleased
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
pineforge::GenericMatrix< bool >::Snapshot Class Reference

#include <generic_matrix.hpp>

Public Member Functions

 Snapshot (const Snapshot &)=default
 
Snapshot & operator= (const Snapshot &)=default
 
 Snapshot (Snapshot &&)=default
 
Snapshot & operator= (Snapshot &&)=default
 
 Snapshot (const Snapshot &)=default
 
 Snapshot (Snapshot &&)=default
 
Snapshot & operator= (const Snapshot &)=default
 
Snapshot & operator= (Snapshot &&)=default
 
 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)
 

Detailed Description

Definition at line 546 of file generic_matrix.hpp.

Constructor & Destructor Documentation

◆ Snapshot() [1/4]

pineforge::GenericMatrix< bool >::Snapshot::Snapshot ( const Snapshot & )
default

◆ Snapshot() [2/4]

pineforge::GenericMatrix< bool >::Snapshot::Snapshot ( Snapshot && )
default

◆ Snapshot() [3/4]

pineforge::GenericMatrix< bool >::Snapshot::Snapshot ( const Snapshot & )
default

◆ Snapshot() [4/4]

pineforge::GenericMatrix< bool >::Snapshot::Snapshot ( Snapshot && )
default

◆ ~GenericMatrix()

pineforge::GenericMatrix< bool >::~GenericMatrix ( )
default

Member Function Documentation

◆ operator=() [1/6]

Snapshot & pineforge::GenericMatrix< bool >::Snapshot::operator= ( const Snapshot & )
default

◆ operator=() [2/6]

Snapshot & pineforge::GenericMatrix< bool >::Snapshot::operator= ( Snapshot && )
default

◆ operator=() [3/6]

Snapshot & pineforge::GenericMatrix< bool >::Snapshot::operator= ( const Snapshot & )
default

◆ operator=() [4/6]

Snapshot & pineforge::GenericMatrix< bool >::Snapshot::operator= ( Snapshot && )
default

◆ GenericMatrix() [1/3]

pineforge::GenericMatrix< bool >::GenericMatrix ( )
defaultnoexcept

◆ GenericMatrix() [2/3]

pineforge::GenericMatrix< bool >::GenericMatrix ( const GenericMatrix< bool > & )
defaultnoexcept

◆ GenericMatrix() [3/3]

pineforge::GenericMatrix< bool >::GenericMatrix ( GenericMatrix< bool > && other)
inlinenoexcept

Definition at line 206 of file generic_matrix.hpp.

◆ operator=() [5/6]

GenericMatrix & pineforge::GenericMatrix< bool >::operator= ( const GenericMatrix< bool > & )
defaultnoexcept

◆ operator=() [6/6]

GenericMatrix & pineforge::GenericMatrix< bool >::operator= ( GenericMatrix< bool > && other)
inlinenoexcept

Definition at line 208 of file generic_matrix.hpp.

◆ new_() [1/2]

static GenericMatrix pineforge::GenericMatrix< bool >::new_ ( int rows,
int cols,
bool init )
inlinestaticnodiscard

Definition at line 234 of file generic_matrix.hpp.

◆ new_() [2/2]

static GenericMatrix pineforge::GenericMatrix< bool >::new_ ( int rows,
int cols )
inlinestaticnodiscard

Definition at line 244 of file generic_matrix.hpp.

◆ get()

bool pineforge::GenericMatrix< bool >::get ( int row,
int col ) const
inline

Definition at line 256 of file generic_matrix.hpp.

◆ set()

void pineforge::GenericMatrix< bool >::set ( int row,
int col,
bool val )
inline

Definition at line 269 of file generic_matrix.hpp.

◆ fill()

void pineforge::GenericMatrix< bool >::fill ( bool val)
inline

Definition at line 282 of file generic_matrix.hpp.

◆ rows()

int pineforge::GenericMatrix< bool >::rows ( ) const
inline

Definition at line 286 of file generic_matrix.hpp.

◆ columns()

int pineforge::GenericMatrix< bool >::columns ( ) const
inline

Definition at line 289 of file generic_matrix.hpp.

◆ row()

std::vector< bool > pineforge::GenericMatrix< bool >::row ( int idx) const
inline

Definition at line 294 of file generic_matrix.hpp.

◆ col()

std::vector< bool > pineforge::GenericMatrix< bool >::col ( int idx) const
inline

Definition at line 303 of file generic_matrix.hpp.

◆ row_ref()

const std::vector< bool > & pineforge::GenericMatrix< bool >::row_ref ( int idx) const
inline

Definition at line 317 of file generic_matrix.hpp.

◆ add_row()

void pineforge::GenericMatrix< bool >::add_row ( int idx,
const std::vector< bool > & values )
inline

Definition at line 326 of file generic_matrix.hpp.

◆ add_col()

void pineforge::GenericMatrix< bool >::add_col ( int idx,
const std::vector< bool > & values )
inline

Definition at line 340 of file generic_matrix.hpp.

◆ remove_row()

void pineforge::GenericMatrix< bool >::remove_row ( int idx)
inline

Definition at line 365 of file generic_matrix.hpp.

◆ remove_col()

void pineforge::GenericMatrix< bool >::remove_col ( int idx)
inline

Definition at line 374 of file generic_matrix.hpp.

◆ swap_rows()

void pineforge::GenericMatrix< bool >::swap_rows ( int i,
int j )
inline

Definition at line 383 of file generic_matrix.hpp.

◆ swap_columns()

void pineforge::GenericMatrix< bool >::swap_columns ( int i,
int j )
inline

Definition at line 392 of file generic_matrix.hpp.

◆ copy()

GenericMatrix pineforge::GenericMatrix< bool >::copy ( ) const
inlinenodiscard

Definition at line 401 of file generic_matrix.hpp.

◆ submatrix()

GenericMatrix pineforge::GenericMatrix< bool >::submatrix ( int from_row,
int to_row,
int from_col,
int to_col ) const
inlinenodiscard

Definition at line 405 of file generic_matrix.hpp.

◆ transpose()

GenericMatrix pineforge::GenericMatrix< bool >::transpose ( ) const
inlinenodiscard

Definition at line 429 of file generic_matrix.hpp.

◆ concat()

GenericMatrix pineforge::GenericMatrix< bool >::concat ( const GenericMatrix< bool > & other,
bool horizontal ) const
inlinenodiscard

Definition at line 436 of file generic_matrix.hpp.

◆ reshape()

void pineforge::GenericMatrix< bool >::reshape ( int new_rows,
int new_cols )
inline

Definition at line 455 of file generic_matrix.hpp.

◆ reverse()

void pineforge::GenericMatrix< bool >::reverse ( )
inline

Definition at line 461 of file generic_matrix.hpp.

◆ sort()

void pineforge::GenericMatrix< bool >::sort ( int column,
bool ascending = true )
inline

Definition at line 466 of file generic_matrix.hpp.

◆ elements_count()

int pineforge::GenericMatrix< bool >::elements_count ( ) const
inline

Definition at line 474 of file generic_matrix.hpp.

◆ is_na()

bool pineforge::GenericMatrix< bool >::is_na ( ) const
inlinenodiscardnoexcept

Definition at line 478 of file generic_matrix.hpp.

◆ snapshot()

Snapshot pineforge::GenericMatrix< bool >::snapshot ( ) const
inlinenodiscard

Definition at line 480 of file generic_matrix.hpp.

◆ restore()

void pineforge::GenericMatrix< bool >::restore ( const Snapshot & snapshot)
inline

Definition at line 485 of file generic_matrix.hpp.


The documentation for this class was generated from the following file: