(Elements []float64, rows, cols int)
| 32 | } |
| 33 | |
| 34 | func MakeMatrix(Elements []float64, rows, cols int) *Matrix { |
| 35 | A := new(Matrix) |
| 36 | A.rows = rows |
| 37 | A.cols = cols |
| 38 | A.step = cols |
| 39 | A.Elements = Elements |
| 40 | |
| 41 | return A |
| 42 | } |
| 43 | func (A *Matrix) CountRows() int { |
| 44 | return A.rows |
| 45 | } |
no outgoing calls