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

Represents a vector consisting of scalars 's' only, i.e. v[i] = s for all i. 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

 scalar_matrix (size_type s1, size_type s2, const_reference val, 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::scalar_matrix< SCALARTYPE >

Represents a vector consisting of scalars 's' only, i.e. v[i] = s for all i. 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  ,
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: