PineForge v0.13.1-379-g9b50973
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
 
Snapshotoperator= (const Snapshot &)=default
 
 Snapshot (Snapshot &&)=default
 
Snapshotoperator= (Snapshot &&)=default
 
 Snapshot (const Snapshot &)=default
 
 Snapshot (Snapshot &&)=default
 
Snapshotoperator= (const Snapshot &)=default
 
Snapshotoperator= (Snapshot &&)=default
 
 GenericMatrix () noexcept=default
 
 GenericMatrix (const GenericMatrix &) noexcept=default
 
 GenericMatrix (GenericMatrix &&other) noexcept
 
GenericMatrixoperator= (const GenericMatrix &) noexcept=default
 
GenericMatrixoperator= (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 464 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 172 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 174 of file generic_matrix.hpp.

◆ new_() [1/2]

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

Definition at line 200 of file generic_matrix.hpp.

◆ new_() [2/2]

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

Definition at line 208 of file generic_matrix.hpp.

◆ get()

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

Definition at line 218 of file generic_matrix.hpp.

◆ set()

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

Definition at line 227 of file generic_matrix.hpp.

◆ fill()

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

Definition at line 236 of file generic_matrix.hpp.

◆ rows()

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

Definition at line 240 of file generic_matrix.hpp.

◆ columns()

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

Definition at line 243 of file generic_matrix.hpp.

◆ row()

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

Definition at line 248 of file generic_matrix.hpp.

◆ col()

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

Definition at line 255 of file generic_matrix.hpp.

◆ row_ref()

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

Definition at line 267 of file generic_matrix.hpp.

◆ add_row()

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

Definition at line 274 of file generic_matrix.hpp.

◆ add_col()

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

Definition at line 284 of file generic_matrix.hpp.

◆ remove_row()

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

Definition at line 303 of file generic_matrix.hpp.

◆ remove_col()

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

Definition at line 310 of file generic_matrix.hpp.

◆ swap_rows()

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

Definition at line 317 of file generic_matrix.hpp.

◆ swap_columns()

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

Definition at line 324 of file generic_matrix.hpp.

◆ copy()

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

Definition at line 331 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 335 of file generic_matrix.hpp.

◆ transpose()

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

Definition at line 351 of file generic_matrix.hpp.

◆ concat()

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

Definition at line 358 of file generic_matrix.hpp.

◆ reshape()

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

Definition at line 373 of file generic_matrix.hpp.

◆ reverse()

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

Definition at line 379 of file generic_matrix.hpp.

◆ sort()

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

Definition at line 384 of file generic_matrix.hpp.

◆ elements_count()

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

Definition at line 392 of file generic_matrix.hpp.

◆ is_na()

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

Definition at line 396 of file generic_matrix.hpp.

◆ snapshot()

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

Definition at line 398 of file generic_matrix.hpp.

◆ restore()

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

Definition at line 403 of file generic_matrix.hpp.


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