Creates a matrix_cl by replicating the input vector or row_vector.
The elements of the vector or row_vector must be of arithmetic type.
- Template Parameters
-
T | type of elements in the input matrix |
- Parameters
-
x | the input matrix_cl (vector or row_vector) |
m | number of rows (if x is a row_vector) or columns (if x is a vector) in the results matrix |
- Returns
- result matrix with replicated rows or columns
- Exceptions
-
<code>domain_error</code> | if the requested dimensions are negative |
Definition at line 51 of file rep_matrix.hpp.