<< Neg SYMSCI Toolbox Pow >>

SYMSCI Toolbox >> SYMSCI Toolbox > Ones

Ones

symbolic matrix of ones

Syntax

B = Ones(A)
B = Ones( r, c )

Arguments

A, B

symbolic matrix

r, c

non-negative integer

Description

Ones( A )

Returns a matrix of ones with the same dimensions as matrix A.

Ones( r, c )

Returns a matrix of ones with r rows and c columns.

Examples

// symbolic (3,5)-matrix of ones
A = Ones(3,5)

// a matrix of ones with dimensions of A
Ones(A)

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< Neg SYMSCI Toolbox Pow >>