...

/

Challenge: Linear Combination Checker

Challenge: Linear Combination Checker

Write a Python algorithm to check if a matrix is an integer linear combination.

Problem statement

Write an IsIntLC function that accepts three matrices, A,BA, B, and CC as input. S={100,99,...1,0,1,...99,100}S=\{-100,-99,...-1,0,1,...99,100\} is the set of scalars to choose from. Your challenge is to check if matrix CC can be written as a linear combination of matrices AA and BB, with scalars from SS.

Example

Consider

A=[532678254]B=[111 ...