code: public static NDArrayDoubles readFromStream(InputStream stream) throws IOException {
      return readFromProto(NDArrayDoublesProto.NDArrayDoubles.parseFrom(stream));
    }
docs: Convenience function to read a factor (assumed serialized with proto) directly from a stream.
  
  @param stream the stream to be read from
  @return a new in-memory feature factor
  @throws IOException passed through from the stream