CanCollapseAxis

trait CanCollapseAxis[From, Axis, ColType, R, TR]

This trait is for multi-dimensional tensors that can logically have one of their dimensions "collapsed", e.g. summing out all columns of a matrix to give a column vector.

Type parameters:
Axis

which axis is being collapsed. Usually a subtype of breeze.linalg.Axis.Value

ColType

the type of the "column" (or row or...) being collapsed.

From

the tensor being collapsed

R

What the column is being collapsed to.

TR

result tensor type

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(from: From, axis: Axis)(f: ColType => R): TR