transposeToRow function

Matrix transposeToRow(
  1. Matrix input
)

Implementation

Matrix transposeToRow(Matrix input) {
  assert(input.rowsNum == 1 || input.columnsNum == 1);

  if (input.rowsNum != 1) {
    return input.transpose();
  }

  return input;
}