MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / single_line

Method single_line

matrix/sherman_morrison.py:44–49  ·  view source on GitHub ↗
(row_vector: list[float])

Source from the content-addressed store, hash-verified

42
43 # Make string and return
44 def single_line(row_vector: list[float]) -> str:
45 nonlocal string_format_identifier
46 line = "["
47 line += ", ".join(string_format_identifier % (obj,) for obj in row_vector)
48 line += "]"
49 return line
50
51 s += "\n".join(single_line(row_vector) for row_vector in self.array)
52 return s

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected