BlackCat_Tensors
A GPU-supported autograd and linear algebra library, designed for neural network construction
Public Member Functions | Public Attributes | List of all members
bc::io::csv_descriptor Struct Reference

#include <io.h>

Public Member Functions

 csv_descriptor (std::string fname)
 
csv_descriptorfilename (std::string filename)
 
const std::string & filename () const
 
csv_descriptorheader (bool header)
 
const bool & header () const
 
csv_descriptorindex (bool index)
 
const bool & index () const
 
csv_descriptormode (char mode)
 
const char & mode () const
 
csv_descriptordelim (char delim)
 
const char & delim () const
 
csv_descriptorrow_delim (char row_delim)
 
const char & row_delim () const
 
csv_descriptortranspose (bool transpose)
 
const bool & transpose () const
 
csv_descriptorskip_rows (std::vector< int > skip_rows)
 
const std::vector< int > & skip_rows () const
 
csv_descriptorskip_cols (std::vector< int > skip_cols)
 
const std::vector< int > & skip_cols () const
 
template<class... Integers>
csv_descriptorskip_rows (int x, Integers... args_)
 
template<class... Integers>
csv_descriptorskip_cols (int x, Integers... args_)
 

Public Attributes

std::string filename_ = ""
 
bool header_ = true
 
bool index_ = false
 
char mode_ = 'r'
 
char delim_ = ','
 
char row_delim_ = '\n'
 
bool transpose_ = false
 
std::vector< int > skip_rows_ = {}
 
std::vector< int > skip_cols_ = {}
 

Constructor & Destructor Documentation

◆ csv_descriptor()

bc::io::csv_descriptor::csv_descriptor ( std::string  fname)
inline

Member Function Documentation

◆ delim() [1/2]

csv_descriptor& bc::io::csv_descriptor::delim ( char  delim)
inline

◆ delim() [2/2]

const char& bc::io::csv_descriptor::delim ( ) const
inline

◆ filename() [1/2]

const std::string& bc::io::csv_descriptor::filename ( ) const
inline

◆ filename() [2/2]

csv_descriptor& bc::io::csv_descriptor::filename ( std::string  filename)
inline

◆ header() [1/2]

const bool& bc::io::csv_descriptor::header ( ) const
inline

◆ header() [2/2]

csv_descriptor& bc::io::csv_descriptor::header ( bool  header)
inline

◆ index() [1/2]

csv_descriptor& bc::io::csv_descriptor::index ( bool  index)
inline

◆ index() [2/2]

const bool& bc::io::csv_descriptor::index ( ) const
inline

◆ mode() [1/2]

const char& bc::io::csv_descriptor::mode ( ) const
inline

◆ mode() [2/2]

csv_descriptor& bc::io::csv_descriptor::mode ( char  mode)
inline

◆ row_delim() [1/2]

csv_descriptor& bc::io::csv_descriptor::row_delim ( char  row_delim)
inline

◆ row_delim() [2/2]

const char& bc::io::csv_descriptor::row_delim ( ) const
inline

◆ skip_cols() [1/3]

csv_descriptor& bc::io::csv_descriptor::skip_cols ( std::vector< int >  skip_cols)
inline

◆ skip_cols() [2/3]

const std::vector<int>& bc::io::csv_descriptor::skip_cols ( ) const
inline

◆ skip_cols() [3/3]

template<class... Integers>
csv_descriptor& bc::io::csv_descriptor::skip_cols ( int  x,
Integers...  args_ 
)
inline

◆ skip_rows() [1/3]

csv_descriptor& bc::io::csv_descriptor::skip_rows ( std::vector< int >  skip_rows)
inline

◆ skip_rows() [2/3]

const std::vector<int>& bc::io::csv_descriptor::skip_rows ( ) const
inline

◆ skip_rows() [3/3]

template<class... Integers>
csv_descriptor& bc::io::csv_descriptor::skip_rows ( int  x,
Integers...  args_ 
)
inline

◆ transpose() [1/2]

csv_descriptor& bc::io::csv_descriptor::transpose ( bool  transpose)
inline

◆ transpose() [2/2]

const bool& bc::io::csv_descriptor::transpose ( ) const
inline

Member Data Documentation

◆ delim_

char bc::io::csv_descriptor::delim_ = ','

◆ filename_

std::string bc::io::csv_descriptor::filename_ = ""

◆ header_

bool bc::io::csv_descriptor::header_ = true

◆ index_

bool bc::io::csv_descriptor::index_ = false

◆ mode_

char bc::io::csv_descriptor::mode_ = 'r'

◆ row_delim_

char bc::io::csv_descriptor::row_delim_ = '\n'

◆ skip_cols_

std::vector<int> bc::io::csv_descriptor::skip_cols_ = {}

◆ skip_rows_

std::vector<int> bc::io::csv_descriptor::skip_rows_ = {}

◆ transpose_

bool bc::io::csv_descriptor::transpose_ = false

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