OKlibrary  0.2.1.6
OKlib::Matrices::Is_symmetric< Matrix > Class Template Reference

Functor-predicate for checking whether a matrix in the uBLAS-sense is symmetric. More...

#include <Symmetry.hpp>

Inheritance diagram for OKlib::Matrices::Is_symmetric< Matrix >:
unary_function

List of all members.

Public Member Functions

bool operator() (const Matrix &m) const

Detailed Description

template<class Matrix>
class OKlib::Matrices::Is_symmetric< Matrix >

Functor-predicate for checking whether a matrix in the uBLAS-sense is symmetric.

Todo:

TEST IT.

Write a concept.

A nice timing test would be to see whether the simple implementation return ::OKlib::Matrix::is_equal(m, trans(p)); would be just by a factor of 2 slower.

Enquiry to the boost e-mail list why is_symmetric is not provided (see above).

Definition at line 73 of file Symmetry.hpp.


Member Function Documentation

template<class Matrix >
bool OKlib::Matrices::Is_symmetric< Matrix >::operator() ( const Matrix &  m) const [inline]

Definition at line 74 of file Symmetry.hpp.


The documentation for this class was generated from the following file: