Skip to content
This repository has been archived by the owner on Jul 26, 2020. It is now read-only.
Scott S. edited this page Jun 11, 2014 · 16 revisions

Functions

  • sin, cos, tan
  • abs
  • log
  • pow, sqrt, sum
  • fft, fft2, ifft, ifft2
  • avg, variance, std
  • logical and, or, not
  • l0, l1, l2 norm
  • real, imag, conj
  • diag

(fft's, logical, norms, diag and complex have yet to be implemented -- 2014-6-11)

But if you have a function that operates on a single element, you can call apply_function(single_element_function, array).

Operators

+-*/ all work element-wise. That is, zeros(3)+4 = [4,4,4]. Note that * is not a dot product operator. ones((4,4)) * ones((4,4)) == ones((4,4)). This is playing off Python's example.

@ is the dot product operator. I have yet to implement it.

Clone this wiki locally