Skip to content
Skip to main navigation
Skip to first column
Skip to second column
Singular
Search
Download 4-1-3
Try Online
Online Manual
Graphical Interface
Get Help
Report Bugs
Books
Teams
Join Us
Home
Online Manual
D.13.1.59 onesVector
Procedure from library
gfan.lib
(see
gfan_lib
).
Usage:
onesVector(n); n int
Return:
intvec, intvec of length n with all entries 1
Example:
LIB "gfan.lib"; intvec w = onesVector(3); w; ==> 1,1,1
Main
Home
News
Publications
How to cite Singular
Community
Forum
Trac
Events
Mailing List
Blog
System
New Libraries
Source Code
Open Tasks
Third-party software
Misc
Links
Contact
Impressum
Internal