This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / optimize / _remove_redundancy / _row_count

function

scipy.optimize._remove_redundancy:_row_count

source: build-install/usr/lib/python3.14/site-packages/scipy/optimize/_remove_redundancy.py:14

Signature

def _row_count(A)

Summary

Counts the number of nonzeros in each row of input array A. Nonzeros are defined as any element with absolute value greater than tol = 1e-13. This value should probably be an input to the function.

Parameters

A : 2-D array

An array representing a matrix

Returns

rowcount : 1-D array

Number of nonzeros in each row of A

Aliases

  • scipy.optimize._remove_redundancy._row_count