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

Represents a vector consisting of zeros only. To be used as an initializer for viennacl::vector, vector_range, or vector_slize only. More...

#include <matrix.hpp>

Public Types

typedef vcl_size_t size_type
typedef SCALARTYPE const & const_reference

Public Member Functions

 zero_matrix (size_type s1, size_type s2, viennacl::context ctx=viennacl::context())
size_type size1 () const
size_type size2 () const
const_reference operator() (size_type, size_type) const
viennacl::context context () const

Detailed Description

template<typename SCALARTYPE>
class viennacl::zero_matrix< SCALARTYPE >

Represents a vector consisting of zeros only. 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

zero_matrix ( size_type  s1,
size_type  s2,
viennacl::context  ctx = viennacl::context() 
) [inline]

Member Function Documentation

viennacl::context context ( ) const [inline]
const_reference operator() ( size_type  ,
size_type   
) const [inline]
size_type size1 ( ) const [inline]
size_type size2 ( ) const [inline]

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