Changes to adapt to use of submatrices.
PanicOnError() to allowed on demand complete failure on errors.
Default value for ldA from LeadingIndex(). Size checking uses Rows().
Adapted to changes in matrix package. Added PanicOnError().
Run gofmt.