# Copyright 2009 Autodesk, Inc. All rights reserved. # Use of this software is subject to the terms of the Autodesk license agreement # provided at the time of installation or download, or which otherwise accompanies # this software in either electronic or hard copy form. # # Script description: # Create matrix using all 3 different constructors. # # Topic: FBMatrix # from pyfbsdk import * # create a matrix using a 16 values list m = FBMatrix([1, 2.0, 3.3, 4.0, 5.6, 6.4, 7, 8, 9, 10.0, 11, 12., 13.0, 14.1, 15.8, 16]) # create a matrix using 4 list of 4 values m2 = FBMatrix([ [1,2,3,4], [5.0, 6.2, 7.0, 8], [9, 10, 11, 12], [13, 14, 15, 16] ]) # create a matrix from another matrix m3 = FBMatrix(m2) print m print m2 print m3