|
template<std::size_t Rank, typename Scalar > |
static void | set_block_from_tensor (MType< Scalar > &M, const Indextype &row_off, const Indextype &col_off, const Indextype &rows, const Indextype &cols, const Scalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Scalar > |
static void | add_to_block_from_tensor (MType< Scalar > &M, const Indextype &row_off, const Indextype &col_off, const Indextype &rows, const Indextype &cols, const Scalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Scalar > |
static TType< Scalar, Rank > | tensor_from_matrix_block (const MType< Scalar > &M, const Indextype &row_off, const Indextype &col_off, const Indextype &rows, const Indextype &cols, const std::array< Indextype, Rank > &dims) |
|
template<typename MT > |
static void | diagonal_head_matrix_to_vector (VType< typename ctf_traits< MT >::Scalar > &V, MT &&M, const Indextype &n_elems) |
|
template<typename VT > |
static void | vec_diff (VT &&vec, MType< typename ctf_traits< VT >::Scalar > &res) |
|
template<typename VT > |
static void | vec_add (VT &&vec, MType< typename ctf_traits< VT >::Scalar > &res) |
|
template<typename MT > |
static std::tuple< MType< typename ctf_traits< MT >::Scalar >, VType< typename ctf_traits< MT >::Scalar >, MType< typename ctf_traits< MT >::Scalar > > | svd (MT &&M) |
|
template<typename Scalar , typename VT > |
static MType< Scalar > | vec_to_diagmat (VT &&V) |
|
template<std::size_t Rank, typename Derived , typename Scalar > |
static void | set_block_from_tensor (Eigen::MatrixBase< Derived > &M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const Scalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived , typename Scalar > |
static void | add_to_block_from_tensor (Eigen::MatrixBase< Derived > &M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const Scalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived , typename Scalar > |
static void | set_block_from_tensor (Eigen::MatrixBase< Derived > &&M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const Scalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived , typename Scalar > |
static void | add_to_block_from_tensor (Eigen::MatrixBase< Derived > &&M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const Scalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived > |
static TType< typename Derived::Scalar, Rank > | tensor_from_matrix_block (const Eigen::MatrixBase< Derived > &M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const std::array< Indextype, Rank > &dims) |
|
template<typename Derived > |
static void | diagonal_head_matrix_to_vector (VType< typename Derived::Scalar > &V, const Eigen::MatrixBase< Derived > &M, const Indextype &n_elems) |
|
template<typename Derived > |
static std::tuple< MType< typename Derived::Scalar >, VType< typename Derived::Scalar >, MType< typename Derived::Scalar > > | svd (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Scalar > |
static MType< Scalar > | vec_to_diagmat (const VType< Scalar > &V) |
|
template<std::size_t Rank, typename Derived , typename ClebschScalar , typename Scalar > |
static void | set_block_from_tensor (Eigen::MatrixBase< Derived > &M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const ClebschScalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived , typename ClebschScalar , typename Scalar > |
static void | add_to_block_from_tensor (Eigen::MatrixBase< Derived > &M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const ClebschScalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived , typename ClebschScalar , typename Scalar > |
static void | set_block_from_tensor (Eigen::MatrixBase< Derived > &&M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const ClebschScalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived , typename ClebschScalar , typename Scalar > |
static void | add_to_block_from_tensor (Eigen::MatrixBase< Derived > &&M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const ClebschScalar &scale, const TType< Scalar, Rank > &T) |
|
template<std::size_t Rank, typename Derived > |
static TType< typename Derived::Scalar, Rank > | tensor_from_matrix_block (const Eigen::MatrixBase< Derived > &M, const Indextype &row, const Indextype &col, const Indextype &rows, const Indextype &cols, const std::array< Indextype, Rank > &dims) |
|
template<typename Derived > |
static void | diagonal_head_matrix_to_vector (VType< typename Derived::Scalar > &V, const Eigen::MatrixBase< Derived > &M, const Indextype &n_elems) |
|
template<typename Scalar > |
static void | vec_diff (const Eigen::Matrix< Scalar, -1, 1 > &vec, MType< Scalar > &res) |
|
template<typename Scalar > |
static void | vec_add (const Eigen::Matrix< Scalar, -1, 1 > &vec, MType< Scalar > &res) |
|
template<typename Derived > |
static std::tuple< MType< typename Derived::Scalar >, VType< typename Derived::RealScalar >, MType< typename Derived::Scalar > > | svd (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Scalar > |
static MType< Scalar > | vec_to_diagmat (const VType< Scalar > &V) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | add (MT1 &&M1, MT2 &&M2) |
|
template<typename DerivedL , typename DerivedR > |
static auto | add (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | difference (MT1 &&M1, MT2 &&M2) |
|
template<typename DerivedL , typename DerivedR > |
static auto | difference (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Scalar > |
static Scalar | getVal (const MType< Scalar > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename Derived > |
static Derived::Scalar | getVal (const Eigen::DenseBase< Derived > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename MT > |
static void | print (MT &&M) |
|
template<typename Derived > |
static std::string | print (const Eigen::DenseBase< Derived > &M) |
|
template<typename Scalar > |
static void | scale (MType< Scalar > &M, const Scalar &val) |
|
template<typename Derived > |
static void | scale (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (MType< Scalar > &M, const Scalar &val) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &&M, const typename Derived::Scalar &val) |
|
template<typename Scalar > |
static void | setRandom (MType< Scalar > &M) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &M, std::mt19937 &engine) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &&M, std::mt19937 &engine) |
|
template<typename Scalar > |
static void | setVal (MType< Scalar > &M, const MIndextype row, const MIndextype col, const Scalar &val) |
|
template<typename Derived > |
static void | setVal (Eigen::DenseBase< Derived > &M, const MIndextype &row, const MIndextype &col, typename Derived::Scalar val) |
|
template<typename Scalar > |
static void | setZero (MType< Scalar > &M) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &&M) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, mpi::XpedWorld &world=mpi::getUniverse()) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, CTF::World &world) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , std::size_t Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , std::size_t Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar , typename VT1 > |
static VType< Scalar > | scale (VT1 &&V, const Scalar &val) |
|
template<typename Scalar > |
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_product_op< Scalar, Scalar >, Scalar, const VType< Scalar > > | scale (const VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | add (MT1 &&M1, MT2 &&M2) |
|
template<typename DerivedL , typename DerivedR > |
static auto | add (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | difference (MT1 &&M1, MT2 &&M2) |
|
template<typename DerivedL , typename DerivedR > |
static auto | difference (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Scalar > |
static Scalar | getVal (const MType< Scalar > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename Derived > |
static Derived::Scalar | getVal (const Eigen::DenseBase< Derived > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename MT > |
static void | print (MT &&M) |
|
template<typename Derived > |
static std::string | print (const Eigen::DenseBase< Derived > &M) |
|
template<typename Scalar > |
static void | scale (MType< Scalar > &M, const Scalar &val) |
|
template<typename Derived > |
static void | scale (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (MType< Scalar > &M, const Scalar &val) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &&M, const typename Derived::Scalar &val) |
|
template<typename Scalar > |
static void | setRandom (MType< Scalar > &M) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &M, std::mt19937 &engine) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &&M, std::mt19937 &engine) |
|
template<typename Scalar > |
static void | setZero (MType< Scalar > &M) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &&M) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, mpi::XpedWorld &world=mpi::getUniverse()) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, CTF::World &world) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , std::size_t Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar , typename VT1 > |
static VType< Scalar > | scale (VT1 &&V, const Scalar &val) |
|
template<typename Scalar > |
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_product_op< Scalar, Scalar >, Scalar, const VType< Scalar > > | scale (const VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | add (MT1 &&M1, MT2 &&M2) |
|
template<typename DerivedL , typename DerivedR > |
static auto | add (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | difference (MT1 &&M1, MT2 &&M2) |
|
template<typename DerivedL , typename DerivedR > |
static auto | difference (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Scalar > |
static const Scalar * | get_raw_data (const Eigen::Matrix< Scalar, -1, -1 > &M) |
|
template<typename Scalar > |
static Scalar * | get_raw_data (Eigen::Matrix< Scalar, -1, -1 > &M) |
|
template<typename Scalar > |
static Scalar | getVal (const MType< Scalar > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename Derived > |
static Derived::Scalar | getVal (const Eigen::DenseBase< Derived > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename MT > |
static void | print (MT &&M) |
|
template<typename Derived > |
static std::string | print (const Eigen::DenseBase< Derived > &M) |
|
template<typename Scalar > |
static void | scale (MType< Scalar > &M, const Scalar &val) |
|
template<typename Derived > |
static void | scale (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (MType< Scalar > &M, const Scalar &val) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &&M, const typename Derived::Scalar &val) |
|
template<typename Scalar > |
static void | setRandom (MType< Scalar > &M) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &M, std::mt19937 &engine) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &&M, std::mt19937 &engine) |
|
template<typename Scalar > |
static void | setVal (MType< Scalar > &M, const MIndextype row, const MIndextype col, const Scalar &val) |
|
template<typename Derived > |
static void | setVal (Eigen::DenseBase< Derived > &M, const MIndextype &row, const MIndextype &col, typename Derived::Scalar val) |
|
template<typename Scalar > |
static void | setZero (MType< Scalar > &M) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &&M) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, mpi::XpedWorld &world=mpi::getUniverse()) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, CTF::World &world) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static const Scalar * | get_raw_data (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static Scalar * | get_raw_data (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static Scalar * | get_raw_data (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static const Scalar * | get_raw_data (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static Scalar * | get_raw_data (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , std::size_t Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , std::size_t Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar , typename VT1 > |
static VType< Scalar > | scale (VT1 &&V, const Scalar &val) |
|
template<typename Scalar > |
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_product_op< Scalar, Scalar >, Scalar, const VType< Scalar > > | scale (const VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static void | resize (MType< Scalar > &M, const MIndextype &new_rows, const MIndextype &new_cols) |
|
template<typename Scalar > |
static void | setZero (MType< Scalar > &M) |
|
template<typename Scalar > |
static void | setRandom (MType< Scalar > &M) |
|
template<typename Scalar > |
static void | setIdentity (MType< Scalar > &M) |
|
template<typename Scalar > |
static void | setConstant (MType< Scalar > &M, const Scalar &val) |
|
template<typename Scalar > |
static void | setVal (MType< Scalar > &M, const MIndextype row, const MIndextype col, const Scalar &val) |
|
template<typename Scalar > |
static MType< Scalar > | Identity (const MIndextype &rows, const MIndextype &cols, CTF::World &world) |
|
template<typename Scalar > |
static MIndextype | rows (const MType< Scalar > &M) |
|
template<typename Scalar > |
static MIndextype | cols (const MType< Scalar > &M) |
|
template<typename MT > |
static ctf_traits< MT >::Scalar | trace (MT &&M) |
|
template<typename MT > |
static ctf_traits< MT >::Scalar | maxNorm (MT &&M) |
|
template<typename MT > |
static ctf_traits< MT >::Scalar | maxCoeff (MT &&M, MIndextype &maxrow, MIndextype &maxcol) |
|
template<typename Scalar > |
static Scalar | getVal (const MType< Scalar > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | kronecker_prod (MT1 &&M1, MT2 &&M2) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | prod (MT1 &&M1, MT2 &&M2) |
|
template<typename Scalar , typename MatrixExpr1 , typename MatrixExpr2 , typename MatrixExpr3 , typename MatrixExprRes > |
static void | optimal_prod (const Scalar &scale, MatrixExpr1 &&M1, MatrixExpr2 &&M2, MatrixExpr3 &&M3, MatrixExprRes &Mres) |
|
template<typename Scalar , typename MatrixExpr1 , typename MatrixExpr2 , typename MatrixExpr3 , typename MatrixExprRes > |
static void | optimal_prod_add (const Scalar &scale, MatrixExpr1 &&M1, MatrixExpr2 &&M2, MatrixExpr3 &&M3, MatrixExprRes &Mres) |
|
template<typename MT > |
static MType< typename ctf_traits< MT >::Scalar > | msqrt (MT &&M) |
|
template<typename MT > |
static MType< typename ctf_traits< MT >::Scalar > | mexp (MT &&M) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | add (MT1 &&M1, MT2 &&M2) |
|
template<typename MT1 , typename MT2 > |
static MType< typename ctf_traits< MT1 >::Scalar > | difference (MT1 &&M1, MT2 &&M2) |
|
template<typename Scalar > |
static void | scale (MType< Scalar > &M, const Scalar &val) |
|
template<typename Scalar , typename MT > |
static MType< Scalar > | unaryFunc (MT &&M, const std::function< Scalar(Scalar)> &func) |
|
template<typename Scalar , typename MT > |
static MType< Scalar > | diagUnaryFunc (MT &&M, const std::function< Scalar(Scalar)> &func) |
|
template<typename Scalar , typename MTL , typename MTR > |
static MType< Scalar > | diagBinaryFunc (MTL &&M_left, MTR &&M_right, const std::function< Scalar(Scalar, Scalar)> &func) |
|
template<typename Scalar , typename MTL , typename MTR > |
static MType< Scalar > | binaryFunc (MTL &&M_left, MTR &&M_right, const std::function< Scalar(Scalar, Scalar)> &func) |
|
template<typename MT > |
static MType< typename ctf_traits< MT >::Scalar > | adjoint (MT &&M) |
|
template<typename Scalar > |
static MType< Scalar > | block (const MType< Scalar > &M, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols) |
|
template<typename MT > |
static std::pair< MType< typename ctf_traits< MT >::Scalar >, MType< typename ctf_traits< MT >::Scalar > > | eigh (MT &&M) |
|
template<typename MT > |
static std::pair< MType< typename ctf_traits< MT >::Scalar >, MType< typename ctf_traits< MT >::Scalar > > | qr (MT &&M) |
|
template<typename Scalar > |
static void | add_to_block (MType< Scalar > &M1, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols, const MType< Scalar > &M2) |
|
template<typename MT > |
static void | print (MT &&M) |
|
template<typename Scalar > |
static MType< Scalar > | construct (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename Scalar > |
static MType< Scalar > | construct_with_zero (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename Scalar > |
static void | resize (MType< Scalar > &M, const MIndextype &new_rows, const MIndextype &new_cols) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static void | setZero (Eigen::MatrixBase< Derived > &&M) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &M, std::mt19937 &engine) |
|
template<typename Derived > |
static void | setRandom (Eigen::MatrixBase< Derived > &&M, std::mt19937 &engine) |
|
template<typename Derived > |
static void | setIdentity (Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static void | setIdentity (Eigen::MatrixBase< Derived > &&M) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Derived > |
static void | setConstant (Eigen::MatrixBase< Derived > &&M, const typename Derived::Scalar &val) |
|
template<typename Derived > |
static void | setVal (Eigen::DenseBase< Derived > &M, const MIndextype &row, const MIndextype &col, typename Derived::Scalar val) |
|
template<typename Scalar > |
static MType< Scalar > | Identity (const MIndextype &rows, const MIndextype &cols, const mpi::XpedWorld &) |
|
template<typename Derived > |
static MIndextype | rows (const Eigen::DenseBase< Derived > &M) |
|
template<typename Derived > |
static MIndextype | cols (const Eigen::DenseBase< Derived > &M) |
|
template<typename Derived > |
static Derived::Scalar | getVal (const Eigen::DenseBase< Derived > &M, const MIndextype &row, const MIndextype &col) |
|
template<typename Scalar > |
static const Scalar * | get_raw_data (const Eigen::Matrix< Scalar, -1, -1 > &M) |
|
template<typename Scalar > |
static Scalar * | get_raw_data (Eigen::Matrix< Scalar, -1, -1 > &M) |
|
template<typename Derived > |
static Derived::Scalar | trace (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static Derived::RealScalar | maxNorm (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static Derived::RealScalar | maxCoeff (const Eigen::MatrixBase< Derived > &M, MIndextype &maxrow, MIndextype &maxcol) |
|
template<typename DerivedL , typename DerivedR > |
static MType< std::common_type_t< typename DerivedL::Scalar, typename DerivedR::Scalar > > | kronecker_prod (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename DerivedL , typename DerivedR > |
static MType< std::common_type_t< typename DerivedL::Scalar, typename DerivedR::Scalar > > | prod (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Scalar , typename MatrixExpr1 , typename MatrixExpr2 , typename MatrixExpr3 , typename MatrixExprRes > |
static void | optimal_prod (const Scalar &scale, const MatrixExpr1 &M1, const MatrixExpr2 &M2, const MatrixExpr3 &M3, MatrixExprRes &Mres) |
|
template<typename Scalar , typename MatrixExpr1 , typename MatrixExpr2 , typename MatrixExpr3 , typename MatrixExprRes > |
static void | optimal_prod_add (const Scalar &scale, const MatrixExpr1 &M1, const MatrixExpr2 &M2, const MatrixExpr3 &M3, MatrixExprRes &Mres) |
|
template<typename DerivedL , typename DerivedR > |
static auto | add (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename DerivedL , typename DerivedR > |
static auto | difference (const Eigen::MatrixBase< DerivedL > &M1, const Eigen::MatrixBase< DerivedR > &M2) |
|
template<typename Derived > |
static void | scale (Eigen::MatrixBase< Derived > &M, const typename Derived::Scalar &val) |
|
template<typename Scalar , typename Derived > |
static auto | diagUnaryFunc (const Eigen::MatrixBase< Derived > &M, const std::function< Scalar(Scalar)> &func) |
|
template<typename Scalar , typename Derived > |
static auto | unaryFunc (const Eigen::MatrixBase< Derived > &M, const std::function< Scalar(typename Derived::Scalar)> &func) |
|
template<typename Scalar , typename Derived , typename OtherDerived > |
static auto | diagBinaryFunc (const Eigen::MatrixBase< Derived > &M_left, const Eigen::MatrixBase< OtherDerived > &M_right, const std::function< Scalar(Scalar, Scalar)> &func) |
|
template<typename Scalar , typename Derived , typename OtherDerived > |
static auto | binaryFunc (const Eigen::MatrixBase< Derived > &M_left, const Eigen::MatrixBase< OtherDerived > &M_right, const std::function< Scalar(Scalar, Scalar)> &func) |
|
template<typename Scalar , typename Derived > |
static auto | msqrt (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived , typename Scalar > |
static auto | mexp (const Eigen::MatrixBase< Derived > &M, Scalar factor) |
|
template<typename Derived > |
static auto | adjoint (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static auto | block (const Eigen::MatrixBase< Derived > &M, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols) |
|
template<typename Derived > |
static auto | block (Eigen::MatrixBase< Derived > &&M, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols) |
|
template<typename Derived > |
static auto | block (Eigen::MatrixBase< Derived > &M, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols) |
|
template<typename Derived > |
static void | add_to_block (Eigen::MatrixBase< Derived > &M1, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols, const Eigen::MatrixBase< Derived > &M2) |
|
template<typename Derived > |
static void | set_block (Eigen::MatrixBase< Derived > &M1, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols, const Eigen::MatrixBase< Derived > &M2) |
|
template<typename Derived > |
static void | add_to_block (Eigen::MatrixBase< Derived > &&M1, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols, const Eigen::MatrixBase< Derived > &M2) |
|
template<typename Derived > |
static void | set_block (Eigen::MatrixBase< Derived > &&M1, const MIndextype &row_off, const MIndextype &col_off, const MIndextype &rows, const MIndextype &cols, const Eigen::MatrixBase< Derived > &M2) |
|
template<typename Derived > |
static std::pair< MType< typename Derived::Scalar >, MType< typename Derived::Scalar > > | eigh (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static std::pair< MType< typename Derived::Scalar >, MType< typename Derived::Scalar > > | qr (const Eigen::MatrixBase< Derived > &M) |
|
template<typename Derived > |
static std::string | print (const Eigen::DenseBase< Derived > &M) |
|
template<typename element_t , std::size_t N, size_t... Is> |
static nda::internal::tuple_of_n< element_t, N > | as_tuple (std::array< element_t, N > const &arr, std::index_sequence< Is... >) |
|
template<typename element_t , std::size_t N> |
static nda::internal::tuple_of_n< element_t, N > | as_tuple (std::array< element_t, N > const &arr) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, mpi::XpedWorld &world=mpi::getUniverse()) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static cMapTType< Scalar, Rank > | cMap (const Scalar *data, const std::array< Indextype, Rank > &dims) |
|
template<typename Scalar , std::size_t Rank> |
static MapTType< Scalar, Rank > | Map (Scalar *data, const std::array< Indextype, Rank > &dims) |
|
template<typename Scalar , std::size_t Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static const Scalar * | get_raw_data (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static Scalar * | get_raw_data (TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static std::array< Indextype, Rank > | dimensions (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | tensorProd (const TType< Scalar, Rank > &T1, const TType< Scalar, Rank > &T2) |
|
template<typename Scalar , std::size_t Rank, Indextype... Is, typename Expr1 , typename Expr2 > |
static void | addScale_helper (const Expr1 &src, Expr2 &dst, const Scalar &scale, seq::iseq< Indextype, Is... > S) |
|
template<typename Scalar , std::size_t Rank, typename Expr1 , typename Expr2 > |
static void | addScale (const Expr1 &src, Expr2 &dst, const Scalar &scale) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2, Indextype... Is1, Indextype... Is2, Indextype... Ist> |
static auto | contract_helper (const TType< Scalar, Rank1 > &T1, const TType< Scalar, Rank2 > &T2, seq::iseq< Indextype, Is1... > S1, seq::iseq< Indextype, Is2... > S2, seq::iseq< Indextype, Ist... > St) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2, Indextype... Is> |
static TType< Scalar, Rank1+Rank2 - sizeof...(Is)> | contract (const TType< Scalar, Rank1 > &T1, const TType< Scalar, Rank2 > &T2) |
|
template<typename Expr , Indextype... p> |
static auto | shuffle_view (const Expr &T) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static TType< Scalar, Rank > | shuffle (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static TType< Scalar, Rank > | shuffle (const cMapTType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static TType< Scalar, Rank > | shuffle (const TType< Scalar, Rank > &T, seq::iseq< Indextype, p... > s) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static auto | shuffle_view (const cMapTType< Scalar, Rank > &T, seq::iseq< Indextype, p... > s) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2> |
static TType< Scalar, Rank2 > | reshape (const TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &dims) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2> |
static auto | slice (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &offsets, const std::array< Indextype, Rank2 > &extents) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2> |
static void | setSubTensor (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &offsets, const std::array< Indextype, Rank2 > &extents, const TType< Scalar, Rank1 > &S) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2> |
static auto | reshape (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &dims) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
static constexpr char | idx (const Indextype &i) |
|
template<std::size_t Rank> |
static constexpr std::array< char, Rank > | get_idx (std::size_t shift=0) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, CTF::World &world) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static Scalar * | get_raw_data (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static std::array< Indextype, Rank > | dimensions (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | tensorProd (TType< Scalar, Rank > &T1, TType< Scalar, Rank > &T2) |
|
template<typename Scalar , std::size_t Rank, typename Expr1 , typename Expr2 > |
static void | addScale (const Expr1 &src, Expr2 &dst, const Scalar &scale) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2, Indextype... Is1, Indextype... Is2, Indextype... Ist> |
static TType< Scalar, sizeof...(Ist)> | contract_helper (TType< Scalar, Rank1 > &T1, TType< Scalar, Rank2 > &T2, seq::iseq< Indextype, Is1... > S1, seq::iseq< Indextype, Is2... > S2, seq::iseq< Indextype, Ist... > St) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2, Indextype... Is> |
static TType< Scalar, Rank1+Rank2 - sizeof...(Is)> | contract (TType< Scalar, Rank1 > &T1, TType< Scalar, Rank2 > &T2) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static TType< Scalar, Rank > | shuffle (TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static TType< Scalar, Rank > | shuffle (TType< Scalar, Rank > &T, seq::iseq< Indextype, p... > s) |
|
template<typename Expr , Indextype... p> |
static Expr | shuffle_view (const Expr &T) |
|
template<typename Scalar , int Rank1, std::size_t Rank2> |
static TType< Scalar, Rank2 > | reshape (const TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &dims) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2> |
static void | setSubTensor (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &offsets, const std::array< Indextype, Rank2 > &extents, const TType< Scalar, Rank1 > &S) |
|
template<typename Scalar , int Rank1, std::size_t Rank2> |
static TType< Scalar, Rank1 > | slice (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &offsets, const std::array< Indextype, Rank2 > &extents) |
|
template<typename Scalar , std::size_t Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank> |
static TType< Scalar, Rank > | construct (const std::array< Indextype, Rank > &dims, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | construct (const MapTType< Scalar, Rank > &map) |
|
template<typename Scalar , int Rank> |
static cTType< Scalar, Rank > | construct (const cMapTType< Scalar, Rank > &map) |
|
template<typename Scalar , std::size_t Rank> |
static cMapTType< Scalar, Rank > | cMap (const Scalar *data, const std::array< Indextype, Rank > &dims) |
|
template<typename Scalar , std::size_t Rank> |
static MapTType< Scalar, Rank > | Map (Scalar *data, const std::array< Indextype, Rank > &dims) |
|
template<typename Scalar , int Rank> |
static void | setZero (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setRandom (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static void | setConstant (TType< Scalar, Rank > &T, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static void | setVal (TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index, const Scalar &val) |
|
template<typename Scalar , int Rank> |
static Scalar | getVal (const TType< Scalar, Rank > &T, const std::array< Indextype, Rank > &index) |
|
template<typename Scalar , int Rank> |
static const Scalar * | get_raw_data (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static Scalar * | get_raw_data (TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static std::array< Indextype, Rank > | dimensions (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , int Rank> |
static TType< Scalar, Rank > | tensorProd (const TType< Scalar, Rank > &T1, const TType< Scalar, Rank > &T2) |
|
template<typename Scalar , std::size_t Rank, typename Expr1 , typename Expr2 > |
static void | addScale (const Expr1 &src, Expr2 &dst, const Scalar &scale) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2, Indextype... Is> |
static TType< Scalar, Rank1+Rank2 - sizeof...(Is)> | contract (const TType< Scalar, Rank1 > &T1, const TType< Scalar, Rank2 > &T2) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static TType< Scalar, Rank > | shuffle (const TType< Scalar, Rank > &T) |
|
template<typename Scalar , std::size_t Rank, Indextype... p> |
static TType< Scalar, Rank > | shuffle (const TType< Scalar, Rank > &T, seq::iseq< Indextype, p... > s) |
|
template<typename Expr , Indextype... p> |
static const Eigen::TensorShufflingOp< const std::array< Indextype, Eigen::internal::traits< Expr >::NumDimensions >, const Expr > | shuffle_view (const Expr &T) |
|
template<typename Scalar , int Rank1, std::size_t Rank2> |
static TType< Scalar, Rank2 > | reshape (const TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &dims) |
|
template<typename Scalar , std::size_t Rank1, std::size_t Rank2> |
static void | setSubTensor (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &offsets, const std::array< Indextype, Rank2 > &extents, const TType< Scalar, Rank1 > &S) |
|
template<typename Scalar , int Rank1, std::size_t Rank2> |
static const Eigen::TensorSlicingOp< const std::array< Indextype, Rank2 >, const std::array< Indextype, Rank2 >, const TType< Scalar, Rank1 > > | slice (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &offsets, const std::array< Indextype, Rank2 > &extents) |
|
template<typename Scalar , int Rank1, std::size_t Rank2> |
static const Eigen::TensorReshapingOp< const std::array< Indextype, Rank2 >, const TType< Scalar, Rank1 > > | reshape (TType< Scalar, Rank1 > &T, const std::array< Indextype, Rank2 > &dims) |
|
template<typename Scalar , int Rank> |
static std::string | print (const TType< Scalar, Rank > &T) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, CTF::World &world) |
|
template<typename Scalar > |
static void | resize (VType< Scalar > &V, const VIndextype &new_elems) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static VIndextype | length (const VType< Scalar > &V) |
|
template<typename Scalar , typename VT1 > |
static VType< Scalar > | scale (VT1 &&V, const Scalar &val) |
|
template<typename Scalar > |
static VType< Scalar > | sub (const VType< Scalar > &V, const VIndextype &off, const VIndextype &elems) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar , typename VT > |
static void | vec_to_stdvec (VT &&V, std::vector< Scalar > &vec) |
|
template<typename Scalar > |
static VType< Scalar > | construct (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static VType< Scalar > | construct_with_zero (const VIndextype &elems, const mpi::XpedWorld &=mpi::getUniverse()) |
|
template<typename Scalar > |
static void | resize (VType< Scalar > &V, const VIndextype &new_elems) |
|
template<typename Scalar > |
static void | setZero (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setRandom (VType< Scalar > &V) |
|
template<typename Scalar > |
static void | setConstant (VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static VIndextype | length (const VType< Scalar > &V) |
|
template<typename Scalar > |
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_sum_op< Scalar, Scalar >, const VType< Scalar >, const VType< Scalar > > | sum (const VType< Scalar > &V1, const VType< Scalar > &V2) |
|
template<typename Scalar > |
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_difference_op< Scalar, Scalar >, const VType< Scalar >, const VType< Scalar > > | substract (const VType< Scalar > &V1, const VType< Scalar > &V2) |
|
template<typename Scalar > |
static const Eigen::CwiseBinaryOp< Eigen::internal::scalar_product_op< Scalar, Scalar >, Scalar, const VType< Scalar > > | scale (const VType< Scalar > &V, const Scalar &val) |
|
template<typename Scalar > |
static const Eigen::VectorBlock< const VType< Scalar > > | sub (const VType< Scalar > &V, const VIndextype &off, const VIndextype &elems) |
|
template<typename Scalar > |
static std::string | print (const VType< Scalar > &V) |
|
template<typename Scalar > |
static void | vec_to_stdvec (const VType< Scalar > &V, std::vector< Scalar > &vec) |
|