def test_apply_colwise(self): A = El.DistMatrix(El.dTag, El.VR, El.STAR) # FIXME: Christos, use your matrix problem factory here El.Uniform(A, _M, _N) # FIXME: A.Matrix will not work in parallel self.sv = np.linalg.svd(A.Matrix().ToNumPy(), full_matrices=1, compute_uv=0) for sketch in self.sketches: results = test_helper(A, _M, _N, _R, sketch, [self.svd_bound], MPI) self.check_result(results, str(sketch))
def test_apply_rowwise(self): A = elem.DistMatrix_d_VR_STAR() #FIXME: Christos, use your matrix problem factory here elem.Uniform(A, _N, _M) #FIXME: A.Matrix will not work in parallel self.sv = np.linalg.svd(A.Matrix, full_matrices=1, compute_uv=0) for sketch in self.sketches: results = test_helper(A, _N, _M, _R, sketch, [self.svd_bound], MPI, 5, "rowwise") self.check_result(results, str(sketch))
def test_apply_colwise(self): A = elem.DistMatrix_d_VR_STAR() #FIXME: Christos, use your matrix problem factory here elem.Uniform(A, _M, _N) #FIXME: A.Matrix will not work in parallel self.sv = np.linalg.svd(A.Matrix, full_matrices=1, compute_uv=0) for sketch in self.sketches: results = test_helper(A, _M, _N, _R, sketch, [self.svd_bound], MPI) self.check_result(results, str(sketch))
def test_apply_rowwise(self): A = El.DistMatrix(El.dTag, El.VR, El.STAR) #FIXME: Christos, use your matrix problem factory here El.Uniform(A, _N, _M) #FIXME: A.Matrix will not work in parallel self.sv = np.linalg.svd(A.Matrix().ToNumPy(), full_matrices=1, compute_uv=0) for sketch in self.sketches: results = test_helper(A, _N, _M, _R, sketch, [self.svd_bound], MPI, 5, "rowwise") self.check_result(results, str(sketch))