<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>white_wheels</author_name>
  <author_url>https://blog.hatena.ne.jp/white_wheels/</author_url>
  <blog_title>white wheelsのメモ</blog_title>
  <blog_url>https://white-wheels.hatenadiary.org/</blog_url>
  <categories>
    <anon>programming</anon>
    <anon>C</anon>
  </categories>
  <description>配列の添え字はいつも0からはじまります。1から使えるようにするにはどうすればいいでしょうか。例えば使っているイメージはこんな感じ。↓ double* v = cvector(1,3); v[1] = 1; v[2] = 2; v[3] = 3; print_cvector(v,1,3); free_cvector(v,1,3); C言語を使って、添え字の範囲を指定できるベクトルを作成してみます。(動作確認はcygwin上。色々、間違いがありそうなので注意) ベクトルの作成 まずはヘッダに必要な関数を考えます。 cvector.h #ifndef __CVECTOR_H #define __CV…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwhite-wheels.hatenadiary.org%2Fentry%2F20100308%2Fp1&quot; title=&quot;C言語で作る添え字フリーなベクトル&amp;amp;行列 - white wheelsのメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-03-08 00:00:01</published>
  <title>C言語で作る添え字フリーなベクトル&amp;行列</title>
  <type>rich</type>
  <url>https://white-wheels.hatenadiary.org/entry/20100308/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
