#include <matrix_operations.hpp>
Public Member Functions | |
Matrix | init (std::vector< std::vector< double >>) |
Method to initialize values of a Matrix object using a 2D vector. More... | |
Matrix | init (std::vector< std::vector< std::string >>) |
Method to initialize values of a Matrix object using a 2D vector. More... | |
Matrix | concatenate (Matrix, Matrix, std::string) |
Method to concatenate/join two Matrix objects. More... | |
Matrix | matmul (Matrix, Matrix) |
Method to calculate matrix multiplication. More... | |
Matrix | zeros (int, int) |
Method to create an Matrix of all elements 0. More... | |
Matrix | ones (int, int) |
Method to create an Matrix of all elements 1. More... | |
Matrix | eye (int) |
Method to create an identity Matrix. More... | |
double | determinant (Matrix, int) |
Method to calculate the Determinant of a Matrix. More... | |
Matrix | inverse (Matrix) |
Method to calculate the Inverse of a Matrix. More... | |
Matrix | sum (Matrix, std::string) |
Method to calculate the sum over an axis of a Matrix. More... | |
Matrix | mean (Matrix, std::string) |
Method to calculate the mean over an axis of a Matrix. More... | |
Matrix | std (Matrix, std::string) |
Method to calculate the standard deviation over an axis of a Matrix. More... | |
Matrix | min (Matrix, std::string) |
Method to get the minimum value along an axis. More... | |
Matrix | max (Matrix, std::string) |
Method to get the maximum value along an axis. More... | |
Matrix | argmin (Matrix, std::string) |
Method to get the index of minimum value along an axis. More... | |
Matrix | argmax (Matrix, std::string) |
Method to get the index of maximum value along an axis. More... | |
Matrix | sqrt (Matrix) |
Matrix | power (Matrix, Matrix) |
Matrix | power (Matrix, double) |
Matrix | slice_select (Matrix, Matrix, double, int) |
In Y, find list of indices of element whose value is val, then return the col'th column of the Matrix containing elements of those indices. More... | |
Matrix | delete_ (Matrix, int, std::string) |
Method to delete a row or column of a Matrix object. More... | |
Matrix | exp (Matrix) |
Method to calculate exponential of all elements in the Matrix object. More... | |
Matrix | log (Matrix) |
Method to calculate natural logarithm of all elements in the Matrix object. More... | |
Matrix | abs (Matrix) |
Method to get absolute value of all elements in the Matrix object. More... | |
Matrix | reciprocal (Matrix) |
Method to calculate reciprocal of all elements in the Matrix object. More... | |
Matrix | genfromtxt (std::string, char) |
Method to read a csv file and return a Matrix object. More... | |
Method to get absolute value of all elements in the Matrix object.
Method to get the index of maximum value along an axis.
Method to get the index of minimum value along an axis.
Method to concatenate/join two Matrix objects.
Method to delete a row or column of a Matrix object.
Method to calculate exponential of all elements in the Matrix object.
Matrix MatrixOp::genfromtxt | ( | std::string | filename, |
char | delim | ||
) |
Method to read a csv file and return a Matrix object.
Matrix MatrixOp::init | ( | std::vector< std::vector< double >> | vec | ) |
Method to initialize values of a Matrix object using a 2D vector.
Matrix MatrixOp::init | ( | std::vector< std::vector< std::string >> | vec | ) |
Method to initialize values of a Matrix object using a 2D vector.
Method to calculate natural logarithm of all elements in the Matrix object.
Method to calculate the mean over an axis of a Matrix.
Method to calculate reciprocal of all elements in the Matrix object.
In Y, find list of indices of element whose value is val, then return the col'th column of the Matrix containing elements of those indices.
Method to calculate the standard deviation over an axis of a Matrix.
Method to calculate the sum over an axis of a Matrix.