Skip to main content

ClikaRT::tables::Table::ColumnRef

class

Header: ClikaRT/tables/table.h

The handle returned by frame[name]. Compound ops mutate the live column (the scalar broadcasts); = tensor creates or replaces the column. On a failure (missing column, non-numeric, length mismatch) the op raises ClikaRT::Error in your translation unit, in BOTH library modes: a chaining operator returns *this and cannot carry a Result, so this block is the documented mode-invariant throwing surface. pow / floordiv are methods (C++ has no ** / //).

Column right-hand side

operator+=(Tensor)

ColumnRef& operator+=(const Tensor& other)

Declared in ClikaRT/tables/table.h, line 284

operator-=(Tensor)

ColumnRef& operator-=(const Tensor& other)

Subtract another column elementwise, in place.

Declared in ClikaRT/tables/table.h, line 286

operator*=(Tensor)

ColumnRef& operator*=(const Tensor& other)

Multiply by another column elementwise, in place.

Declared in ClikaRT/tables/table.h, line 288

operator/=(Tensor)

ColumnRef& operator/=(const Tensor& other)

Divide by another column elementwise, in place.

Declared in ClikaRT/tables/table.h, line 290

operator%=(Tensor)

ColumnRef& operator%=(const Tensor& other)

Elementwise modulo by another column, in place.

Declared in ClikaRT/tables/table.h, line 292

pow(Tensor)

ColumnRef& pow(const Tensor& other)

Raise to another column's elementwise powers, in place.

Declared in ClikaRT/tables/table.h, line 294

floordiv(Tensor)

ColumnRef& floordiv(const Tensor& other)

Floor-divide by another column elementwise, in place.

Declared in ClikaRT/tables/table.h, line 296

Member functions

operator+=(double)

ColumnRef& operator+=(double scalar)

Add scalar to every element of the column, in place.

Declared in ClikaRT/tables/table.h, line 266

operator-=(double)

ColumnRef& operator-=(double scalar)

Subtract scalar from every element, in place.

Declared in ClikaRT/tables/table.h, line 268

operator*=(double)

ColumnRef& operator*=(double scalar)

Multiply every element by scalar, in place.

Declared in ClikaRT/tables/table.h, line 270

operator/=(double)

ColumnRef& operator/=(double scalar)

Divide every element by scalar, in place.

Declared in ClikaRT/tables/table.h, line 272

operator%=(double)

ColumnRef& operator%=(double scalar)

Elementwise modulo by scalar, in place.

Declared in ClikaRT/tables/table.h, line 274

pow(double)

ColumnRef& pow(double exponent)

Raise every element to exponent, in place.

Declared in ClikaRT/tables/table.h, line 276

floordiv(double)

ColumnRef& floordiv(double divisor)

Floor-divide every element by divisor, in place.

Declared in ClikaRT/tables/table.h, line 278

operator=(Tensor)

ColumnRef& operator=(const Tensor& values)

frame["new"] = tensor: create or replace this column from a 1-D tensor.

Throws

  • ClikaRT::Error: on a tensor the column cannot take (non-1-D, non-numeric, or a length mismatch).

Declared in ClikaRT/tables/table.h, line 302

operator=(ColumnRef)

ColumnRef& operator=(const ColumnRef&) =delete

Declared in ClikaRT/tables/table.h, line 303