<< Zeros SYMSCI Toolbox elems >>

SYMSCI Toolbox >> SYMSCI Toolbox > cols

cols

number of columns of a matrix of symbolic scalars

Calling Sequence

c = cols( A )

Arguments

A

matrix of symbolic scalars

c

non-negative integer

Description

Returns the number of columns c of a matrix A.

Examples

// create a (3,4)-matrix
M = %(Mat("e",3,4))

// number of rows in M
rows(M)

// number of cols in M
cols(M)

// number of elements in M
elems(M)

// clean up
reset();
clear M;

See Also

Authors

Bibliography

SymEngine: C++ library for fast symbolic manipulation.


Report an issue
<< Zeros SYMSCI Toolbox elems >>