Converts a NumVector into another NumVector
(setq X (new Vector: number: 1 3.0))
|
Returns: #(num| 3.0)
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 3.0)
|
Converts a Vector into a NumVector
(setq X (new Vector: 1 3.0))
|
Returns: #(3.0)
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 3.0)
|
Converts a Matrix to NumVector
(setq X (new Matrix: 2 1 2 3.0 #("ABC" "DEF")))
|
Returns: #(mat[1 2]| 3.0 #("ABC" "DEF" ) )
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 3.0 0.0)
|
Converts a NumMatrix to NumVector
(setq X (new Matrix: number: 2 2 3 1.0 2.0 3.0 4.0 5.0 6.0))
|
Returns: #(nummat[2 3]| 1.0 2.0 3.0 4.0 5.0 6.0 )
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 1.0 2.0 3.0 4.0 5.0 6.0)
|
Converts a Bit Vector to NumVector
(setq X (new Vector: bit: 12 1 0 1 1 0 1 0 0 1 1 0 1))
|
Returns: #(bit| 1 0 1 1 0 1 0 0 1 1 0 1 )
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 1 0 1 1 0 1 0 0 1 1 0 1 )
|
Converts a Byte Vector to NumVector
(setq X (new Vector: byte: 5 255 32 16 8 4))
|
Returns:
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 255.0 32.0 16.0 8.0 4.0 )
|
Converts an Integer Vector to NumVector
(setq X (new Vector: integer: 5 255 32 16 8 4))
|
Returns: #(int| 255 32 16 8 4)
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 255 32 16 8 4)
|
Converts a Float Vector to NumVector
(setq X (new Vector: float: 5 -255.0 32.5 16.0 8.0 4.0))
|
Returns: #(float| -255.0 32.5 16.0 8.0 4.0 )
|
(setq Y (objectToNumVector X))
|
Returns: #(num| -255.0 32.5 16.0 8.0 4.0 )
|
Converts an Object Vector to NumVector
(setq X (new Vector: object: 3 4.0 #{A: 1 B: 2} #(1 2)))
|
Returns: #(obj| #void #{A: 1 B: 2} #(1 2 ) )
|
Elements must be an object, not an immediate type.
(setq Y (objectToNumVector X))
|
Returns: #(num| 0.0 0.0 0.0 )
|
Converts a Pair to NumVector
(setq X '(#(1 2 3) #(4 5) #(6 7 8)))
|
Returns: (#(1 2 3 ) #(4 5 ) #(6 7 8 ))
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 0.0 0.0 0.0 )
|
Converts a Structure to NumVector
(setq X (new Structure: A: 22 B: 34 . 3))
|
Returns: #{A: 22 B: 34 . 3}
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 22.0 34.0 )
|
Converts a Dictionary to NumVector
(setq X (new Dictionary: A: 22 B: 34))
|
Returns: #{dic|| A 22 B 34}
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 22.0 34.0 )
|
Converts a Directory to NumVector
(setq X (new Directory: #Jan,1,1996 2 #Feb,14,1996 3))
|
Returns: #{dir|| #Jan,1,1996 2 #Feb,14,1996 3}
|
(setq Y (objectToNumVector X))
|
Returns: #(num| 2.0 3.0 )
|