Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Public Member Functions | Public Attributes | List of all members
Array2D< T > Struct Template Reference

a 2D array More...

#include <element_restriction.hpp>

Public Member Functions

 Array2D (uint64_t m, uint64_t n)
 create an uninitialized m-by-n two-dimensional array
 
 Array2D (std::vector< T > &&data, uint64_t m, uint64_t n)
 create an m-by-n two-dimensional array initialized with the values in data (assuming row-major)
 
Range< T > operator() (uint64_t i)
 access a mutable "row" of this Array2D
 
Range< const T > operator() (uint64_t i) const
 access an immutable "row" of this Array2D
 
T & operator() (uint64_t i, uint64_t j)
 access a mutable element of this Array2D
 
const T & operator() (uint64_t i, uint64_t j) const
 access an immutable element of this Array2D
 
 Array2D (int m, int n)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
 Array2D (std::vector< T > &&data, int m, int n)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
Range< T > operator() (int i)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
Range< const T > operator() (int i) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
T & operator() (int i, int j)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const T & operator() (int i, int j) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 

Public Attributes

std::vector< T > values
 the values of each element in the array
 
uint64_t dim [2]
 the number of rows and columns in the array, respectively
 

Detailed Description

template<typename T>
struct Array2D< T >

a 2D array

Template Parameters
T

Definition at line 108 of file element_restriction.hpp.


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