transposeToColumn function

Matrix transposeToColumn(
  1. Matrix input
)

Implementation

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

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

  return input;
}