single


function single(x:NumberScalarLike, i:IntegerScalarLike, n:Integer) -> NumberVectorLike

Construct single-entry vector. A given element of the vector has a given value, all others are zero.

  • x Value of single entry.
  • i Index of single entry.
  • n Length of vector.

Returns Single-entry vector.

function single(x:NumberScalarLike, i:IntegerScalarLike, j:IntegerScalarLike, m:Integer, n:Integer) -> NumberMatrixLike

Construct single-entry matrix. A given element of the matrix has a given value, all others are zero.

  • x Value of single entry.
  • i Row of single entry.
  • j Column of single entry.
  • m Number of rows.
  • n Number of columns.

Returns Single-entry matrix.