23#include <cusp/detail/config.h>
42template <
typename MatrixType>
55template <
typename MatrixType,
56 typename OutputStream>
58 OutputStream& ostream);
67template <
typename MatrixType>
80template <
typename Array1,
83 const Array2& array2);
97template <
typename Array1,
101 const Array2& array2,
102 const Array3& array3);
118template <
typename Array1,
123 const Array2& array2,
124 const Array3& array3,
125 const Array4& array4);
132#include <cusp/detail/verify.inl>
void assert_is_valid_matrix(const MatrixType &matrix)
Validate format of a given matrix and exit if invalid.
void assert_same_dimensions(const Array1 &array1, const Array2 &array2)
Assert dimensions of two arrays are equal. Throw invalid input exception if dimensions do not match.
bool is_valid_matrix(const MatrixType &matrix)
Validate format of a given matrix.