NICE
Northeastern Interactive Clustering Engine
Functions
Nice::util Namespace Reference

Functions

template<typename T >
Matrix< T > FromFile (const std::string &input_file_path, int num_rows, int num_cols, const std::string delimiter=" ")
 
template<typename T >
Matrix< T > FromFile (const std::string &input_file_path, const std::string delimiter=" ")
 
template<typename T >
Vector< T > FromFile (const std::string &input_file_path, int num_elements)
 

Function Documentation

template<typename T >
Matrix<T> Nice::util::FromFile ( const std::string &  input_file_path,
int  num_rows,
int  num_cols,
const std::string  delimiter = " " 
)

This function reads and creates a matrix from a file

Parameters
&input_file_pathInput string to file location
num_rowsThe number of rows in the read-in matrix
num_colsThe number of columns in the read-in matrix
delimiterChar that stands in-between coefficients
Returns
This function returns a matrix of type T, that was created from a file
template<typename T >
Matrix<T> Nice::util::FromFile ( const std::string &  input_file_path,
const std::string  delimiter = " " 
)

This function reads and creates a matrix from a file

Parameters
&input_file_pathInput string to file location
delimiterChar that stands in-between coefficients
Returns
This function returns a matrix of type T, that was created from a file
template<typename T >
Vector<T> Nice::util::FromFile ( const std::string &  input_file_path,
int  num_elements 
)