Stan  1.3
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Namespaces | Functions
multiply.hpp File Reference
#include <stdexcept>
#include <stan/math/matrix/Eigen.hpp>
#include <stan/math/matrix/validate_multiplicable.hpp>
#include <stan/math/matrix/validate_matching_sizes.hpp>

Go to the source code of this file.

Namespaces

namespace  stan
 Probability, optimization and sampling library.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<int R, int C>
Eigen::Matrix< double, R, C > stan::math::multiply (const Eigen::Matrix< double, R, C > &m, double c)
 Return specified matrix multiplied by specified scalar.
 
template<int R, int C>
Eigen::Matrix< double, R, C > stan::math::multiply (double c, const Eigen::Matrix< double, R, C > &m)
 Return specified scalar multiplied by specified matrix.
 
template<int R1, int C1, int R2, int C2>
Eigen::Matrix< double, R1, C2 > stan::math::multiply (const Eigen::Matrix< double, R1, C1 > &m1, const Eigen::Matrix< double, R2, C2 > &m2)
 Return the product of the specified matrices.
 
template<int C1, int R2>
double stan::math::multiply (const Eigen::Matrix< double, 1, C1 > &rv, const Eigen::Matrix< double, R2, 1 > &v)
 Return the scalar product of the specified row vector and specified column vector.
 

     [ Stan Home Page ] © 2011–2013, Stan Development Team.