new interface for sqrt matrix