MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / Matrix

Struct Matrix

math/matrix/matrix.go:10–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type Matrix[T constraints.Integer] struct {
11 elements [][]T
12 rows int
13 columns int
14}
15
16// NewMatrix creates a new Matrix based on the provided arguments.
17func New[T constraints.Integer](rows, columns int, initial T) Matrix[T] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected