-
Notifications
You must be signed in to change notification settings - Fork 86
vector scale
Chris Petersen edited this page Oct 16, 2014
·
2 revisions
#(vector-scale vec n) vector-scale scales a vector by a value.
Parameter | Description |
---|---|
vec | Input vector |
n | Scaling factor |
Example 1: Show a few vector operations
> (vector-sum (vector 1 2 3 4 5 6 7 8 9))
45
> (vector-product (vector 1 2 3 4 5))
120
> (vector-scale (vector 1 2 3 4 5) 10)
#(10 20 30 40 50)
> (vector-offset (vector 1 2 3 4 5) 10)
#(11 12 13 14 15)
> (vector-mean (vector 1 2 3 4 5 6 7))
4
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip