NABLA  Nabla Ain't Basic Linear Algebra
Static Public Member Functions | List of all members
reshape_constraint< target_shape > Struct Template Reference

Constraints for reshape operation template class. More...

Static Public Member Functions

template<typename value_t , typename expr_t , typename tag >
static bool test (const matrix_expression< value_t, expr_t, tag > &a)
 Run-time constraints test.

Detailed Description

template<typename target_shape>
struct nabla::reshape_constraint< target_shape >

Constraints for reshape operation template class.

Static function test() of this template class is used to check constraints of target shape.

This class must be specialized for user defined shapes.

See Also
reshape()

Definition at line 3497 of file matrix.h.

Member Function Documentation

static bool test ( const matrix_expression< value_t, expr_t, tag > &  a)
inlinestatic

Run-time constraints test.

Exceptions
reshape_errorthrown if target shape constraints are not met.

This function is meant to have no side effects.

Definition at line 3504 of file matrix.h.

References nabla::get_matrix().


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