Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
unit 添字関数
説明
添字関数 unit は、型 Array、または Vector を持つ 1 次元 rtable オブジェクトを構成するのに使われます。
Vector の作成において、添字関数 unit[j] は、j 成分が値 1 で他はすべて値 0 を持つ Vector を指定します。
1 次元 Array の構成における指定も同様です。
添字関数 unit を使って定義されたオブジェクトは、その要素を再割り当てすることはできません。
通常の状況下では、添字関数 unit を使って構成されたオブジェクトの成分に対するストレージの割り当ては行われません。
例
A:=Array(unit[2],1..3);
V:=Vector(4,shape=unit[3]);
V[2]:=3;
Error, unit vector can only have one non-zero entry
参照
LinearAlgebra[UnitVector], Array, Vector, rtable_indexfcn, rtable
Download Help Document