Stan  1.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Namespaces | Macros | Functions
matrix.cpp File Reference
#include "stan/math/matrix.hpp"
#include "stan/math/special_functions.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.
 

Macros

#define __STAN__MATH__MATRIX_CPP__
 

Functions

double stan::math::determinant (const matrix_d &m)
 Returns the determinant of the specified square matrix.
 
vector_d stan::math::add (const vector_d &v1, const vector_d &v2)
 Return the sum of the specified column vectors.
 
row_vector_d stan::math::add (const row_vector_d &rv1, const row_vector_d &rv2)
 Return the sum of the specified row vectors.
 
matrix_d stan::math::add (const matrix_d &m1, const matrix_d &m2)
 Return the sum of the specified matrices.
 
vector_d stan::math::subtract (const vector_d &v1, const vector_d &v2)
 Return the difference between the first specified column vector and the second.
 
row_vector_d stan::math::subtract (const row_vector_d &rv1, const row_vector_d &rv2)
 Return the difference between the first specified row vector and the second.
 
matrix_d stan::math::subtract (const matrix_d &m1, const matrix_d &m2)
 Return the difference between the first specified matrix and the second.
 
vector_d stan::math::minus (const vector_d &v)
 Return the negation of the specified column vector.
 
row_vector_d stan::math::minus (const row_vector_d &rv)
 Return the negation of the specified row vector.
 
matrix_d stan::math::minus (const matrix_d &m)
 Return the negation of the specified matrix.
 
vector_d stan::math::divide (const vector_d &v, double c)
 Return the division of the specified column vector by the specified scalar.
 
row_vector_d stan::math::divide (const row_vector_d &rv, double c)
 Return the division of the specified row vector by the specified scalar.
 
matrix_d stan::math::divide (const matrix_d &m, double c)
 Return the division of the specified matrix by the specified scalar.
 
vector_d stan::math::elt_multiply (const vector_d &v1, const vector_d &v2)
 Return the element-wise product of the specified vectors.
 
row_vector_d stan::math::elt_multiply (const row_vector_d &v1, const row_vector_d &v2)
 Return the element-wise product of the specified row vectors.
 
matrix_d stan::math::elt_multiply (const matrix_d &m1, const matrix_d &m2)
 Return the element-wise product of the specified matrices.
 
vector_d stan::math::elt_divide (const vector_d &v1, const vector_d &v2)
 Return the element-wise divsion of the specified vectors.
 
row_vector_d stan::math::elt_divide (const row_vector_d &v1, const row_vector_d &v2)
 Return the element-wise division of the specified row vectors.
 
matrix_d stan::math::elt_divide (const matrix_d &m1, const matrix_d &m2)
 Return the element-wise division of the specified matrices.
 
vector_d stan::math::multiply (const vector_d &v, double c)
 Return the product of the of the specified column vector and specified scalar.
 
row_vector_d stan::math::multiply (const row_vector_d &rv, double c)
 Return the product of the of the specified row vector and specified scalar.
 
matrix_d stan::math::multiply (const matrix_d &m, double c)
 Return the product of the of the specified matrix and specified scalar.
 
vector_d stan::math::multiply (double c, const vector_d &v)
 Return the product of the specified scalar and vector.
 
row_vector_d stan::math::multiply (double c, const row_vector_d &rv)
 Return the product of the specified scalar and row vector.
 
matrix_d stan::math::multiply (double c, const matrix_d &m)
 Return the product of the specified scalar and matrix.
 
row_vector_d stan::math::row (const matrix_d &m, size_t i)
 Return the specified row of the specified matrix, using start-at-1 indexing.
 
vector_d stan::math::col (const matrix_d &m, size_t j)
 Return the specified column of the specified matrix using start-at-1 indexing.
 
vector_d stan::math::diagonal (const matrix_d &m)
 Return a column vector of the diagonal elements of the specified matrix.
 
matrix_d stan::math::diag_matrix (const vector_d &v)
 Return a square diagonal matrix with the specified vector of coefficients as the diagonal values.
 
row_vector_d stan::math::transpose (const vector_d &v)
 Return the transposition of the specified column vector.
 
vector_d stan::math::transpose (const row_vector_d &rv)
 Return the transposition of the specified row vector.
 
matrix_d stan::math::transpose (const matrix_d &m)
 Return the transposition of the specified matrix.
 
matrix_d stan::math::inverse (const matrix_d &m)
 Returns the inverse of the specified matrix.
 
vector_d stan::math::softmax (const vector_d &y)
 Return the softmax of the specified vector.
 
vector_d stan::math::eigenvalues (const matrix_d &m)
 Return the real component of the eigenvalues of the specified matrix in descending order of magnitude.
 
matrix_d stan::math::eigenvectors (const matrix_d &m)
 Return a matrix whose columns are the real components of the eigenvectors of the specified matrix.
 
void stan::math::eigen_decompose (const matrix_d &m, vector_d &eigenvalues, matrix_d &eigenvectors)
 Assign the real components of the eigenvalues and eigenvectors of the specified matrix to the specified references.
 
vector_d stan::math::eigenvalues_sym (const matrix_d &m)
 Return the eigenvalues of the specified symmetric matrix in descending order of magnitude.
 
matrix_d stan::math::eigenvectors_sym (const matrix_d &m)
 Return a matrix whose rows are the real components of the eigenvectors of the specified symmetric matrix.
 
void stan::math::eigen_decompose_sym (const matrix_d &m, vector_d &eigenvalues, matrix_d &eigenvectors)
 Assign the real components of the eigenvalues and eigenvectors of the specified symmetric matrix to the specified references.
 
matrix_d stan::math::cholesky_decompose (const matrix_d &m)
 Return the lower-triangular Cholesky factor (i.e., matrix square root) of the specified square, symmetric matrix.
 
vector_d stan::math::singular_values (const matrix_d &m)
 Return the vector of the singular values of the specified matrix in decreasing order of magnitude.
 
void stan::math::svd (const matrix_d &m, matrix_d &u, matrix_d &v, vector_d &s)
 Assign the real components of a singular value decomposition of the specified matrix to the specified references.
 

Macro Definition Documentation

#define __STAN__MATH__MATRIX_CPP__

Definition at line 2 of file matrix.cpp.


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