ZIO
Python and C++ interface to ZeroMQ and Zyre
|
Functions | |
const char * | type_name (const std::type_info &t) |
template<typename Type > | |
const char * | dtype () |
void | append (Message &msg, message_t &&data, const std::vector< size_t > &shape, size_t word_size, const char *tn) |
template<typename ElementType > | |
void | append (Message &msg, const ElementType *data, const std::vector< size_t > &shape) |
const zio::message_t & | at (const Message &msg, size_t index) |
Variables | |
const char * | form = "TENS" |
void zio::tens::append | ( | zio::Message & | msg, |
zio::message_t && | data, | ||
const std::vector< size_t > & | shape, | ||
size_t | word_size, | ||
const char * | tn | ||
) |
void zio::tens::append | ( | Message & | msg, |
const ElementType * | data, | ||
const std::vector< size_t > & | shape | ||
) |
const zio::message_t & zio::tens::at | ( | const Message & | msg, |
size_t | index | ||
) |
Return the tensor at the given index.
Index is into the label object TENS JSON array which may not be the message part index.
An empty message is returned on error.
Return the tensor data at payload index in FORM message.
This returns a pointer into the message data.
Index over/underflow or type mismatch returns NULL.
const char * zio::tens::type_name | ( | const std::type_info & | t | ) |