matrix


function matrix<Type>(x:Type, rows:Integer, columns:Integer) -> Type[_,_]

Create matrix filled with a given scalar value.

  • x: The value.
  • rows: Number of rows.
  • columns: Number of columns.

function matrix<Value, Middle>(m:Middle) ->

Convert to matrix.

function matrix<Value, Type>(m:Type[_]) -> Value[_,_]

Convert to matrix.

function matrix<Value, Type>(m:Type[_,_]) -> Value[_,_]

Convert to matrix.

function matrix<Value>(m:Boolean) -> Value[_,_]

Convert to matrix.

function matrix<Value>(m:Integer) -> Value[_,_]

Convert to matrix.

function matrix<Value>(m:Real) -> Value[_,_]

Convert to matrix.