## Inplace

버전 1.0.0.0 (56.9 KB) 작성자:
Allows Matlab variables to be passed by reference instead of by value allowing inplace modification.

다운로드 수: 1.5K

업데이트 날짜: 2006/6/6

라이선스 없음

Inplace is a Matlab package for working with matrices and vectors that are passed by reference instead of by value. This package allows variables to functions to be modified inplace. Previously, this behavior was not possible in Matlab.

To install, see the installation section of the documentation page: http://www.stanford.edu/~dgleich/programs/inplace/

It provides two classes, ipdouble and ipint32 (inplace double and inplace int32) that wrap Matlab's double and int32 matrices and vectors. The idea behind the package is simply to provide a way to modified arguments to a function directly without the necessity of returning the result and the hence, eliminating a copy required.

Example:
function a=func1(a)
a(1) = a(1)+1;
function func2(ipd)
ipd(1) = ipd(1)+1;
a = ones(5,1);
ipd = ipdouble(a);
a = func1(a);
func2(ipd); % accomplishes the same result without the copy at the end of the function.

### 인용 양식

David Gleich (2023). Inplace (https://www.mathworks.com/matlabcentral/fileexchange/11290-inplace), MATLAB Central File Exchange. 검색됨 .

개발 환경: R14
모든 릴리스와 호환
##### 플랫폼 호환성
Windows macOS Linux
##### 카테고리
Help CenterMATLAB Answers에서 Semiconductors and Converters에 대해 자세히 알아보기

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

버전 게시됨 릴리스 정보
1.0.0.0
{"ft_lang_label":"__label__en","ft_lang_prob":0.7379911,"math_prob":0.6454163,"size":1368,"snap":"2023-14-2023-23","text_gpt3_token_len":379,"char_repetition_ratio":0.10483871,"word_repetition_ratio":0.0,"special_character_ratio":0.2383041,"punctuation_ratio":0.13333334,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9526513,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-06-02T08:50:24Z\",\"WARC-Record-ID\":\"<urn:uuid:7beb664f-944b-4f6e-8427-5ad133d7714c>\",\"Content-Length\":\"91377\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:21ab5b6f-b96b-4dd6-b3b7-6abbeb1b0b81>\",\"WARC-Concurrent-To\":\"<urn:uuid:4e545889-20b2-4d61-ade2-33bf0d94fade>\",\"WARC-IP-Address\":\"104.92.226.189\",\"WARC-Target-URI\":\"https://kr.mathworks.com/matlabcentral/fileexchange/11290-inplace?s_tid=prof_contriblnk\",\"WARC-Payload-Digest\":\"sha1:EDEOPZTOZCRH65PZSRWEMB5BQOGCCRIN\",\"WARC-Block-Digest\":\"sha1:54N7VG222Q5IHMCLVFYS6NBSC7ULA6W6\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-23/CC-MAIN-2023-23_segments_1685224648465.70_warc_CC-MAIN-20230602072202-20230602102202-00075.warc.gz\"}"}