Object-oriented Scientific Computing Library: Version 0.910
omatrix_tlate< data_t, mparent_t, vparent_t, block_t > Class Template Reference

A matrix of double-precision numbers. More...

#include <omatrix_tlate.h>

Inheritance diagram for omatrix_tlate< data_t, mparent_t, vparent_t, block_t >:
omatrix_base_tlate< data_t, mparent_t, block_t > omatrix_const_view_tlate< data_t, mparent_t, block_t >

Detailed Description

template<class data_t, class mparent_t, class vparent_t, class block_t>
class omatrix_tlate< data_t, mparent_t, vparent_t, block_t >

The basic matrix classes are built upon this template. A matrix of double-precision numbers is an object of type omatrix , which is just a typedef defined using this class template. See Arrays, Vectors, Matrices and Tensors in the User's Guide for more information.

Definition at line 665 of file omatrix_tlate.h.

Public Member Functions

Standard constructor
 omatrix_tlate (size_t r=0, size_t c=0)
 Create an omatrix of size n with owner as true.
Copy constructors
 omatrix_tlate (const omatrix_tlate &v)
 Deep copy constructor, allocate new space and make a copy.
 omatrix_tlate (const omatrix_const_view_tlate< data_t, mparent_t, block_t > &v)
 Deep copy constructor, allocate new space and make a copy.
omatrix_tlateoperator= (const omatrix_tlate &v)
 Deep copy constructor, if owner is true, allocate space and make a new copy, otherwise, just copy into the view.
omatrix_tlateoperator= (const omatrix_const_view_tlate< data_t, mparent_t, block_t > &v)
 Deep copy constructor, if owner is true, allocate space and make a new copy, otherwise, just copy into the view.
 omatrix_tlate (size_t n, ovector_base_tlate< data_t, vparent_t, block_t > ova[])
 Deep copy from an array of ovectors.
 omatrix_tlate (size_t n, uvector_base_tlate< data_t > uva[])
 Deep copy from an array of uvectors.
 omatrix_tlate (size_t n, size_t n2, data_t **csa)
 Deep copy from a C-style 2-d array.
Memory allocation
int allocate (size_t nrows, size_t ncols)
 Allocate memory after freeing any memory presently in use.
int free ()
 Free the memory.
Other methods
omatrix_tlate< data_t,
mparent_t, vparent_t, block_t > 
transpose ()
 Compute the transpose (even if matrix is not square)

Member Function Documentation

template<class data_t, class mparent_t, class vparent_t, class block_t>
int omatrix_tlate< data_t, mparent_t, vparent_t, block_t >::free ( ) [inline]

This function will safely do nothing if used without first allocating memory or if called multiple times in succession.

Definition at line 975 of file omatrix_tlate.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.