code: public static SparseVector fromCollection(Collection<? extends Number> list) {
          return Vector.fromCollection(list).to(Vectors.SPARSE);
      }
docs: Creates new {@link SparseVector} from collection
  
  @param list value list
  
  @return created vector