Automatic Differentiation
 
Loading...
Searching...
No Matches
multiply.hpp File Reference
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/rev/core/typedefs.hpp>
#include <stan/math/prim/fun.hpp>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T1 , typename T2 , require_all_matrix_t< T1, T2 > * = nullptr, require_return_type_t< is_var, T1, T2 > * = nullptr, require_not_row_and_col_vector_t< T1, T2 > * = nullptr>
auto stan::math::multiply (T1 &&A, T2 &&B)
 Return the product of two matrices.
 
template<typename T1 , typename T2 , require_all_matrix_t< T1, T2 > * = nullptr, require_return_type_t< is_var, T1, T2 > * = nullptr, require_row_and_col_vector_t< T1, T2 > * = nullptr>
var stan::math::multiply (const T1 &A, const T2 &B)
 Return the product of a row vector times a column vector as a scalar.
 
template<typename T1 , typename T2 , require_not_matrix_t< T1 > * = nullptr, require_matrix_t< T2 > * = nullptr, require_return_type_t< is_var, T1, T2 > * = nullptr, require_not_row_and_col_vector_t< T1, T2 > * = nullptr>
auto stan::math::multiply (const T1 &a, T2 &&B)
 Return specified matrix multiplied by specified scalar where at least one input has a scalar type of a var_value.
 
template<typename T1 , typename T2 , require_matrix_t< T1 > * = nullptr, require_not_matrix_t< T2 > * = nullptr, require_any_st_var< T1, T2 > * = nullptr, require_not_complex_t< value_type_t< T1 > > * = nullptr, require_not_complex_t< value_type_t< T2 > > * = nullptr, require_not_row_and_col_vector_t< T1, T2 > * = nullptr>
auto stan::math::multiply (T1 &&A, T2 &&B)
 Return specified matrix multiplied by specified scalar where at least one input has a scalar type of a var_value.
 
template<typename T1 , typename T2 , require_any_var_matrix_t< T1, T2 > * = nullptr>
auto stan::math::operator* (T1 &&a, T2 &&b)
 Operator overload for multiplying a var_value<Matrix>.