Jafar
|
00001 # $Id$ # 00002 00003 # 00004 #/** Demo of jblas vector. \file demoJblas.tcl \ingroup jmath */ 00005 # 00006 00007 00008 package require jmath 00009 00010 set v [jmath::new_vec 10] 00011 jmath::setValue $v "(0, 1, 2, 3, 4, 5, 6, 7, 8, 9)" 00012 00013 jmath::print $v 00014 00015 for {set i 0} {$i < [$v size]} {incr i} { 00016 $v set $i [expr "2*[$v get $i]"] 00017 } 00018 00019 jmath::print $v 00020
Generated on Wed Oct 15 2014 00:37:21 for Jafar by doxygen 1.7.6.1 |