MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / String

Method String

math/matrix/string.go:6–15  ·  view source on GitHub ↗

String implements the fmt.Stringer interface for Matrix.

()

Source from the content-addressed store, hash-verified

4
5// String implements the fmt.Stringer interface for Matrix.
6func (m Matrix[T]) String() string {
7 var result string
8 for i := range m.elements {
9 for j := range m.elements[i] {
10 result += fmt.Sprintf("%v ", m.elements[i][j])
11 }
12 result += "\n"
13 }
14 return result
15}

Callers 13

makeBoundariesFunction · 0.80
nextBoundaryFunction · 0.80
NewFunction · 0.80
convertToStringFunction · 0.80
EncryptFunction · 0.80
Base64EncodeFunction · 0.80
hexToBinaryFunction · 0.80
TestMatrixStringFunction · 0.80
TestNullMatrixStringFunction · 0.80
BenchmarkStringFunction · 0.80
Problem16Function · 0.80

Calls

no outgoing calls

Tested by 5

convertToStringFunction · 0.64
TestMatrixStringFunction · 0.64
TestNullMatrixStringFunction · 0.64
BenchmarkStringFunction · 0.64