mlpack 3.4.2
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
18namespace mlpack {
19namespace math {
20
32template <typename CubeType>
33CubeType MultiplyCube2Cube(const CubeType& cubeA,
34 const CubeType& cubeB,
35 const bool aTranspose = false,
36 const bool bTranspose = false);
49template <typename MatType, typename CubeType>
50CubeType MultiplyMat2Cube(const MatType& matA,
51 const CubeType& cubeB,
52 const bool aTranspose = false,
53 const bool bTranspose = false);
66template <typename CubeType, typename MatType>
67CubeType 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
CubeType MultiplyCube2Cube(const CubeType &cubeA, const CubeType &cubeB, const bool aTranspose=false, const bool bTranspose=false)
Matrix multiplication of slices of two cubes.
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.
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.
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.