<< Neg SYMSCI Toolbox Pow >>

SYMSCI Toolbox >> SYMSCI Toolbox > Ones

Ones

matrix of symbolic ones

Calling Sequence

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

Arguments

A

matrix of symbolic scalars

r

non-negative integer

c

non-negative integer

B

matrix of symbolic ones

Description

Ones( A )

Returns a matrix of ones the dimensions of the matrix A.

Ones( r, c )

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

Examples

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

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

// clean-up
reset();
clear A;

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< Neg SYMSCI Toolbox Pow >>