![]() |
RobWorkProject
25.2.11-
|
Representation of a N-dimensional Mathematica array with dynamic depth. More...
#include <RawArray.hpp>
Inherits Mathematica::Array< T >.
Public Types | |
typedef rw::core::Ptr< RawArray< T, Dynamic > > | Ptr |
Smart pointer type. | |
![]() | |
typedef rw::core::Ptr< Array< T > > | Ptr |
Smart pointer type. | |
![]() | |
enum | Type { String , Integer , Real , Symbol , Function , Array } |
Type of expression. More... | |
typedef rw::core::Ptr< Expression > | Ptr |
Smart pointer type. | |
typedef enum rwlibs::mathematica::Mathematica::Expression::Type | Type |
Type of expression. | |
Public Member Functions | |
RawArray (const T *const data, const int *const dims, const int depth) | |
Construct new array with a dynamic dimensionality. More... | |
virtual | ~RawArray () |
Destructor. | |
void | out (std::ostream &stream) const |
Print to output stream. More... | |
Mathematica::Expression::Ptr | clone () const |
Make a copy of the expression. More... | |
const int * | size () const |
Get the shape as a list of integers. More... | |
const T * | data () const |
Get the raw data. More... | |
int | dimensions () const |
Get the dimensions. More... | |
![]() | |
virtual | ~Array () |
Destructor. | |
Type | getType () const |
Get the type of expression. More... | |
Additional Inherited Members | |
![]() | |
template<typename Type > | |
static void | toList (std::list< rw::core::Ptr< Type >> &) |
Helper function for extracting a list of arguments when given as a variable number of arguments. More... | |
template<typename Type , typename Exp , typename... T> | |
static void | toList (std::list< rw::core::Ptr< Type >> &list, const Exp &r, T... t) |
Helper function for extracting a list of arguments when given as a variable number of arguments. More... | |
Representation of a N-dimensional Mathematica array with dynamic depth.
|
inline |
Construct new array with a dynamic dimensionality.
data | [in] the data. |
dims | [in] the size of each dimension. |
depth | [in] the number of dimensions. |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Print to output stream.
stream | [in/out] the stream to print to. |
Implements Mathematica::Expression.
|
inlinevirtual |
Get the shape as a list of integers.
Implements Mathematica::Array< T >.