KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
m_matrix_d.cpp File Reference
#include <m_cpp/m_matrix_d.h>
#include <m_cpp/m_matrix_d.impl.h>
#include <boost/preprocessor.hpp>

Namespaces

 kjb
 Classes and functions for dealing with trajectory files.
 

Macros

#define MAX_DIMENSION   4
 
#define BOOST_PP_LOCAL_MACRO(nnn)
 
#define BOOST_PP_LOCAL_LIMITS   (1,MAX_DIMENSION)
 
#define FREE_FUNCTION_LIST(NROWS, NCOLS, TRANSPOSED)
 
#define FREE_FUNCTION_LIST_NO_TRANSPOSE(NROWS, NCOLS)
 
#define FREE_FUNCTION_LIST_SQUARE(D)
 
#define FREE_FUNCTION_LIST_3DIM(A, B, C)
 
#define BOOST_PP_LOCAL_MACRO(nnn)
 
#define BOOST_PP_LOCAL_LIMITS   (1,MAX_DIMENSION)
 

Functions

 kjb::FREE_FUNCTION_LIST (2, 3, true)
 
 kjb::FREE_FUNCTION_LIST (2, 3, false)
 
 kjb::FREE_FUNCTION_LIST_NO_TRANSPOSE (2, 3)
 
 kjb::FREE_FUNCTION_LIST (3, 4, true)
 
 kjb::FREE_FUNCTION_LIST (3, 4, false)
 
 kjb::FREE_FUNCTION_LIST_NO_TRANSPOSE (3, 4)
 
 kjb::FREE_FUNCTION_LIST_3DIM (3, 3, 4)
 
 kjb::FREE_FUNCTION_LIST_3DIM (3, 4, 4)
 
 kjb::FREE_FUNCTION_LIST_3DIM (2, 2, 3)
 
 kjb::FREE_FUNCTION_LIST_3DIM (2, 3, 3)
 
double kjb::det (const Matrix_d< 1, 1 > &m)
 
double kjb::det (const Matrix_d< 2, 2 > &m)
 
double kjb::det (const Matrix_d< 3, 3 > &m)
 
Matrix_d< 2, 2 > kjb::matrix_inverse (const Matrix_d< 2, 2 > &m)
 
Matrix_d< 3, 3 > kjb::matrix_inverse (const Matrix_d< 3, 3 > &m)
 
void kjb::symmetric_eigs (const kjb::Matrix3 &A, double &eig1, double &eig2, double &eig3)
 get eigenvalues of symmetric matrix A in ascending order More...
 

Macro Definition Documentation

#define BOOST_PP_LOCAL_LIMITS   (1,MAX_DIMENSION)
#define BOOST_PP_LOCAL_LIMITS   (1,MAX_DIMENSION)
#define BOOST_PP_LOCAL_MACRO (   nnn)
Value:
template class Matrix_d<nnn,nnn,true>; \
template class Matrix_d<nnn,nnn,false>;
#define BOOST_PP_LOCAL_MACRO (   nnn)
Value:
FREE_FUNCTION_LIST(nnn,nnn,true) \
FREE_FUNCTION_LIST(nnn,nnn,false) \
#define FREE_FUNCTION_LIST_NO_TRANSPOSE(NROWS, NCOLS)
Definition: m_matrix_d.cpp:65
#define FREE_FUNCTION_LIST_3DIM(A, B, C)
Definition: m_matrix_d.cpp:75
#define FREE_FUNCTION_LIST(NROWS, NCOLS, TRANSPOSED)
Definition: m_matrix_d.cpp:49
#define FREE_FUNCTION_LIST_SQUARE(D)
Definition: m_matrix_d.cpp:70
#define FREE_FUNCTION_LIST (   NROWS,
  NCOLS,
  TRANSPOSED 
)
Value:
template Matrix_d<NROWS, NCOLS, TRANSPOSED> operator*(double scalar, const Matrix_d<NROWS, NCOLS, TRANSPOSED>& mat); \
template Matrix operator*(const Matrix_d<NROWS, NCOLS, TRANSPOSED>& op1, const Matrix& op2); \
template Matrix operator*(const kjb::Matrix& op1, const Matrix_d<NROWS, NCOLS, TRANSPOSED>& op2); \
template bool operator==(const Matrix& op2, const Matrix_d<NROWS, NCOLS, TRANSPOSED>& op1); \
template bool operator!=(const Matrix& op2, const Matrix_d<NROWS, NCOLS, TRANSPOSED>& op1); \
template Matrix_d<NROWS, NCOLS, TRANSPOSED> operator-(const Matrix op1, const Matrix_d<NROWS, NCOLS, TRANSPOSED>& op2); \
template Matrix_d<NROWS, NCOLS, TRANSPOSED> operator+(const Matrix& second, const Matrix_d<NROWS, NCOLS, TRANSPOSED>& op2); \
template Matrix_d<Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_rows, Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_cols> Matrix_d<NROWS,NCOLS,TRANSPOSED>::operator*(const Matrix_d<Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_cols, Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_cols, false>& second) const; \
template Matrix_d<Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_rows, Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_cols> Matrix_d<NROWS,NCOLS,TRANSPOSED>::operator*(const Matrix_d<Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_cols, Matrix_d<NROWS,NCOLS,TRANSPOSED>::num_cols, true>& second) const; \
template std::ostream& operator<<(std::ostream& ost, const Matrix_d<NROWS, NCOLS, TRANSPOSED>& mat); \
template double accumulate(const Matrix_d<NROWS,NCOLS, TRANSPOSED>& mat, double init); \
template double max(const Matrix_d<NROWS,NCOLS,TRANSPOSED>& mat); \
template double min(const Matrix_d<NROWS,NCOLS,TRANSPOSED>& mat); \
Int_matrix::Value_type max(const Int_matrix &mat)
Return the maximum value in this matrix.
Definition: l_int_matrix.h:1397
double accumulate(const Matrix_d< R, C, T > &mat, double init)
Definition: m_matrix_d.impl.h:432
Image operator-(const Image &im1, const Image &im2)
Subtract two images.
Definition: i_image.h:843
bool operator!=(const Int_matrix &op1, const Int_matrix::Impl_type &op2)
Test for any difference between two matrices.
Definition: l_int_matrix.h:1274
Int_matrix::Value_type min(const Int_matrix &mat)
Return the minimum value in this matrix.
Definition: l_int_matrix.h:1385
bool operator==(const Blob &b1, const Blob &b2)
Compare two blobs; member-wise comparison.
Definition: blob_detector.h:70
Mh_proposal_result operator+(const Mh_proposal_result &pr1, const Mh_proposal_result &pr2)
Definition: sample_base.h:389
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Gsl_Vector operator*(double scalar, const Gsl_Vector &vector)
multiply scalar and vector, scalar written on the left side
Definition: gsl_vector.h:661
#define FREE_FUNCTION_LIST_3DIM (   A,
  B,
 
)
Value:
template Matrix_d<Matrix_d<A,B,false>::num_rows, Matrix_d<B,C,false>::num_cols> matrix_multiply_dispatch_(const Matrix_d<A,B,false>& m1, const Matrix_d<B,C,false>& m2); \
template Matrix_d<Matrix_d<B,A,true>::num_rows, Matrix_d<B,C,false>::num_cols> matrix_multiply_dispatch_(const Matrix_d<B,A,true>& m1, const Matrix_d<B,C,false>& m2); \
template Matrix_d<Matrix_d<B,A,true>::num_rows, Matrix_d<C,B,true>::num_cols> matrix_multiply_dispatch_(const Matrix_d<B,A,true>& m1, const Matrix_d<C,B,true>& m2); \
template Matrix_d<Matrix_d<A,B,false>::num_rows, Matrix_d<C,B,true>::num_cols> matrix_multiply_dispatch_(const Matrix_d<A,B,false>& m1, const Matrix_d<C,B,true>& m2); \
Matrix_d< Matrix_type_1::num_rows, Matrix_type_2::num_cols > matrix_multiply_dispatch_(const Matrix_type_1 &m1, const Matrix_type_2 &m2)
Definition: m_matrix_d.impl.h:257
#define FREE_FUNCTION_LIST_NO_TRANSPOSE (   NROWS,
  NCOLS 
)
Value:
template Matrix_d<NROWS,NCOLS> create_random_matrix(); \
template double max_abs_difference( const Matrix_d<NROWS,NCOLS,false>& op1, const Matrix_d<NROWS,NCOLS,false>& op2 ); \
Int_matrix::Value_type max_abs_difference(const Int_matrix &op1, const Int_matrix &op2)
Find the largest difference between two matrices.
Definition: l_int_matrix.h:1364
Matrix create_random_matrix(int num_rows, int num_cols)
Definition: m_matrix.h:1853
#define FREE_FUNCTION_LIST_SQUARE (   D)
Value:
template Matrix_d<D,D> create_identity_matrix(); \
template Matrix_d<D,D> outer_product(const Vector_d<D>& v1, const Vector_d<D>& v2); \
template double trace(const Matrix_d<D,D>& m);
double trace(const Matrix_d< D, D > &m)
Definition: m_matrix_d.impl.h:421
Matrix outer_product(const Vector &v1, const Vector &v2)
Definition: m_matrix.h:2293
Matrix create_identity_matrix(int rank)
Construct an identity matrix of specified rank.
Definition: m_matrix.h:1795
for m
Definition: APPgetLargeConnectedEdges.m:64
#define MAX_DIMENSION   4