scalar

function scalar(X:Real[_,_]) -> Real

Convert single-element matrix to scalar value.

function scalar(X:Integer[_,_]) -> Integer

Convert single-element matrix to scalar value.

function scalar(X:Boolean[_,_]) -> Boolean

Convert single-element matrix to scalar value.

function scalar(x:Real[_]) -> Real

Convert single-element vector to scalar value.

function scalar(x:Integer[_]) -> Integer

Convert single-element vector to scalar value.

function scalar(x:Boolean[_]) -> Boolean

Convert single-element vector to scalar value.