|
template<typename T > |
constexpr MatType | flames::matType () |
| Get the MatType value from the class form.
|
|
constexpr MatType | flames::sumType (MatType type1, MatType type2) noexcept |
| Summation type of two matrices.
|
|
constexpr MatType | flames::mulType (MatType type1, MatType type2, size_t n_rows, size_t comm, size_t n_cols) noexcept |
| Multiplication type of two matrices.
|
|
constexpr MatType | flames::tType (MatType type) noexcept |
| Transpose type of a matrix.
|
|
constexpr size_t | flames::upperRow (size_t index, size_t N) |
| Calculate the row index of a upper triangular matrix.
|
|
constexpr size_t | flames::lowerRow (size_t index, size_t N) |
| Calculate the row index of a lower triangular matrix.
|
|
constexpr size_t | flames::supperRow (size_t index, size_t N) |
| Calculate the row index of a strict upper triangular matrix.
|
|
constexpr size_t | flames::slowerRow (size_t index, size_t N) |
| Calculate the row index of a strict lower triangular matrix.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type1, MatType type2> |
static Mat< T1, n_rows, n_cols, sumType(type1, type2)> | flames::operator+ (const M1< T1, n_rows, n_cols, type1, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type2, _unused2... > &mat_R) |
| Add two matrices and make a copy.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M, typename... _unused, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type1, MatType type2> |
static Mat< T1, n_rows, n_cols, type1 > & | flames::operator+= (Mat< T1, n_rows, n_cols, type1 > &mat_L, const M< T2, n_rows, n_cols, type2, _unused... > &mat_R) |
| Matrix self plus a matrix.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type1, MatType type2> |
static Mat< T1, n_rows, n_cols, sumType(type1, type2)> | flames::operator- (const M1< T1, n_rows, n_cols, type1, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type2, _unused2... > &mat_R) |
| Minus two matrices and make a copy.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type1, MatType type2> |
static M1< T1, n_rows, n_cols, type1 > & | flames::operator-= (M1< T1, n_rows, n_cols, type1, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type2, _unused2... > &mat_R) |
| Matrix self minus a matrix.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M, typename... _unused, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type1, MatType type2, std::enable_if_t<(std::is_same< T1, bool >::value), bool > = true> |
static Mat< T1, n_rows, n_cols, mulType(type1, type2, n_rows, n_cols, n_cols)> | flames::operator*= (Mat< T1, n_rows, n_cols, type1 > &mat, const M< T2, n_cols, n_cols, type2, _unused... > &mat_R) |
| Matrix self times a matrix.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M, typename... _unused, typename T , typename ScalarT , size_t n_rows, size_t n_cols, MatType type, std::enable_if_t< std::is_arithmetic< std::remove_reference_t< ScalarT > >::value, bool > = true> |
static Mat< T, n_rows, n_cols, type > & | flames::operator*= (const M< T, n_rows, n_cols, type, _unused... > &mat, ScalarT s) |
| Matrix self times a scalar.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M, typename... _unused, typename T , typename ScalarT , size_t n_rows, size_t n_cols, MatType type, std::enable_if_t< std::is_arithmetic< std::remove_reference_t< ScalarT > >::value, bool > = true> |
static Mat< T, n_rows, n_cols, type > | flames::operator* (const M< T, n_rows, n_cols, type, _unused... > &mat_L, ScalarT s) |
| Matrix times a scalar.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M, typename... _unused, typename T , size_t n_rows, size_t n_cols, MatType type, int AP_W, int AP_I, ap_q_mode AP_Q, ap_o_mode AP_O, int AP_N> |
static Mat< T, n_rows, n_cols, type > | flames::operator* (const M< T, n_rows, n_cols, type, _unused... > &mat_L, ap_fixed< AP_W, AP_I, AP_Q, AP_O, AP_N > s) |
| Matrix times an ap_fixed scalar.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M, typename... _unused, typename T , typename ScalarT , size_t n_rows, size_t n_cols, MatType type, std::enable_if_t< std::is_arithmetic< std::remove_reference_t< ScalarT > >::value, bool > = true> |
static Mat< T, n_rows, n_cols, type > | flames::operator* (ScalarT s, const M< T, n_rows, n_cols, type, _unused... > &mat_R) |
| Matrix times a scalar.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M, typename... _unused, typename T , size_t n_rows, size_t n_cols, MatType type, int AP_W, int AP_I, ap_q_mode AP_Q, ap_o_mode AP_O, int AP_N> |
static Mat< T, n_rows, n_cols, type > | flames::operator* (ap_fixed< AP_W, AP_I, AP_Q, AP_O, AP_N > s, const M< T, n_rows, n_cols, type, _unused... > &mat_R) |
| Matrix times an ap_fixed scalar.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t comm, size_t n_cols, MatType type1, MatType type2, std::enable_if_t<(std::is_same< T1, bool >::value), bool > = true> |
static Mat< T2, n_rows, n_cols, mulType(type1, type2, n_rows, comm, n_cols)> | flames::operator* (const M1< T1, n_rows, comm, type1, _unused1... > &mat_L, const M2< T2, comm, n_cols, type2, _unused2... > &mat_R) |
| Matrix multiplication.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t comm, size_t n_cols, MatType type1, MatType type2, std::enable_if_t<!(std::is_same< T1, bool >::value), bool > = true> |
static Mat< T1, n_rows, n_cols, mulType(type1, type2, n_rows, comm, n_cols)> | flames::operator* (const M1< T1, n_rows, comm, type1, _unused1... > &mat_L, const M2< T2, comm, n_cols, type2, _unused2... > &mat_R) |
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< T1, n_rows, n_cols, type > | flames::operator% (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise product of two matrices.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< bool, n_rows, n_cols, type > | flames::operator== (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise equal comparison.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< bool, n_rows, n_cols, type > | flames::operator!= (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise unequal comparison.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< bool, n_rows, n_cols, type > | flames::operator> (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise greater comparison.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< bool, n_rows, n_cols, type > | flames::operator< (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise less comparison.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< bool, n_rows, n_cols, type > | flames::operator>= (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise greater or equal comparison.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< bool, n_rows, n_cols, type > | flames::operator<= (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise less or equal comparison.
|
|
template<template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t n_rows, size_t n_cols, MatType type> |
Mat< T1, n_rows, n_cols, type > | flames::mod (const M1< T1, n_rows, n_cols, type, _unused1... > &mat_L, const M2< T2, n_rows, n_cols, type, _unused2... > &mat_R) |
| Element-wise modulus.
|
|
template<typename Tp = double, template< class, size_t, size_t, MatType, class... > typename M1, typename... _unused1, template< class, size_t, size_t, MatType, class... > typename M2, typename... _unused2, typename T1 , typename T2 , size_t L_rows, size_t L_cols, size_t R_rows, size_t R_cols, MatType type, std::enable_if_t< L_rows *L_cols==R_rows *R_cols, bool > = true> |
Tp | flames::innerProd (const M1< T1, L_rows, L_cols, type, _unused1... > &mat_L, const M2< T2, R_rows, R_cols, type, _unused2... > &mat_R) |
|
template<typename T , size_t n_rows, size_t n_cols, MatType type> |
static std::ostream & | flames::operator<< (std::ostream &os, const Mat< T, n_rows, n_cols, type > &mat) |
| Print matrix in a out stream.
|
|