![]() |
Deep RTS
|
#include <matrix.h>
Public Member Functions | |
matrix () | |
matrix (const std::vector< size_t > &shape) | |
matrix (const std::vector< size_t > &shape, X D) | |
template<typename Iterator > | |
matrix (const std::vector< size_t > &shape, Iterator first, Iterator last) | |
void | resize (const std::vector< size_t > &shape) |
void | reshape (const std::vector< size_t > &shape) |
void | chdim (size_t ndim) |
size_t | size () const |
size_t | ndim () const |
size_t | shape (size_t i) const |
std::vector< size_t > | shape () const |
std::vector< size_t > | strides (bool bytes=false) const |
X & | operator[] (size_t i) |
const X & | operator[] (size_t i) const |
X & | operator() (size_t a) |
const X & | operator() (size_t a) const |
X & | operator() (size_t a, size_t b) |
const X & | operator() (size_t a, size_t b) const |
X & | operator() (size_t a, size_t b, size_t c) |
const X & | operator() (size_t a, size_t b, size_t c) const |
X & | operator() (size_t a, size_t b, size_t c, size_t d) |
const X & | operator() (size_t a, size_t b, size_t c, size_t d) const |
X & | operator() (size_t a, size_t b, size_t c, size_t d, size_t e) |
const X & | operator() (size_t a, size_t b, size_t c, size_t d, size_t e) const |
X & | operator() (size_t a, size_t b, size_t c, size_t d, size_t e, size_t f) |
const X & | operator() (size_t a, size_t b, size_t c, size_t d, size_t e, size_t f) const |
X * | data () |
const X * | data () const |
auto | begin () |
auto | begin () const |
auto | end () |
auto | end () const |
void | setConstant (X D) |
void | setZero () |
void | setOnes () |
void | zeros () |
void | ones () |
matrix< X > & | operator*= (const matrix< X > &B) |
matrix< X > & | operator/= (const matrix< X > &B) |
matrix< X > & | operator+= (const matrix< X > &B) |
matrix< X > & | operator-= (const matrix< X > &B) |
matrix< X > & | operator*= (const X &B) |
matrix< X > & | operator/= (const X &B) |
matrix< X > & | operator+= (const X &B) |
matrix< X > & | operator-= (const X &B) |
X | min () const |
X | max () const |
X | sum () const |
double | mean () const |
double | average (const matrix< X > &weights) const |
void | printf (std::string fmt) const |
|
inline |
cppmat::matrix< X >::matrix | ( | const std::vector< size_t > & | shape | ) |
cppmat::matrix< X >::matrix | ( | const std::vector< size_t > & | shape, |
X | D | ||
) |
cppmat::matrix< X >::matrix | ( | const std::vector< size_t > & | shape, |
Iterator | first, | ||
Iterator | last | ||
) |
double cppmat::matrix< X >::average | ( | const matrix< X > & | weights | ) | const |
auto cppmat::matrix< X >::begin | ( | ) |
auto cppmat::matrix< X >::begin | ( | ) | const |
void cppmat::matrix< X >::chdim | ( | size_t | ndim | ) |
X * cppmat::matrix< X >::data | ( | ) |
const X * cppmat::matrix< X >::data | ( | ) | const |
auto cppmat::matrix< X >::end | ( | ) |
auto cppmat::matrix< X >::end | ( | ) | const |
X cppmat::matrix< X >::max | ( | ) | const |
double cppmat::matrix< X >::mean | ( | ) | const |
X cppmat::matrix< X >::min | ( | ) | const |
size_t cppmat::matrix< X >::ndim | ( | ) | const |
void cppmat::matrix< X >::ones | ( | ) |
X & cppmat::matrix< X >::operator() | ( | size_t | a | ) |
const X & cppmat::matrix< X >::operator() | ( | size_t | a | ) | const |
X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b | ||
) |
const X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b | ||
) | const |
X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c | ||
) |
const X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c | ||
) | const |
X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c, | ||
size_t | d | ||
) |
const X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c, | ||
size_t | d | ||
) | const |
X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c, | ||
size_t | d, | ||
size_t | e | ||
) |
const X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c, | ||
size_t | d, | ||
size_t | e | ||
) | const |
X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c, | ||
size_t | d, | ||
size_t | e, | ||
size_t | f | ||
) |
const X & cppmat::matrix< X >::operator() | ( | size_t | a, |
size_t | b, | ||
size_t | c, | ||
size_t | d, | ||
size_t | e, | ||
size_t | f | ||
) | const |
matrix< X > & cppmat::matrix< X >::operator*= | ( | const matrix< X > & | B | ) |
matrix< X > & cppmat::matrix< X >::operator*= | ( | const X & | B | ) |
matrix< X > & cppmat::matrix< X >::operator+= | ( | const matrix< X > & | B | ) |
matrix< X > & cppmat::matrix< X >::operator+= | ( | const X & | B | ) |
matrix< X > & cppmat::matrix< X >::operator-= | ( | const matrix< X > & | B | ) |
matrix< X > & cppmat::matrix< X >::operator-= | ( | const X & | B | ) |
matrix< X > & cppmat::matrix< X >::operator/= | ( | const matrix< X > & | B | ) |
matrix< X > & cppmat::matrix< X >::operator/= | ( | const X & | B | ) |
X & cppmat::matrix< X >::operator[] | ( | size_t | i | ) |
const X & cppmat::matrix< X >::operator[] | ( | size_t | i | ) | const |
void cppmat::matrix< X >::printf | ( | std::string | fmt | ) | const |
void cppmat::matrix< X >::reshape | ( | const std::vector< size_t > & | shape | ) |
void cppmat::matrix< X >::resize | ( | const std::vector< size_t > & | shape | ) |
void cppmat::matrix< X >::setConstant | ( | X | D | ) |
void cppmat::matrix< X >::setOnes | ( | ) |
void cppmat::matrix< X >::setZero | ( | ) |
std::vector< size_t > cppmat::matrix< X >::shape | ( | ) | const |
size_t cppmat::matrix< X >::shape | ( | size_t | i | ) | const |
size_t cppmat::matrix< X >::size | ( | ) | const |
std::vector< size_t > cppmat::matrix< X >::strides | ( | bool | bytes = false | ) | const |
X cppmat::matrix< X >::sum | ( | ) | const |
void cppmat::matrix< X >::zeros | ( | ) |