umatrix_cx_view_tlate Class Template Reference

A matrix view of complex numbers. More...

#include <umatrix_cx_tlate.h>

Inheritance diagram for umatrix_cx_view_tlate:

umatrix_cx_tlate ufmatrix_cx

Detailed Description

template<class data_t, class complex_t>
class umatrix_cx_view_tlate< data_t, complex_t >

A matrix view of complex numbers.

Definition at line 50 of file umatrix_cx_tlate.h.


Public Member Functions

Copy constructors
 umatrix_cx_view_tlate (const umatrix_cx_view_tlate &v)
 So2scllow copy constructor - create a new view of the same matrix.
umatrix_cx_view_tlateoperator= (const umatrix_cx_view_tlate &v)
 So2scllow copy constructor - create a new view of the same matrix.
Get and set methods
complex_t * operator[] (size_t i)
 Array-like indexing.
const complex_t * operator[] (size_t i) const
 Array-like indexing.
complex_t & operator() (size_t i, size_t j)
 Array-like indexing.
const complex_t & operator() (size_t i, size_t j) const
 Array-like indexing.
complex_t get (size_t i, size_t j) const
 Get (with optional range-checking).
complex_t * get_ptr (size_t i, size_t j)
 Get pointer (with optional range-checking).
const complex_t * get_const_ptr (size_t i, size_t j) const
 Get pointer (with optional range-checking).
int set (size_t i, size_t j, complex_t val)
 Set (with optional range-checking).
int set (size_t i, size_t j, data_t re, data_t im)
 Set (with optional range-checking).
int set_all (complex_t val)
 Set all of the value to be the value val.
size_t rows () const
 Method to return number of rows.
size_t cols () const
 Method to return number of columns.
Other methods
bool is_owner () const
 Return true if this object owns the data it refers to.
Arithmetic
umatrix_cx_view_tlate< data_t,
complex_t > & 
operator+= (const umatrix_cx_view_tlate< data_t, complex_t > &x)
 operator+=
umatrix_cx_view_tlate< data_t,
complex_t > & 
operator-= (const umatrix_cx_view_tlate< data_t, complex_t > &x)
 operator-=
umatrix_cx_view_tlate< data_t,
complex_t > & 
operator+= (const data_t &y)
 operator+=
umatrix_cx_view_tlate< data_t,
complex_t > & 
operator-= (const data_t &y)
 operator-=
umatrix_cx_view_tlate< data_t,
complex_t > & 
operator*= (const data_t &y)
 operator*=

Protected Member Functions

 umatrix_cx_view_tlate ()
 Empty constructor provided for use by umatrix_cx_tlate(const umatrix_cx_tlate &v).

Protected Attributes

data_t * data
 The data.
size_t size1
 The number of rows.
size_t size2
 The number of columns.
int owner
 Zero if memory is owned elsewhere, 1 otherwise.

Member Function Documentation

size_t cols (  )  const [inline]

Method to return number of columns.

If no memory has been allocated, this will quietly return zero.

Definition at line 275 of file umatrix_cx_tlate.h.

size_t rows (  )  const [inline]

Method to return number of rows.

If no memory has been allocated, this will quietly return zero.

Definition at line 265 of file umatrix_cx_tlate.h.


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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page