Skip to main content

Constant vector

Returns a constant vector: a vector with all its entries equal to a given number.

Syntax

constant_vector(Integer, Expression)

Description

Given an integer n and an expression e, constructs a vector of dimensions nn with all its entries equal to ee.

linear_algebra.constant_vector.calc.png