Top
Back: vertices
Forward: gitfan_lib
FastBack:
FastForward:
Up: gfan_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.13.2.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

Top Back: vertices Forward: gitfan_lib FastBack: FastForward: Up: gfan_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.