KJB
|
Definition for the Matrix class methods. More...
#include "m/m_mat_metric.h"
#include "m/m_mat_flip.h"
#include "m/m_mat_stat.h"
#include "m_cpp/m_matrix.h"
#include "m_cpp/m_vector.h"
#include "m_cpp/m_mat_view.h"
#include "m_cpp/m_vec_view.h"
#include "n/n_svd.h"
#include "n/n_invert.h"
#include "i/i_float_io.h"
#include "l_cpp/l_int_matrix.h"
#include "l_cpp/l_util.h"
#include "sample/sample_gauss.h"
#include <vector>
#include <iostream>
#include <iomanip>
#include <ostream>
#include <sstream>
Namespaces | |
kjb | |
Classes and functions for dealing with trajectory files. | |
Functions | |
Matrix | kjb::create_row_matrix (const Vector &) |
Construct a one-row matrix by deep-copying a vector. More... | |
Matrix | kjb::create_column_matrix (const Vector &) |
Construct a one-column matrix by deep-copying a vector. More... | |
Matrix | kjb::create_gauss_random_matrix (int num_rows, int num_cols) |
Matrix | kjb::create_diagonal_matrix (const Matrix::Vec_type &diagonal) |
Construct a diagonal matrix from the specified vector. More... | |
Matrix | kjb::create_diagonal_matrix (const Matrix::Vec_type &diagonal, size_t n) |
Construct a "repeating" diagonal matrix from the specified vector. More... | |
bool | kjb::operator== (const Matrix &op1, const Matrix::Impl_type &op2) |
Test for exact equality between two matrices. More... | |
Matrix | kjb::matrix_inverse (const Matrix &op1) |
Invert this matrix. More... | |
Matrix::Value_type | kjb::max_abs_difference (const Matrix &op1, const Matrix &op2) |
Find the largest difference between two matrices. More... | |
std::ostream & | kjb::operator<< (std::ostream &out, const Matrix &m) |
Display matrix contents in an ASCII format. More... | |
double | kjb::det (const Matrix &mat) |
Matrix::Vec_type | kjb::sum_matrix_cols (const Matrix &) |
Compute the matrix's sum across columns (a.k.a. row-wise sum) More... | |
Matrix::Vec_type | kjb::sum_matrix_rows (const Matrix &) |
Compute the matrix's sum down (a.k.a. columnar sum), like MATLAB. More... | |
Int_matrix | kjb::create_int_matrix_from_matrix_ceil (const Matrix &) |
Construct a matrix with elements equal to the ceiling, ceil() of a given floating-point Matrix. More... | |
Int_matrix | kjb::create_int_matrix_from_matrix_floor (const Matrix &) |
Construct an Int_matrix with elements equal to the floor() of a given floating-point Matrix. More... | |
Int_matrix | kjb::floor (const Matrix &m) |
Matrix | kjb::logical_or (Matrix a, Matrix b) |
returns a matrix with 1s and 0s. 1 if either has a non zero value in that position, 0 otherwise More... | |
Matrix | kjb::logical_and (Matrix a, Matrix b) |
returns a matrix with 1s and 0s. 1 if both matricies have a non zero value in that position, 0 otherwise More... | |
Matrix | kjb::logical_not (Matrix a) |
returns a matrix with 1s and 0s. 1 if the value is 0, and 0 otherwise. More... | |
Matrix | kjb::tile_matrix (Matrix trixy, unsigned m, unsigned n) |
Construct a tiling of the given matrix. More... | |
Matrix | kjb::tile_matrix (int tehnum, unsigned m, unsigned n) |
Construct a tiling of the given matrix, in this case, a matrix of the given number with the specified size. More... | |
Definition for the Matrix class methods.
If you make changes to this file, PLEASE CONSIDER making parallel changes to l_int_matrix.cpp, whose structure closely parallels the structure of this file. Tip: use vimdiff on both files to show the parallel structure.