Operator

*(_:_:)

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

Declaration

Available when Element is Double.

Parameters

a

A column of doubles.

b

A column of doubles.

Return Value

A new column of doubles 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<Int>, MLDataColumn<Int>) -> MLDataColumn<Int>

Creates a column of integers by dividing 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.