Gonum and Sparse package

What is Vector?

What is Column Vector?

  • Cap() gives you the capacity of the vector
  • Len() gives you the number of columns within the vector
  • IsZero() validates whether or not a vector is zero-sized
  • MulVec() multiplies vectors a and b and serves the result
  • AtVec() returns the value within the vector at a given position

What is matrices?

  • Vendor A:
    Resistors: 5
    Transistors: 10
    Capacitors: 2
  • Vendor B:
    Resistors: 8
    Transistors: 6
    Capacitors: 3
  • Resistors cost: $0.10
  • Transistors cost: $0.42
  • Capacitors cost: $0.37

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ahmad Berahman

Ahmad Berahman

I have a dream to have a spectacular garden