transposeToRow function
Matrix
transposeToRow(
- Matrix input
Implementation
Matrix transposeToRow(Matrix input) {
assert(input.rowsNum == 1 || input.columnsNum == 1);
if (input.rowsNum != 1) {
return input.transpose();
}
return input;
}