Extra convencience functions for the NMatrix library.