dot (replaces TDot)
The dot function returns the dot product of two data objects which may be a 1-dimensional array or an object of type CImage, CArray, or CMatrix.
number = dot( array_1, array_2 ) number = dot( CImage_1 , CImage_2 ) number = dot( CArray_1, CArray_2 ) number = dot( CMatrix_1, CMatrix_2 ) |
Object is the second CImage or 1-dimensional array.
number is the returned dot product.
The following script computes the dot product of two CImage objects:
|
-- create a CImage |
-- (fill A with image data) |
|
|
-- create another CImage |
-- (fill B with image data) |
|
|
|
The next example computes the dot product of two 1-dimensional array with values that are numbers.:
|
-- create table A |
|
-- create table B |
|
-- result: AdotB = 14.6 |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.