ViennaCL - The Vienna Computing Library  1.5.2
Public Types | Public Member Functions
identity_matrix< SCALARTYPE > Class Template Reference

Represents a vector consisting of 1 at a given index and zeros otherwise. To be used as an initializer for viennacl::vector, vector_range, or vector_slize only. More...

#include <forwards.h>

Public Types

typedef vcl_size_t size_type
 
typedef SCALARTYPE const & const_reference
 

Public Member Functions

 identity_matrix (size_type s, viennacl::context ctx=viennacl::context())
 
size_type size1 () const
 
size_type size2 () const
 
const_reference operator() (size_type i, size_type j) const
 
viennacl::context context () const
 

Detailed Description

template<class SCALARTYPE>
class viennacl::identity_matrix< SCALARTYPE >

Represents a vector consisting of 1 at a given index and zeros otherwise. To be used as an initializer for viennacl::vector, vector_range, or vector_slize only.

Member Typedef Documentation

typedef SCALARTYPE const& const_reference

Constructor & Destructor Documentation

Member Function Documentation

viennacl::context context ( ) const
inline
const_reference operator() ( size_type  i,
size_type  j 
) const
inline
size_type size1 ( ) const
inline
size_type size2 ( ) const
inline

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