_Matrix

it.grypho.scala.leonardo.matrix._Matrix
See the_Matrix companion class
object _Matrix

Factory and companion for _Matrix.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
_Matrix.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Re-inflates a dense _MatrixValue into a _Matrix of _Number elements.

Re-inflates a dense _MatrixValue into a _Matrix of _Number elements.

Used by the matrix operations to combine a concrete operand with a symbolic one element-wise: once all elements are _Number literals the resulting _Matrix collapses back to a _MatrixValue on the next eval pass.

Value parameters

v

the dense concrete matrix to re-inflate

Attributes

Returns

a _Matrix with one _Number element per cell of v

def ofRows(rows: Vector[_Expression]*): _Matrix

Constructs a _Matrix from a sequence of row vectors.

Constructs a _Matrix from a sequence of row vectors.

All rows must be non-empty and of equal length.

Value parameters

rows

one or more row vectors; each element is an arbitrary _Expression

Attributes

Returns

a new _Matrix with the rows stacked in order