Operator

/(_:_:)

Creates a column of integers by dividing each element in the first column by the corresponding element in the second column.

Declaration

static func / (a: MLDataColumn<Int>, b: MLDataColumn<Int>) -> MLDataColumn<Int>
Available when Element is Int.

Parameters

a

A column of integers.

b

A column of integers.

Return Value

A new column of integers if the columns are the same size; otherwise an invalid column.

See Also

Combining Columns to Generate a Column

static func + (MLDataColumn<Int>, MLDataColumn<Int>) -> MLDataColumn<Int>

Creates a column of integers by adding each element in the first column to the corresponding element in the second column.

static func + (MLDataColumn<Double>, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by adding each element in the first column to the corresponding element in the second column.

static func - (MLDataColumn<Int>, MLDataColumn<Int>) -> MLDataColumn<Int>

Creates a column of integers by subtracting each element in the second column from the corresponding element in the first column.

static func - (MLDataColumn<Double>, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by subtracting each element in the second column from the corresponding element in the first column.

static func * (MLDataColumn<Int>, MLDataColumn<Int>) -> MLDataColumn<Int>

Creates a column of integers by multiplying each element in the first column by the corresponding element in the second column.

static func * (MLDataColumn<Double>, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by multiplying each element in the first column by the corresponding element in the second column.

static func / (MLDataColumn<Double>, MLDataColumn<Double>) -> MLDataColumn<Double>

Creates a column of doubles by dividing each element in the first column by the corresponding element in the second column.