You are here

VecTcl 0.1

admin의 아바타
첨부 파일파일 크기
Binary Data auriocus-VecTcl-eb13cbe.tar.gz232.34 KB


This package provides a numerical array extension for Tcl with support for vectors, matrices and higher-rank tensors of integers, floating point and complex numbers. It has builtin support for basic array shaping, slicing and linear algebra subroutines and is designed to integrate seamlessly with Tcl. The user interface consists of a single command, vexpr, which acts as an expression evaluator similar to expr. The language supported by vexpr is inspired by Matlab, which closely models the language used by textbook math.

package require vectcl
namespace import vectcl::vexpr

# create a vector and multiply by 3

set x {1 2 3}
set y [vexpr {3*x}]
# y is now {3 6 9}