mlpack
multiply_slices.hpp
Go to the documentation of this file.
1 
13 #ifndef MLPACK_CORE_MATH_MULTIPLY_SLICES_HPP
14 #define MLPACK_CORE_MATH_MULTIPLY_SLICES_HPP
15 
16 #include <mlpack/prereqs.hpp>
17 
18 namespace mlpack {
19 namespace math {
20 
32 template <typename CubeType>
33 CubeType MultiplyCube2Cube(const CubeType& cubeA,
34  const CubeType& cubeB,
35  const bool aTranspose = false,
36  const bool bTranspose = false);
49 template <typename MatType, typename CubeType>
50 CubeType MultiplyMat2Cube(const MatType& matA,
51  const CubeType& cubeB,
52  const bool aTranspose = false,
53  const bool bTranspose = false);
66 template <typename CubeType, typename MatType>
67 CubeType MultiplyCube2Mat(const CubeType& cubeA,
68  const MatType& matB,
69  const bool aTranspose = false,
70  const bool bTranspose = false);
71 
72 } // namespace math
73 } // namespace mlpack
74 
75 // Include implementation.
76 #include "multiply_slices_impl.hpp"
77 
78 #endif
Linear algebra utility functions, generally performed on matrices or vectors.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
CubeType MultiplyMat2Cube(const MatType &matA, const CubeType &cubeB, const bool aTranspose=false, const bool bTranspose=false)
Matrix multiplication of a matrix and all the slices of a cube.
Definition: multiply_slices_impl.hpp:83
CubeType MultiplyCube2Cube(const CubeType &cubeA, const CubeType &cubeB, const bool aTranspose=false, const bool bTranspose=false)
Matrix multiplication of slices of two cubes.
Definition: multiply_slices_impl.hpp:22
CubeType MultiplyCube2Mat(const CubeType &cubeA, const MatType &matB, const bool aTranspose=false, const bool bTranspose=false)
Matrix multiplication of all slices of a cube with a matrix.
Definition: multiply_slices_impl.hpp:141