Matrix Class (Templated) More...
#include <itpp/base/mat.h>
Public Types | |
typedef Num_T | value_type |
The type of the matrix values. More... | |
Public Member Functions | |
Mat (const Factory &f=DEFAULT_FACTORY) | |
Default constructor. An element factory f can be specified. More... | |
Mat (int rows, int cols, const Factory &f=DEFAULT_FACTORY) | |
Create a matrix of size (rows, cols). An element factory f can be specified. More... | |
Mat (const Mat< Num_T > &m) | |
Copy constructor. More... | |
Mat (const Mat< Num_T > &m, const Factory &f) | |
Constructor, similar to the copy constructor, but also takes an element factory f as argument. More... | |
Mat (const Vec< Num_T > &v, const Factory &f=DEFAULT_FACTORY) | |
Construct a matrix from a column vector v . An element factory f can be specified. More... | |
Mat (const std::string &str, const Factory &f=DEFAULT_FACTORY) | |
Set matrix equal to values in string str . An element factory f can be specified. More... | |
Mat (const char *str, const Factory &f=DEFAULT_FACTORY) | |
Set matrix equal to values in string str . An element factory f can be specified. More... | |
Mat (const Num_T *c_array, int rows, int cols, bool row_major=true, const Factory &f=DEFAULT_FACTORY) | |
Constructor taking a C-array as input. An element factory f can be specified. More... | |
~Mat () | |
Destructor. More... | |
int | cols () const |
The number of columns. More... | |
int | rows () const |
The number of rows. More... | |
int | size () const |
The number of elements. More... | |
void | set_size (int rows, int cols, bool copy=false) |
Set size of matrix. If copy = true then keep the data before resizing. More... | |
void | zeros () |
Set matrix equal to the all zero matrix. More... | |
void | clear () |
Set matrix equal to the all zero matrix. More... | |
void | ones () |
Set matrix equal to the all one matrix. More... | |
void | set (const std::string &str) |
Set matrix equal to values in the string str . More... | |
void | set (const char *str) |
Set matrix equal to values in the string str . More... | |
const Num_T & | operator() (int r, int c) const |
Get element (r,c) from matrix. More... | |
Num_T & | operator() (int r, int c) |
Get element (r,c) from matrix. More... | |
const Num_T & | operator() (int i) const |
Get element i using linear addressing (by rows) More... | |
Num_T & | operator() (int i) |
Get element i using linear addressing (by rows) More... | |
const Num_T & | get (int r, int c) const |
Get element (r,c) from matrix. More... | |
const Num_T & | get (int i) const |
Get element i using linear addressing (by rows) More... | |
void | set (int r, int c, Num_T t) |
Set element (r,c) of matrix. More... | |
Mat< Num_T > | operator() (int r1, int r2, int c1, int c2) const |
Sub-matrix from row r1 to row r2 and columns c1 to c2 . More... | |
Mat< Num_T > | get (int r1, int r2, int c1, int c2) const |
Sub-matrix from row r1 to row r2 and columns c1 to c2 . More... | |
Vec< Num_T > | get_row (int r) const |
Get row r . More... | |
Mat< Num_T > | get_rows (int r1, int r2) const |
Get rows r1 through r2 . More... | |
Mat< Num_T > | get_rows (const Vec< int > &indexlist) const |
Get the rows specified by indexlist . More... | |
Vec< Num_T > | get_col (int c) const |
Get column c . More... | |
Mat< Num_T > | get_cols (int c1, int c2) const |
Get columns c1 through c2 . More... | |
Mat< Num_T > | get_cols (const Vec< int > &indexlist) const |
Get the columns specified by indexlist . More... | |
void | set_row (int r, const Vec< Num_T > &v) |
Set row r to vector v . More... | |
void | set_col (int c, const Vec< Num_T > &v) |
Set column c to vector v . More... | |
void | set_rows (int r, const Mat< Num_T > &m) |
Set rows to matrix m , staring from row r . More... | |
void | set_cols (int c, const Mat< Num_T > &m) |
Set columns to matrix m , starting from column c . More... | |
void | copy_row (int to, int from) |
Copy row from onto row to . More... | |
void | copy_col (int to, int from) |
Copy column from onto column to . More... | |
void | swap_rows (int r1, int r2) |
Swap the rows r1 and r2 . More... | |
void | swap_cols (int c1, int c2) |
Swap the columns c1 and c2 . More... | |
void | set_submatrix (int r1, int r2, int c1, int c2, const Mat< Num_T > &m) |
This function is deprecated. Please use set_submatrix(int r, int c, const Mat<> &m) instead. More... | |
void | set_submatrix (int r, int c, const Mat< Num_T > &m) |
Set submatrix defined by upper-left element (r,c) and the size of matrix m to m. More... | |
void | set_submatrix (int r1, int r2, int c1, int c2, Num_T t) |
Set all elements of submatrix defined by rows r1,r2 and columns c1,c2 to value t. More... | |
void | del_row (int r) |
Delete row number r . More... | |
void | del_rows (int r1, int r2) |
Delete rows from r1 to r2 . More... | |
void | del_col (int c) |
Delete column number c . More... | |
void | del_cols (int c1, int c2) |
Delete columns from c1 to c2 . More... | |
void | ins_row (int r, const Vec< Num_T > &v) |
Insert vector v at row number r . The matrix can be empty. More... | |
void | ins_col (int c, const Vec< Num_T > &v) |
Insert vector v at column number c . The matrix can be empty. More... | |
void | append_row (const Vec< Num_T > &v) |
Append vector v to the bottom of the matrix. The matrix can be empty. More... | |
void | append_col (const Vec< Num_T > &v) |
Append vector v to the right side of the matrix. The matrix can be empty. More... | |
Mat< Num_T > | transpose () const |
Matrix transpose. More... | |
Mat< Num_T > | T () const |
Matrix transpose. More... | |
Mat< Num_T > | hermitian_transpose () const |
Hermitian matrix transpose (conjugate transpose) More... | |
Mat< Num_T > | H () const |
Hermitian matrix transpose (conjugate transpose) More... | |
Mat< Num_T > & | operator= (Num_T t) |
Set all elements of the matrix equal to t . More... | |
Mat< Num_T > & | operator= (const Mat< Num_T > &m) |
Set matrix equal to m . More... | |
Mat< Num_T > & | operator= (const Vec< Num_T > &v) |
Set matrix equal to the vector v , assuming column vector. More... | |
Mat< Num_T > & | operator= (const std::string &str) |
Set matrix equal to values in the string str . More... | |
Mat< Num_T > & | operator= (const char *str) |
Set matrix equal to values in the string str . More... | |
Mat< Num_T > & | operator+= (const Mat< Num_T > &m) |
Addition of matrices. More... | |
Mat< Num_T > & | operator+= (Num_T t) |
Addition of scalar to matrix. More... | |
Mat< Num_T > & | operator-= (const Mat< Num_T > &m) |
Subtraction of matrix. More... | |
Mat< Num_T > & | operator-= (Num_T t) |
Subtraction of scalar from matrix. More... | |
Mat< Num_T > & | operator*= (const Mat< Num_T > &m) |
Matrix multiplication. More... | |
Mat< Num_T > & | operator*= (Num_T t) |
Multiplication by a scalar. More... | |
Mat< Num_T > & | operator/= (Num_T t) |
Division by a scalar. More... | |
Mat< Num_T > & | operator/= (const Mat< Num_T > &m) |
Element-wise division with the current matrix. More... | |
bool | operator== (const Mat< Num_T > &m) const |
Compare two matrices. False if wrong sizes or different values. More... | |
bool | operator!= (const Mat< Num_T > &m) const |
Compare two matrices. True if different. More... | |
Num_T & | _elem (int r, int c) |
Get element (r,c) from matrix without boundary check (not recommended to use) More... | |
const Num_T & | _elem (int r, int c) const |
Get element (r,c) from matrix without boundary check (not recommended to use) More... | |
Num_T & | _elem (int i) |
Get element i using linear addressing (by rows) without boundary check (not recommended to use) More... | |
const Num_T & | _elem (int i) const |
Get element i using linear addressing (by rows) without boundary check (not recommended to use) More... | |
Num_T * | _data () |
Access of the internal data structure (not recommended to use) More... | |
const Num_T * | _data () const |
Access to the internal data structure (not recommended to use) More... | |
int | _datasize () const |
Access to the internal data structure (not recommended to use) More... | |
Protected Member Functions | |
void | alloc (int rows, int cols) |
Allocate memory for the matrix. More... | |
void | free () |
Free the memory space of the matrix. More... | |
Protected Attributes | |
Num_T * | data |
Protected data pointer. More... | |
const Factory & | factory |
Element factory (set to DEFAULT_FACTORY to use Num_T default constructors only) More... | |
int | datasize |
int | no_rows |
int | no_cols |
Friends | |
Mat< Num_T > | concat_horizontal (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Concatenate the matrices m1 and m2 horizontally. More... | |
Mat< Num_T > | concat_vertical (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Concatenate the matrices m1 and m2 vertically. More... | |
Mat< Num_T > | operator+ (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Addition of two matrices. More... | |
Mat< Num_T > | operator+ (const Mat< Num_T > &m, Num_T t) |
Addition of matrix and scalar. More... | |
Mat< Num_T > | operator+ (Num_T t, const Mat< Num_T > &m) |
Addition of scalar and matrix. More... | |
Mat< Num_T > | operator- (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Subtraction of m2 from m1 . More... | |
Mat< Num_T > | operator- (const Mat< Num_T > &m, Num_T t) |
Subtraction of scalar from matrix. More... | |
Mat< Num_T > | operator- (Num_T t, const Mat< Num_T > &m) |
Subtract matrix from scalar. More... | |
Mat< Num_T > | operator- (const Mat< Num_T > &m) |
Subtraction of matrix. More... | |
Mat< Num_T > | elem_mult (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Element wise multiplication of two matrices. More... | |
void | elem_mult_out (const Mat< Num_T > &m1, const Mat< Num_T > &m2, Mat< Num_T > &out) |
Element wise multiplication of two matrices, storing the result in matrix out . More... | |
void | elem_mult_out (const Mat< Num_T > &m1, const Mat< Num_T > &m2, const Mat< Num_T > &m3, Mat< Num_T > &out) |
Element wise multiplication of three matrices, storing the result in matrix out . More... | |
void | elem_mult_out (const Mat< Num_T > &m1, const Mat< Num_T > &m2, const Mat< Num_T > &m3, const Mat< Num_T > &m4, Mat< Num_T > &out) |
Element wise multiplication of four matrices, storing the result in matrix out . More... | |
void | elem_mult_inplace (const Mat< Num_T > &m1, Mat< Num_T > &m2) |
In-place element wise multiplication of two matrices. Fast version of B = elem_mult(A, B). More... | |
Num_T | elem_mult_sum (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Element wise multiplication of two matrices, followed by summation of the resultant elements. Fast version of sumsum(elem_mult(A, B)). More... | |
Mat< Num_T > | operator/ (const Mat< Num_T > &m, Num_T t) |
Element-wise division by a scalar. More... | |
Mat< Num_T > | operator/ (Num_T t, const Mat< Num_T > &m) |
Element-wise division (t is the dividend, elements of m are divisors) More... | |
Mat< Num_T > | elem_div (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Element wise division of two matrices. More... | |
void | elem_div_out (const Mat< Num_T > &m1, const Mat< Num_T > &m2, Mat< Num_T > &out) |
Element wise division of two matrices, storing the result in matrix out . More... | |
Num_T | elem_div_sum (const Mat< Num_T > &m1, const Mat< Num_T > &m2) |
Element wise division of two matrices, followed by summation of the resultant elements. Fast version of sumsum(elem_div(A, B)). More... | |
Related Functions | |
(Note that these are not member functions.) | |
typedef Mat< double > | mat |
Default Matrix Type. More... | |
typedef Mat< std::complex< double > > | cmat |
Default Complex Matrix Type. More... | |
typedef Mat< int > | imat |
Integer matrix. More... | |
typedef Mat< short int > | smat |
short int matrix More... | |
template<class T > | |
bmat | to_bmat (const Mat< T > &m) |
Converts a Mat<T> to bmat. More... | |
template<class T > | |
smat | to_smat (const Mat< T > &m) |
Converts a Mat<T> to smat. More... | |
template<class T > | |
imat | to_imat (const Mat< T > &m) |
Converts a Mat<T> to imat. More... | |
template<class T > | |
mat | to_mat (const Mat< T > &m) |
Converts a Mat<T> to mat. More... | |
template<class T > | |
cmat | to_cmat (const Mat< T > &m) |
Converts a Mat<T> to cmat. More... | |
template<class T > | |
cmat | to_cmat (const Mat< T > &real, const Mat< T > &imag) |
Converts real and imaginary Mat<T> to cmat. More... | |
ITPP_EXPORT void | sub_v_vT_m (mat &m, const vec &v) |
Calculates m=m-v*v'*m. More... | |
ITPP_EXPORT void | sub_m_v_vT (mat &m, const vec &v) |
Calculates m=m-m*v*v'. More... | |
template<class Num_T > | |
std::ostream & | operator<< (std::ostream &os, const Mat< Num_T > &m) |
Output stream for matrices. More... | |
template<class Num_T > | |
std::istream & | operator>> (std::istream &is, Mat< Num_T > &m) |
Input stream for matrices. More... | |
template<class T > | |
Mat< T > | repmat (const Mat< T > &data, int m, int n) |
Creates a matrix with m by n copies of the matrix data . More... | |
template<class T > | |
Mat< T > | repmat (const Vec< T > &v, int m, int n, bool transpose=false) |
Returns a matrix with m by n copies of the vector data . More... | |
mat | operator+ (const float &s, const mat &m) |
Addition operator for float and mat. More... | |
mat | operator+ (const short &s, const mat &m) |
Addition operator for short and mat. More... | |
mat | operator+ (const int &s, const mat &m) |
Addition operator for int and mat. More... | |
mat | operator+ (const mat &m, const float &s) |
Addition operator for mat and float. More... | |
mat | operator+ (const mat &m, const short &s) |
Addition operator for mat and short. More... | |
mat | operator+ (const mat &m, const int &s) |
Addition operator for mat and int. More... | |
mat | operator- (const float &s, const mat &m) |
Subtraction operator for float and mat. More... | |
mat | operator- (const short &s, const mat &m) |
Subtraction operator for short and mat. More... | |
mat | operator- (const int &s, const mat &m) |
Subtraction operator for int and mat. More... | |
mat | operator- (const mat &m, const float &s) |
Subtraction operator for mat and float. More... | |
mat | operator- (const mat &m, const short &s) |
Subtraction operator for mat and short. More... | |
mat | operator- (const mat &m, const int &s) |
Subtraction operator for mat and int. More... | |
mat | operator* (const float &s, const mat &m) |
Multiplication operator for float and mat. More... | |
mat | operator* (const short &s, const mat &m) |
Multiplication operator for short and mat. More... | |
mat | operator* (const int &s, const mat &m) |
Multiplication operator for int and mat. More... | |
mat | operator* (const mat &m, const float &s) |
Multiplication operator for mat and float. More... | |
mat | operator* (const mat &m, const short &s) |
Multiplication operator for mat and short. More... | |
mat | operator* (const mat &m, const int &s) |
Multiplication operator for mat and int. More... | |
mat | operator/ (const mat &m, const float &s) |
Division operator for mat and float. More... | |
mat | operator/ (const mat &m, const short &s) |
Division operator for mat and short. More... | |
mat | operator/ (const mat &m, const int &s) |
Division operator for mat and int. More... | |
ITPP_EXPORT cmat | operator+ (const double &s, const cmat &m) |
Addition operator for double and cmat. More... | |
ITPP_EXPORT cmat | operator- (const double &s, const cmat &m) |
Subtraction operator for double and cmat. More... | |
ITPP_EXPORT cmat | operator* (const double &s, const cmat &m) |
Multiplication operator for double and cmat. More... | |
ITPP_EXPORT cmat | operator* (const std::complex< double > &s, const mat &m) |
Multiplication operator for complex<double> and mat. More... | |
cmat | operator* (const mat &m, const std::complex< double > &s) |
Multiplication operator for mat and complex<double> More... | |
ITPP_EXPORT cmat | operator/ (const cmat &m, const double &s) |
Division operator for cmat and double. More... | |
ITPP_EXPORT mat | operator+ (const bmat &a, const mat &b) |
Addition operator for bmat and mat. | |
ITPP_EXPORT mat | operator+ (const smat &a, const mat &b) |
Addition operator for smat and mat. More... | |
ITPP_EXPORT mat | operator+ (const imat &a, const mat &b) |
Addition operator for imat and mat. More... | |
mat | operator+ (const mat &a, const bmat &b) |
Addition operator for mat and bmat. More... | |
mat | operator+ (const mat &a, const smat &b) |
Addition operator for mat and smat. More... | |
mat | operator+ (const mat &a, const imat &b) |
Addition operator for mat and imat. More... | |
mat | operator- (const bmat &a, const mat &b) |
Subtraction operator for bmat and mat. More... | |
mat | operator- (const smat &a, const mat &b) |
Subtraction operator for smat and mat. More... | |
mat | operator- (const imat &a, const mat &b) |
Subtraction operator for imat and mat. More... | |
mat | operator- (const mat &a, const bmat &b) |
Subtraction operator for mat and bmat. More... | |
mat | operator- (const mat &a, const smat &b) |
Subtraction operator for mat and smat. More... | |
mat | operator- (const mat &a, const imat &b) |
Subtraction operator for mat and imat. More... | |
ITPP_EXPORT cmat | operator+ (const bmat &a, const cmat &b) |
Addition operator for bmat and cmat. | |
ITPP_EXPORT cmat | operator+ (const smat &a, const cmat &b) |
Addition operator for smat and cmat. More... | |
ITPP_EXPORT cmat | operator+ (const imat &a, const cmat &b) |
Addition operator for imat and cmat. More... | |
ITPP_EXPORT cmat | operator+ (const mat &a, const cmat &b) |
Addition operator for mat and cmat. More... | |
cmat | operator+ (const cmat &a, const bmat &b) |
Addition operator for cmat and bmat. More... | |
cmat | operator+ (const cmat &a, const smat &b) |
Addition operator for cmat and smat. More... | |
cmat | operator+ (const cmat &a, const imat &b) |
Addition operator for cmat and imat. More... | |
cmat | operator+ (const cmat &a, const mat &b) |
Addition operator for cmat and mat. More... | |
cmat | operator- (const bmat &a, const cmat &b) |
Subtraction operator for bmat and cmat. More... | |
cmat | operator- (const smat &a, const cmat &b) |
Subtraction operator for smat and cmat. More... | |
cmat | operator- (const imat &a, const cmat &b) |
Subtraction operator for imat and cmat. More... | |
cmat | operator- (const mat &a, const cmat &b) |
Subtraction operator for mat and cmat. More... | |
cmat | operator- (const cmat &a, const bmat &b) |
Subtraction operator for cmat and bmat. More... | |
cmat | operator- (const cmat &a, const smat &b) |
Subtraction operator for cmat and smat. More... | |
cmat | operator- (const cmat &a, const imat &b) |
Subtraction operator for cmat and imat. More... | |
cmat | operator- (const cmat &a, const mat &b) |
Subtraction operator for cmat and mat. More... | |
cmat | operator* (const mat &a, const cmat &b) |
Multiplication operator for mat and cmat. More... | |
cmat | operator* (const bmat &a, const cmat &b) |
Multiplication operator for bmat and cmat. More... | |
cmat | operator* (const smat &a, const cmat &b) |
Multiplication operator for smat and cmat. More... | |
cmat | operator* (const imat &a, const cmat &b) |
Multiplication operator for imat and cmat. More... | |
cmat | operator* (const cmat &a, const mat &b) |
Multiplication operator for cmat and mat. More... | |
cmat | operator* (const cmat &a, const bmat &b) |
Multiplication operator for cmat and bmat. More... | |
cmat | operator* (const cmat &a, const smat &b) |
Multiplication operator for cmat and smat. More... | |
cmat | operator* (const cmat &a, const imat &b) |
Multiplication operator for cmat and imat. More... | |
template<class T > | |
Mat< T > | mat_1x1 (T m00) |
Matrix of size 1 by 1. More... | |
template<class T > | |
Mat< T > | mat_1x2 (T m00, T m01) |
Matrix of size 1 by 2. More... | |
template<class T > | |
Mat< T > | mat_2x1 (T m00, T m10) |
Matrix of size 2 by 1. More... | |
template<class T > | |
Mat< T > | mat_2x2 (T m00, T m01, T m10, T m11) |
Matrix of size 2 by 2. More... | |
template<class T > | |
Mat< T > | mat_1x3 (T m00, T m01, T m02) |
Matrix of size 1 by 3. More... | |
template<class T > | |
Mat< T > | mat_3x1 (T m00, T m10, T m20) |
Matrix of size 3 by 1. More... | |
template<class T > | |
Mat< T > | mat_2x3 (T m00, T m01, T m02, T m10, T m11, T m12) |
Matrix of size 2 by 3. More... | |
template<class T > | |
Mat< T > | mat_3x2 (T m00, T m01, T m10, T m11, T m20, T m21) |
Matrix of size 3 by 2. More... | |
template<class T > | |
Mat< T > | mat_3x3 (T m00, T m01, T m02, T m10, T m11, T m12, T m20, T m21, T m22) |
Matrix of size 3 by 3. More... | |
Matrix Class (Templated)
Matrices can be of arbitrarily types, but conversions and functions are prepared for bin
, short
, int
, double
, and complex<double>
vectors and these are predefined as: bmat
, smat
, imat
, mat
, and cmat
. double
and complex<double>
are usually double
and complex<double>
respectively. However, this can be changed when compiling the it++ (see installation notes for more details). (Note: for binary matrices, an alternative to the bmat class is GF2mat
and GF2mat_dense
, which offer a more memory efficient representation and additional functions for linear algebra.)
Examples:
Matrix Constructors: When constructing a matrix without dimensions (memory) use
For construction of a matrix of a given size use
It is also possible to assign the constructed matrix the value and dimension of another matrix by
If you have explicit values you would like to assign to the matrix it is possible to do this using strings as:
It is also possible to change dimension by
where false
is used to indicate that the old values in temp
is not copied. If you like to preserve the values use true
.
There are a number of methods to access parts of a matrix. Examples are
It is also possible to modify parts of a vector as e.g. in
It is of course also possible to perform the common linear algebra methods such as addition, subtraction, and matrix multiplication. Observe though, that vectors are assumed to be column-vectors in operations with matrices.
Most elementary functions such as sin(), cosh(), log(), abs(), ..., are available as operations on the individual elements of the matrices. Please see the individual functions for more details.
By default, the Mat elements are created using the default constructor for the element type. This can be changed by specifying a suitable Factory in the Mat constructor call; see Detailed Description for Factory.
typedef Num_T itpp::Mat< Num_T >::value_type |
|
inlineexplicit |
|
inline |
Create a matrix of size (rows, cols). An element factory f
can be specified.
Definition at line 579 of file mat.h.
References itpp::Mat< Num_T >::alloc(), itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Copy constructor.
Definition at line 587 of file mat.h.
References itpp::Mat< Num_T >::alloc(), itpp::Mat< Num_T >::data, itpp::Mat< Num_T >::datasize, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
Constructor, similar to the copy constructor, but also takes an element factory f
as argument.
Definition at line 595 of file mat.h.
References itpp::Mat< Num_T >::alloc(), itpp::Mat< Num_T >::data, itpp::Mat< Num_T >::datasize, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
|
inline |
Construct a matrix from a column vector v
. An element factory f
can be specified.
Definition at line 603 of file mat.h.
References itpp::Vec< Num_T >::_data(), itpp::Mat< Num_T >::alloc(), itpp::Mat< Num_T >::data, itpp::Mat< Num_T >::size(), and itpp::Vec< Num_T >::size().
|
inline |
Set matrix equal to values in string str
. An element factory f
can be specified.
Definition at line 612 of file mat.h.
References itpp::Mat< Num_T >::set().
|
inline |
Set matrix equal to values in string str
. An element factory f
can be specified.
Definition at line 619 of file mat.h.
References itpp::Mat< Num_T >::set().
itpp::Mat< Num_T >::Mat | ( | const Num_T * | c_array, |
int | rows, | ||
int | cols, | ||
bool | row_major = true , |
||
const Factory & | f = DEFAULT_FACTORY |
||
) |
Constructor taking a C-array as input. An element factory f
can be specified.
By default the matrix is stored as a row-major matrix (i.e. listing elements in sequence beginning with the first column).
Definition at line 626 of file mat.h.
References itpp::Mat< Num_T >::alloc(), itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::data, itpp::Mat< Num_T >::datasize, itpp::Mat< Num_T >::no_cols, itpp::Mat< Num_T >::no_rows, and itpp::Mat< Num_T >::rows().
|
inline |
The number of columns.
Definition at line 235 of file mat.h.
References itpp::Mat< Num_T >::no_cols.
Referenced by itpp::apply_functor(), itpp::bidiag(), itpp::cumsum(), itpp::cvectorize(), itpp::dht2(), itpp::diag(), itpp::dwht2(), itpp::geometric_mean(), itpp::Mat< Num_T >::get_cols(), itpp::kron(), itpp::lininterp(), itpp::Mat< Num_T >::Mat(), itpp::max(), itpp::max_index(), itpp::min(), itpp::min_index(), itpp::Mat< Num_T >::operator*(), itpp::operator*(), itpp::Mat< Num_T >::operator+(), itpp::operator+(), itpp::Sparse_Mat< T >::operator+=(), itpp::Mat< Num_T >::operator-(), itpp::Sparse_Mat< T >::operator-=(), itpp::Mat< Num_T >::operator/(), itpp::Vec< Num_T >::operator=(), itpp::Sparse_Mat< T >::operator=(), itpp::prod(), itpp::rank(), itpp::repeat(), itpp::Mat< Num_T >::repmat(), itpp::reshape(), itpp::rvectorize(), itpp::Mat< Num_T >::set_cols(), itpp::Mat< Num_T >::set_rows(), itpp::Sparse_Mat< T >::set_submatrix(), itpp::Sparse_Mat< T >::Sparse_Mat(), itpp::Mat< Num_T >::sub_m_v_vT(), itpp::Mat< Num_T >::sub_v_vT_m(), itpp::sum(), itpp::sum_sqr(), itpp::to(), itpp::Mat< Num_T >::to_bmat(), itpp::to_cmat(), itpp::Mat< Num_T >::to_cmat(), itpp::LLR_calc_unit::to_double(), itpp::Mat< Num_T >::to_imat(), itpp::to_mat(), itpp::Mat< Num_T >::to_mat(), itpp::Mat< Num_T >::to_smat(), itpp::tridiag(), itpp::Histogram< Num_T >::update(), itpp::upsample(), and itpp::zero_pad().
|
inline |
The number of rows.
Definition at line 237 of file mat.h.
References itpp::Mat< Num_T >::no_rows.
Referenced by itpp::apply_functor(), itpp::bidiag(), itpp::cumsum(), itpp::cvectorize(), itpp::dht2(), itpp::diag(), itpp::dwht2(), itpp::geometric_mean(), itpp::Mat< Num_T >::get_rows(), itpp::kron(), itpp::lininterp(), itpp::Mat< Num_T >::Mat(), itpp::max(), itpp::max_index(), itpp::min(), itpp::min_index(), itpp::Mat< Num_T >::operator*(), itpp::operator*(), itpp::Mat< Num_T >::operator+(), itpp::operator+(), itpp::Sparse_Mat< T >::operator+=(), itpp::Mat< Num_T >::operator-(), itpp::Sparse_Mat< T >::operator-=(), itpp::Mat< Num_T >::operator/(), itpp::Mat< Num_T >::operator<<(), itpp::Vec< Num_T >::operator=(), itpp::Sparse_Mat< T >::operator=(), itpp::prod(), itpp::rank(), itpp::repeat(), itpp::Mat< Num_T >::repmat(), itpp::reshape(), itpp::rvectorize(), itpp::Mat< Num_T >::set_cols(), itpp::Mat< Num_T >::set_rows(), itpp::Sparse_Mat< T >::set_submatrix(), itpp::Sparse_Mat< T >::Sparse_Mat(), itpp::Mat< Num_T >::sub_m_v_vT(), itpp::sum(), itpp::sum_sqr(), itpp::to(), itpp::Mat< Num_T >::to_bmat(), itpp::to_cmat(), itpp::Mat< Num_T >::to_cmat(), itpp::LLR_calc_unit::to_double(), itpp::Mat< Num_T >::to_imat(), itpp::to_mat(), itpp::Mat< Num_T >::to_mat(), itpp::Mat< Num_T >::to_smat(), itpp::tridiag(), itpp::Histogram< Num_T >::update(), itpp::upsample(), and itpp::zero_pad().
|
inline |
The number of elements.
Definition at line 239 of file mat.h.
References itpp::Mat< Num_T >::datasize.
Referenced by itpp::lshift_fix(), itpp::Mat< Num_T >::Mat(), itpp::rshift_fix(), and itpp::set_fix().
void itpp::Mat< Num_T >::set_size | ( | int | rows, |
int | cols, | ||
bool | copy = false |
||
) |
Set size of matrix. If copy = true then keep the data before resizing.
Definition at line 647 of file mat.h.
References itpp::destroy_elements(), and it_assert_debug.
Referenced by itpp::bidiag(), itpp::diag(), itpp::eye(), itpp::Sparse_Mat< T >::full(), itpp::GF2mat::GF2mat(), itpp::lininterp(), itpp::Mat< Num_T >::operator>>(), itpp::set_fix(), itpp::GF2mat::set_size(), itpp::tridiag(), and itpp::upsample().
|
inline |
Set matrix equal to the all zero matrix.
Definition at line 698 of file mat.h.
Referenced by itpp::Mat< Num_T >::clear().
|
inline |
Set matrix equal to the all zero matrix.
Definition at line 245 of file mat.h.
References itpp::Mat< Num_T >::zeros().
Referenced by itpp::GF2mat::GF2mat(), itpp::GF2mat::set_size(), and itpp::upsample().
|
inline |
void itpp::Mat< Num_T >::set | ( | const std::string & | str | ) |
Set matrix equal to values in the string str
.
Definition at line 762 of file mat.h.
References itpp::Vec< Num_T >::set_size(), and itpp::Vec< Num_T >::size().
Referenced by itpp::Mat< Num_T >::Mat(), itpp::Mat< Num_T >::operator>>(), and itpp::set_fix().
|
inline |
|
inline |
|
inline |
Get element i
using linear addressing (by rows)
Definition at line 735 of file mat.h.
References it_assert_debug.
|
inline |
Get element i
using linear addressing (by rows)
Definition at line 728 of file mat.h.
References it_assert_debug.
|
inline |
|
inline |
|
inline |
|
inline |
Sub-matrix from row r1
to row r2
and columns c1
to c2
.
Value -1 indicates the last row and column, respectively.
Definition at line 826 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
Get row r
.
Definition at line 852 of file mat.h.
References itpp::Vec< Num_T >::_data(), and it_assert_debug.
Referenced by itpp::cumsum(), itpp::dht2(), itpp::dwht2(), itpp::Gold::get_family(), itpp::max(), itpp::min(), itpp::Mat< Num_T >::operator<<(), itpp::prod(), itpp::sum(), and itpp::sum_sqr().
Get rows r1
through r2
.
Definition at line 862 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_rows, and itpp::Mat< Num_T >::rows().
Mat< Num_T > itpp::Mat< Num_T >::get_rows | ( | const Vec< int > & | indexlist | ) | const |
Get the rows specified by indexlist
.
Definition at line 875 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_rows, and itpp::Vec< Num_T >::size().
Get column c
.
Definition at line 889 of file mat.h.
References itpp::Vec< Num_T >::_data(), and it_assert_debug.
Referenced by itpp::cumsum(), itpp::dht2(), itpp::dwht2(), itpp::max(), itpp::min(), itpp::Sparse_Mat< T >::operator+=(), itpp::Sparse_Mat< T >::operator-=(), itpp::prod(), itpp::repeat(), itpp::sum(), itpp::sum_sqr(), and itpp::upsample().
Get columns c1
through c2
.
Definition at line 900 of file mat.h.
References itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::data, it_assert_debug, and itpp::Mat< Num_T >::no_rows.
Mat< Num_T > itpp::Mat< Num_T >::get_cols | ( | const Vec< int > & | indexlist | ) | const |
Get the columns specified by indexlist
.
Definition at line 913 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_rows, and itpp::Vec< Num_T >::size().
Set row r
to vector v
.
Definition at line 927 of file mat.h.
References itpp::Vec< Num_T >::_data(), it_assert_debug, and itpp::Vec< Num_T >::size().
Referenced by itpp::cumsum(), itpp::dht2(), itpp::dwht2(), and itpp::Gold::get_family().
Set column c
to vector v
.
Definition at line 936 of file mat.h.
References itpp::Vec< Num_T >::_data(), it_assert_debug, and itpp::Vec< Num_T >::size().
Referenced by itpp::cumsum(), itpp::dht2(), itpp::dwht2(), itpp::repeat(), and itpp::upsample().
Set rows to matrix m
, staring from row r
.
Definition at line 946 of file mat.h.
References itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_rows, and itpp::Mat< Num_T >::rows().
Set columns to matrix m
, starting from column c
.
Definition at line 960 of file mat.h.
References itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::data, it_assert_debug, and itpp::Mat< Num_T >::rows().
|
inline |
Copy row from
onto row to
.
Definition at line 975 of file mat.h.
References it_assert_debug, and itpp::to().
|
inline |
Copy column from
onto column to
.
Definition at line 986 of file mat.h.
References it_assert_debug, and itpp::to().
|
inline |
|
inline |
void itpp::Mat< Num_T >::set_submatrix | ( | int | r1, |
int | r2, | ||
int | c1, | ||
int | c2, | ||
const Mat< Num_T > & | m | ||
) |
This function is deprecated. Please use set_submatrix(int r, int c, const Mat<> &m) instead.
Definition at line 1019 of file mat.h.
References it_warning.
Referenced by itpp::kron(), itpp::Mat< Num_T >::repmat(), and itpp::zero_pad().
|
inline |
Set submatrix defined by upper-left element (r,c) and the size of matrix m to m.
Definition at line 1028 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
|
inline |
Set all elements of submatrix defined by rows r1,r2 and columns c1,c2 to value t.
Definition at line 1041 of file mat.h.
References it_assert_debug.
void itpp::Mat< Num_T >::del_row | ( | int | r | ) |
Delete row number r
.
Definition at line 1058 of file mat.h.
References itpp::Mat< Num_T >::data, and it_assert_debug.
void itpp::Mat< Num_T >::del_rows | ( | int | r1, |
int | r2 | ||
) |
Delete rows from r1
to r2
.
Definition at line 1073 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, and itpp::Mat< Num_T >::no_rows.
void itpp::Mat< Num_T >::del_col | ( | int | c | ) |
Delete column number c
.
Definition at line 1090 of file mat.h.
References itpp::Mat< Num_T >::data, and it_assert_debug.
void itpp::Mat< Num_T >::del_cols | ( | int | c1, |
int | c2 | ||
) |
Delete columns from c1
to c2
.
Definition at line 1101 of file mat.h.
References itpp::Mat< Num_T >::data, and it_assert_debug.
Insert vector v
at row number r
. The matrix can be empty.
Definition at line 1113 of file mat.h.
References itpp::Vec< Num_T >::_data(), itpp::Mat< Num_T >::data, it_assert_debug, and itpp::Vec< Num_T >::size().
Insert vector v
at column number c
. The matrix can be empty.
Definition at line 1137 of file mat.h.
References itpp::Vec< Num_T >::_data(), itpp::Mat< Num_T >::data, it_assert_debug, and itpp::Vec< Num_T >::size().
Matrix transpose.
Definition at line 1169 of file mat.h.
References itpp::Mat< Num_T >::data.
Referenced by itpp::Mat< Num_T >::T().
Matrix transpose.
Definition at line 337 of file mat.h.
References itpp::Mat< Num_T >::transpose().
Referenced by itpp::transpose().
Hermitian matrix transpose (conjugate transpose)
Definition at line 1179 of file mat.h.
References itpp::Mat< Num_T >::data.
Referenced by itpp::Mat< Num_T >::H().
Hermitian matrix transpose (conjugate transpose)
Definition at line 341 of file mat.h.
References itpp::Mat< Num_T >::hermitian_transpose().
Referenced by itpp::hermitian_transpose(), itpp::is_hermitian(), and itpp::is_unitary().
|
inline |
Set matrix equal to m
.
Definition at line 1245 of file mat.h.
References itpp::Mat< Num_T >::data, itpp::Mat< Num_T >::datasize, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
|
inline |
Set matrix equal to the vector v
, assuming column vector.
Definition at line 1256 of file mat.h.
References itpp::Vec< Num_T >::_data(), it_assert_debug, and itpp::Vec< Num_T >::size().
Addition of matrices.
Definition at line 1283 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
Subtraction of matrix.
Definition at line 1353 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
Matrix multiplication.
Definition at line 1461 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
|
inline |
Element-wise division with the current matrix.
Definition at line 1660 of file mat.h.
References itpp::Mat< Num_T >::data, it_assert_debug, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
Compare two matrices. False if wrong sizes or different values.
Definition at line 1723 of file mat.h.
References itpp::Mat< Num_T >::data, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
Compare two matrices. True if different.
Definition at line 1733 of file mat.h.
References itpp::Mat< Num_T >::data, itpp::Mat< Num_T >::no_cols, and itpp::Mat< Num_T >::no_rows.
|
inline |
Get element (r,c) from matrix without boundary check (not recommended to use)
Definition at line 431 of file mat.h.
References itpp::Mat< Num_T >::data, and itpp::Mat< Num_T >::no_rows.
Referenced by itpp::Mat< Num_T >::sub_m_v_vT().
|
inline |
Get element (r,c) from matrix without boundary check (not recommended to use)
Definition at line 433 of file mat.h.
References itpp::Mat< Num_T >::data, and itpp::Mat< Num_T >::no_rows.
|
inline |
Get element i
using linear addressing (by rows) without boundary check (not recommended to use)
Definition at line 435 of file mat.h.
References itpp::Mat< Num_T >::data.
|
inline |
Get element i
using linear addressing (by rows) without boundary check (not recommended to use)
Definition at line 437 of file mat.h.
References itpp::Mat< Num_T >::data.
|
inline |
Access of the internal data structure (not recommended to use)
Definition at line 440 of file mat.h.
References itpp::Mat< Num_T >::data.
Referenced by itpp::Vec< Num_T >::hermitian_transpose(), itpp::Vec< double >::operator*(), itpp::operator*(), itpp::Mat< Num_T >::operator+(), itpp::Vec< double >::operator-(), itpp::Vec< Num_T >::operator=(), itpp::sumsum(), and itpp::Vec< Num_T >::transpose().
|
inline |
Access to the internal data structure (not recommended to use)
Definition at line 442 of file mat.h.
References itpp::Mat< Num_T >::data.
|
inline |
Access to the internal data structure (not recommended to use)
Definition at line 444 of file mat.h.
References itpp::Mat< Num_T >::datasize.
Referenced by itpp::operator*(), itpp::Mat< Num_T >::operator+(), itpp::Mat< Num_T >::operator/(), and itpp::sumsum().
|
inlineprotected |
Allocate memory for the matrix.
Definition at line 548 of file mat.h.
References itpp::create_elements().
Referenced by itpp::Mat< Num_T >::Mat().
|
inlineprotected |
Free the memory space of the matrix.
Definition at line 565 of file mat.h.
References itpp::destroy_elements().
Converts a Mat<T> to bmat.
Definition at line 168 of file converters.h.
References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().
Converts a Mat<T> to smat.
Definition at line 184 of file converters.h.
References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().
Converts a Mat<T> to imat.
Definition at line 200 of file converters.h.
References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().
Converts a Mat<T> to mat.
Definition at line 216 of file converters.h.
References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().
Converts a Mat<T> to cmat.
Definition at line 232 of file converters.h.
References itpp::Mat< Num_T >::cols(), and itpp::Mat< Num_T >::rows().
Converts real and imaginary Mat<T> to cmat.
Definition at line 256 of file converters.h.
References itpp::Mat< Num_T >::cols(), itpp::imag(), it_assert_debug, itpp::real(), and itpp::Mat< Num_T >::rows().
|
related |
Calculates m=m-v*v'*m.
Definition at line 37 of file fastmath.cpp.
References itpp::Mat< Num_T >::cols().
|
related |
Calculates m=m-m*v*v'.
Definition at line 65 of file fastmath.cpp.
References itpp::Mat< Num_T >::_elem(), itpp::Mat< Num_T >::cols(), it_assert, and itpp::Mat< Num_T >::rows().
|
related |
Output stream for matrices.
Definition at line 1743 of file mat.h.
References itpp::Mat< Num_T >::get_row(), and itpp::Mat< Num_T >::rows().
|
related |
Input stream for matrices.
The input can be on the form "1 2 3; 4 5 6" or "[[1 2 3][4 5 6]]", i.e. with brackets or semicolons as row delimiters. The first form is compatible with the set method, while the second form is compatible with the ostream operator. The elements on a row can be separated by blank space or commas. Rows that are shorter than the longest row are padded with zero elements. "[]" means an empty matrix.
Definition at line 1765 of file mat.h.
References itpp::Mat< Num_T >::set(), and itpp::Mat< Num_T >::set_size().
Addition operator for float and mat.
Definition at line 496 of file operators.h.
Addition operator for short and mat.
Definition at line 502 of file operators.h.
Addition operator for int and mat.
Definition at line 508 of file operators.h.
Addition operator for mat and float.
Definition at line 514 of file operators.h.
Addition operator for mat and short.
Definition at line 520 of file operators.h.
Addition operator for mat and int.
Definition at line 526 of file operators.h.
Subtraction operator for float and mat.
Definition at line 532 of file operators.h.
Subtraction operator for short and mat.
Definition at line 538 of file operators.h.
Subtraction operator for int and mat.
Definition at line 544 of file operators.h.
Subtraction operator for mat and float.
Definition at line 550 of file operators.h.
Subtraction operator for mat and short.
Definition at line 556 of file operators.h.
Subtraction operator for mat and int.
Definition at line 562 of file operators.h.
Multiplication operator for float and mat.
Definition at line 568 of file operators.h.
Multiplication operator for short and mat.
Definition at line 574 of file operators.h.
Multiplication operator for int and mat.
Definition at line 580 of file operators.h.
Multiplication operator for mat and float.
Definition at line 586 of file operators.h.
Multiplication operator for mat and short.
Definition at line 592 of file operators.h.
Multiplication operator for mat and int.
Definition at line 598 of file operators.h.
Division operator for mat and float.
Definition at line 604 of file operators.h.
Division operator for mat and short.
Definition at line 610 of file operators.h.
Division operator for mat and int.
Definition at line 616 of file operators.h.
Addition operator for double and cmat.
Definition at line 207 of file operators.cpp.
References itpp::Mat< Num_T >::_data(), itpp::Mat< Num_T >::_datasize(), itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Subtraction operator for double and cmat.
Definition at line 218 of file operators.cpp.
References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Multiplication operator for double and cmat.
Definition at line 229 of file operators.cpp.
References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
|
related |
Multiplication operator for complex<double> and mat.
Definition at line 240 of file operators.cpp.
References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Multiplication operator for mat and complex<double>
Definition at line 648 of file operators.h.
Division operator for cmat and double.
Definition at line 252 of file operators.cpp.
References itpp::Mat< Num_T >::_datasize(), itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Addition operator for smat and mat.
Definition at line 403 of file operators.cpp.
References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Addition operator for imat and mat.
Definition at line 416 of file operators.cpp.
Addition operator for mat and bmat.
Definition at line 900 of file operators.h.
Addition operator for mat and smat.
Definition at line 906 of file operators.h.
Addition operator for mat and imat.
Definition at line 912 of file operators.h.
Subtraction operator for bmat and mat.
Definition at line 918 of file operators.h.
Subtraction operator for smat and mat.
Definition at line 924 of file operators.h.
Subtraction operator for imat and mat.
Definition at line 930 of file operators.h.
Subtraction operator for mat and bmat.
Definition at line 936 of file operators.h.
Subtraction operator for mat and smat.
Definition at line 942 of file operators.h.
Subtraction operator for mat and imat.
Definition at line 948 of file operators.h.
Addition operator for smat and cmat.
Definition at line 444 of file operators.cpp.
References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Addition operator for imat and cmat.
Definition at line 457 of file operators.cpp.
References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Addition operator for mat and cmat.
Definition at line 470 of file operators.cpp.
References itpp::Mat< Num_T >::cols(), it_assert_debug, and itpp::Mat< Num_T >::rows().
Addition operator for cmat and bmat.
Definition at line 980 of file operators.h.
Addition operator for cmat and smat.
Definition at line 986 of file operators.h.
Addition operator for cmat and imat.
Definition at line 992 of file operators.h.
Addition operator for cmat and mat.
Definition at line 998 of file operators.h.
Subtraction operator for bmat and cmat.
Definition at line 1004 of file operators.h.
Subtraction operator for smat and cmat.
Definition at line 1010 of file operators.h.
Subtraction operator for imat and cmat.
Definition at line 1016 of file operators.h.
Subtraction operator for mat and cmat.
Definition at line 1022 of file operators.h.
Subtraction operator for cmat and bmat.
Definition at line 1028 of file operators.h.
Subtraction operator for cmat and smat.
Definition at line 1034 of file operators.h.
Subtraction operator for cmat and imat.
Definition at line 1040 of file operators.h.
Subtraction operator for cmat and mat.
Definition at line 1046 of file operators.h.
Multiplication operator for mat and cmat.
Definition at line 1052 of file operators.h.
References itpp::to_cmat().
Multiplication operator for bmat and cmat.
Definition at line 1058 of file operators.h.
References itpp::to_cmat().
Multiplication operator for smat and cmat.
Definition at line 1064 of file operators.h.
References itpp::to_cmat().
Multiplication operator for imat and cmat.
Definition at line 1070 of file operators.h.
References itpp::to_cmat().
Multiplication operator for cmat and mat.
Definition at line 1076 of file operators.h.
References itpp::to_cmat().
Multiplication operator for cmat and bmat.
Definition at line 1082 of file operators.h.
References itpp::to_cmat().
Multiplication operator for cmat and smat.
Definition at line 1088 of file operators.h.
References itpp::to_cmat().
Multiplication operator for cmat and imat.
Definition at line 1094 of file operators.h.
References itpp::to_cmat().
|
protected |
Protected integer variables
Definition at line 454 of file mat.h.
Referenced by itpp::Mat< Num_T >::_datasize(), itpp::Mat< Num_T >::Mat(), itpp::Mat< Num_T >::operator=(), and itpp::Mat< Num_T >::size().
|
protected |
Protected integer variables
Definition at line 454 of file mat.h.
Referenced by itpp::Mat< Num_T >::_elem(), itpp::Mat< Num_T >::del_rows(), itpp::Mat< Num_T >::get_cols(), itpp::Mat< Num_T >::get_rows(), itpp::Mat< Num_T >::Mat(), itpp::Mat< Num_T >::operator!=(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::operator*=(), itpp::Mat< Num_T >::operator+=(), itpp::Mat< Num_T >::operator-=(), itpp::Mat< Num_T >::operator/=(), itpp::Mat< Num_T >::operator=(), itpp::Mat< Num_T >::operator==(), itpp::Mat< Num_T >::rows(), itpp::Mat< Num_T >::set_rows(), and itpp::Mat< Num_T >::set_submatrix().
|
protected |
Protected integer variables
Definition at line 454 of file mat.h.
Referenced by itpp::Mat< Num_T >::cols(), itpp::Mat< Num_T >::Mat(), itpp::Mat< Num_T >::operator!=(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::operator*=(), itpp::Mat< Num_T >::operator+=(), itpp::Mat< Num_T >::operator-=(), itpp::Mat< Num_T >::operator/=(), itpp::Mat< Num_T >::operator=(), itpp::Mat< Num_T >::operator==(), and itpp::Mat< Num_T >::set_submatrix().
|
protected |
Protected data pointer.
Definition at line 457 of file mat.h.
Referenced by itpp::Mat< Num_T >::_data(), itpp::Mat< Num_T >::_elem(), itpp::Mat< Num_T >::del_col(), itpp::Mat< Num_T >::del_cols(), itpp::Mat< Num_T >::del_row(), itpp::Mat< Num_T >::del_rows(), itpp::Mat< Num_T >::get_cols(), itpp::Mat< Num_T >::get_rows(), itpp::Mat< Num_T >::hermitian_transpose(), itpp::Mat< Num_T >::ins_col(), itpp::Mat< Num_T >::ins_row(), itpp::Mat< Num_T >::Mat(), itpp::Mat< Num_T >::operator!=(), itpp::Mat< Num_T >::operator()(), itpp::Mat< Num_T >::operator*=(), itpp::Mat< Num_T >::operator+=(), itpp::Mat< Num_T >::operator-=(), itpp::Mat< Num_T >::operator/=(), itpp::Mat< Num_T >::operator=(), itpp::Mat< Num_T >::operator==(), itpp::Mat< Num_T >::set_cols(), itpp::Mat< Num_T >::set_rows(), itpp::Mat< Num_T >::set_submatrix(), and itpp::Mat< Num_T >::transpose().
Generated on Sun Jun 5 2022 21:26:42 for IT++ by Doxygen 1.9.3